/*!
Theme Name: Comune di Quinto
Version: 1.0.0
--------------------------------------------------------------*/

:root {
  --color-primary: #333333;
  --color-secondary: #888888;
  --color-accent: #acb836;
  --color-link: #acb836;
  --color-link-hover: #87902a;
  --color-light: #ffffff;
  --color-dark: #444444;

  --bg-color-light: #ffffff;
  --bg-color-dark: #444444;
  --bg-color-green: #ACB836;
  --bg-color-blue: #0071b5;
  --bg-color-orange: #fb8d34;
  --bg-color-red: #de3b59;

  --font-family-primary: 'Open Sans', sans-serif;
}

/* Base
--------------------------------------------- */

*,
*:before,
*:after {
  box-sizing: border-box;
}


html,
body {
  font-family: var(--font-family-primary);
  color: var(--color-primary);
  font-size: 17px;
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff;
  position: relative;
}

/* Typography
--------------------------------------------- */

a {
  color: var(--color-link);
  transition: all .25s ease-in-out;
}

a:hover,
a:focus,
a:active {
  color: var(--color-link-hover);
  text-decoration: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-primary);
  font-weight: bold;
  color:  var(--color-primary);
  margin: 1em 0;
}

em,
strong {
  color: inherit;
  font-style: normal;
}

/* Layout
--------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-color-light);
  z-index: 10;
  height: 64px;
}

.site-header .logo-img {
  height: 48px;
}

.site-header .navbar-icon {
  text-align: center;
}

.site-header .navbar-icon .icon-title {
  text-transform: uppercase;
  font-size: .65rem;
  font-weight: bold;
  margin-top: .5rem;
}

.site-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-color: var(--bg-color-light);
  z-index: 10;
  font-size: .7rem;
  display: flex;
  align-items: center;
}

.menu-main {
  list-style: none;
  margin: 0 0 0 2rem;
  padding: 0;
  display: flex;
  align-items: center;
  height: 100%;
}

.menu-main li {
  padding: 0 2rem;
}

.menu-main a {
  display: flex;
  text-transform: lowercase;
  height: 80px;
  align-items: center;
  font-size: .9rem;
  color: var(--color-primary);
  border-top: 4px solid white;
}

.menu-main a:hover,
.menu-main .current-menu-item a {
  border-top: 4px solid var(--color-link);
}

.menu-main .current-menu-item a {
  font-weight: bold;
}

/* Layout
--------------------------------------------- */

.filter-control {
  position: absolute;
  top: 0;
  width: 54px;
  height: 54px;
  background-color: var(--bg-color-light);
  background-image: url('/wp-content/themes/gs_openlayers/assets/images/icon.png');
  background-position: center center;
  background-size: 48px 48px;
  background-repeat: no-repeat;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.toggle.show-if-open {
  display: none;
}

.toggle.show-if-closed {
  display: flex;
}

.uk-open .toggle.show-if-open {
  display: flex;
}

.uk-open .toggle.show-if-closed {
  display: none;
}

.map-main {
  background-color: #DDDDDD;
  width: 100%;
  height: 100%;
}

.map-filters {
  position: fixed;
  top: 64px;
  bottom: 40px;
  left: 0;
  width: 100%;
  z-index: 11;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform .25s ease;
  background-color: var(--bg-color-light);
  overflow-x: auto;
}

.map-filters.uk-open {
  transform: translateX(0);
}

.map-filters > * {
  pointer-events: auto; 
}

.map-layers {
  margin-bottom: 0;
}

.map-layer {
  margin-bottom: 0;
  color: var(--color-light);
}

.map-layer .map-layer-title {
  font-weight: bold;
  text-transform: lowercase;
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,.5);
  padding: 0 1rem;
  color: var(--color-light);
  position: relative;
  overflow: visible;
  height: 54px;
  display: flex;
  align-items: center;
}

.map-layer .map-layer-title::before {
  content: "";
  width: auto;
  height: auto;
  margin-left: 0;
  float: none;
  position: absolute;
  left: 100%;
  top: 0;
  bottom: 0;
  width: 42px;
  background-color: var(--bg-color-light);
  display: none;
}

.map-layer > ul {
  padding: .75rem 0;
}

.map-layer .map-layer-panel {
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.map-layer .map-layer-panel ul {
  padding: .25rem 1rem;
}

.map-layer .map-layer-panel > a {
  padding: .5rem 1rem;
  color: var(--color-light);
  font-weight: bold;
}

.map-layer .map-layer-panel > a:hover,
.map-layer .map-layer-panel.uk-open > a {
  color: var(--color-light);
  background-color: rgba(255,255,255,.2);
}

.map-layer .icon {
  width: 18px;
}

.map-layer .uk-nav-parent-icon {
  margin: 0 .1rem 0 .1rem;
}

.map-layer .uk-checkbox {
  margin-top: 0;
}

.map-layer label {
  cursor: pointer;
  font-size: .9rem;
}

.map-layer label > * {
  margin-right: .25rem;
}

.map-layer .active-items {
  margin-left: auto;
  font-weight: bold;
  font-size: .85rem;
}

.map-layer .uk-checkbox {
  border: 1px solid rgba(255,255,255,.75);
  background-color: rgba(255,255,255,.1);
}

.map-layer .uk-checkbox:checked {
  border: 1px solid rgba(255,255,255,1);
  background-color: rgba(255,255,255,0);
}

.map-layers .map-layer-subtitle {
  font-weight: bold;
  font-size: 1.1rem;
  margin-top: .25rem;
}

.map-layers ul {
  list-style: none;
  margin: 0;
}

.map-timeline {
  position: relative;
}

.map-timeline .map-timeline-title {
  font-weight: bold;
  text-transform: lowercase;
  font-size: 1.2rem;
  padding: 0 1rem;
  height: 54px;
  color: var(--color-light);
  position: relative;
  display: flex;
  align-items: center;
  color: #ffffff;
  background-color: var(--bg-color-blue);
  width: 100%;
  z-index: 10;
}

.map-filters .filter-control {
  left: 100%;
}

.map-filters .toggle {
  color: var(--color-primary);
}

.map-filters .map-timeline-list {
  display: none;
}

.map-active-filters {
  display: none;
  position: fixed;
  top: 90px;
  left: 50%;
  width: calc(100% - 880px);
  padding: .5rem;
  z-index: 10;
  transform: translateX(-50%);
  background-color: rgba(33, 117, 155,0.8);
  color: #ffffff;
  font-size: .85rem;
  font-weight: normal;
}

.map-active-filters a {
  color: #fff;
  font-weight: bold;
}

.map-active-filters-label {
  font-weight: bold;
}

.map-active-filters .filters-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.map-active-filters .filters-list a {
  width: 28px;
  padding: .2rem;
  display: block;
}

.map-timeline .map-timeline-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.map-timeline.uk-open .map-timeline-list {
  display: block;
}

.map-timeline .map-timeline-toggle {
  display: flex;
  align-items: center;
  padding: .5rem 2rem;
  color: #333333;
  height: 54px;
  white-space: nowrap;
  font-size: .85rem;
}

.map-timeline .map-timeline-toggle .icon {
  width: 24px;
  margin-right: .5rem;
}

.map-timeline .map-timeline-toggle:hover {
  background-color: #dddddd;
}

.map-timeline .uk-checkbox:checked ~ .map-timeline-toggle {
  background-color: var(--bg-color-blue);
  color: #ffffff;
}

.map-search {
  width: 360px;
  background-color: var(--bg-color-dark);
  z-index: 11;
  height: 80px;
  padding: 0 1rem;
}

.map-search input {
  color: var(--color-light);
  border: 0 !important;
  border-bottom: 1px solid var(--color-secondary) !important;
}

.map-search input:focus {
  border-color: var(--color-light) !important;
}

.map-catalogue {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 40px;
  width: 100%;
  background-color: var(--bg-color-dark);
  z-index: 10;
  transform: translateX(100%);
  transition: transform .25s ease;
}

.map-catalogue.uk-open {
  transform: translateX(0);
}

.map-catalogue .filter-control {
  right: 100%;
}

.map-catalogue .map-catalogue-header {
  font-weight: bold;
  text-transform: lowercase;
  font-size: 1rem;
  padding: .5rem 110px .5rem 1rem;
  color: var(--color-light);
  position: relative;
  flex-basis: 54px;
  flex-grow: 0;
  flex-shrink: 0;
}

.map-catalogue-title {
  font-size: 1.2rem;
}

.map-catalogue .map-catalogue-mode {
  position: absolute;
  display: flex;
  align-items: center;
  right: 0;
  top: 0;
  bottom: 0;
}

.map-catalogue .map-catalogue-mode a {
  display: flex;
  align-items: center;
  border-left: 1px solid #676767;
  padding: 0 .75rem;
  height: 100%;
  color: #999999;
}

.map-catalogue .map-catalogue-mode a:hover {
  color: #ffffff;
}

.map-catalogue.map-catalogue-list .mode-list-toggle {
  color: #ffffff;
}

.map-catalogue.map-catalogue-thumbnails .mode-thumbnails-toggle {
  color: #ffffff;
}

.map-catalogue .locations {
  list-style: none;
  display: block;
  padding: 0;
  margin: 0;
  overflow: auto;
}

.map-catalogue .location {
  display: block;
  position: relative;
  margin: 2px;
  height: 140px;
}

.map-catalogue.map-catalogue-list .location {
  height: auto;
  background-color: #ffffff;
  padding: .25rem 0;
  min-height: 64px;
  display: flex;
  align-items: center;
}

.map-catalogue .locations.has-selection .location {
  opacity: .5;
}

.map-catalogue .locations.has-selection .location .location-image {
  opacity: .25;
}

.map-catalogue.map-catalogue-list .location .location-image {
  display: none;
}

.map-catalogue .locations.has-selection .location.is-selected,
.map-catalogue .locations.has-selection .location:hover {
  opacity: 1;
}

.map-catalogue .locations.has-selection .location.is-selected .location-image {
  opacity: .5;
}

.map-catalogue .location-title {
  position: absolute;
  top: .6rem;
  padding-left: 54px;
  padding-right: 1rem;
  z-index: 2;
  font-size: .8rem;
  max-width: 100%;
}

.map-catalogue.map-catalogue-list .location-title {
  position: relative;
  top: auto;
  padding: 0 .5rem;
}

.map-catalogue .location-title-primary {
  max-height: 56px;
  overflow: hidden;
  position: relative;
}

.map-catalogue.map-catalogue-list .location-title-primary {
  max-height:none;
  overflow: visible;
}

.map-catalogue .location-title-primary::after {
  content: '...';
  color: #676767;
  background: #ffffff;
  height: 12px;
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  line-height: 0px;
  text-align: right;
  padding-right: .25rem;
}

.map-catalogue.map-catalogue-list .location-title-primary::after {
  display: none;
}

.map-catalogue .location-title > div > * {
  display: inline-block;
  background-color: #ffffff;
  padding: .1rem .2rem;
}

.map-catalogue .location-title-primary {
  font-weight: bold;
  margin-bottom: 2px;
}

.map-catalogue .location-meta {
  position: absolute;
}

.map-catalogue .location-category {
  width: 32px;
  height: auto;
  left: .5rem;
  top: .5rem;
  position: absolute;
  color: var(--color-light);
}

.map-catalogue.map-catalogue-list .location-category {
  width: auto;
  position: relative;
  top: auto;
  left: auto;
  color: #444444;
  text-align: center;
  padding: 0;
}

.map-catalogue .location-code {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-weight: bold;
  font-size: .7rem;
}

.map-catalogue.map-catalogue-list .location-code {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  width: 58px;
}

.map-catalogue .location-details {
  bottom: .5rem;
  right: .5rem;
  font-size: .8rem;
  font-weight: bold;
  color: var(--color-light);
  display: flex;
  align-items: center;
}

.map-catalogue.map-catalogue-list .location-details {
  position: relative;
  top: auto;
  left: auto;
  bottom: auto;
  right: auto;
  margin-left: auto;
}

.map-catalogue .location-details a {
  color: var(--color-dark);
  /*border-radius: 50%;
  background-color: #ffffff;*/
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: .5rem;
}

.map-catalogue.map-catalogue-list .location-details a {
  margin-left: 0;
}

.map-catalogue .location-details .more-text {
  display: none;
}

.map-catalogue .is-selected .location-details .more-text,
.map-catalogue .location-details:hover .more-text {
  display: block;
}

.map-catalogue.map-catalogue-list .location-details .more-text {
  display: none !important;
}


.map-catalogue .location-timeline {
  bottom: .5rem;
  left: .5rem;
  font-size: .8rem;
  display: flex;
  align-items: center;
}

.map-catalogue.map-catalogue-list .location-timeline {
  display: none;
}

.map-catalogue .location-timeline .timeline-name {
  color: var(--color-light);
  background-color: var(--bg-color-blue);
  display: inline-block;
  padding: 0 .2rem;
}

.modal-map-counter {
  font-size: 1.25rem;
  font-weight: normal;
}

.feature-popup {
  position: relative;
  display: block;
  background-color: var(--bg-color-red);
  border-radius: 4px;
  padding: .25rem .5rem;
  font-size: .80rem;
  font-weight: bold;
  /*transform: translate(-50%, -100%);
  top: -20px;*/
  max-width: 220px;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.feature-popup::after {
  display: block;
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 8px 0 8px;
  border-color: var(--bg-color-red) transparent transparent transparent;
}

.feature-popup a {
  color: var(--color-light);
  text-decoration: underline;
  display: block;
  text-align: left;
  margin-top: .25rem;
}

/* Navigation
--------------------------------------------- */

/* Forms
--------------------------------------------- */

/* Utilities
--------------------------------------------- */

.button-icon {
  width: 42px;
  height: 42px;
  background-image: url('/wp-content/themes/gs_openlayers/assets/images/icon.png');
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-icon.button-icon-small {
  width: 32px;
  height: 32px;
}

.button-icon.button-icon-xsmall {
  width: 28px;
  height: 28px;
}

/* Location modal
--------------------------------------------- */

.close-modal {
  cursor: pointer;
}

.location-header {
  background-color: #444444;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 10px;
}

.location-header h3 {
  font-size: 1.25rem;
}

.location-content .location-section {
  border-top:  1px solid #eaeaea;
  padding: .5rem 0;
}

.location-content .location-padding {
  padding: 10px;
}


.location-content .location-section > div:first-child {
  margin-bottom: .2rem;
}

.location-content .icon {
  width: 24px;
}

.location-content a {
  font-weight: bold;
  color: #444444;
  text-decoration: underline;
}

.location-header h3 {
  margin: 0;
  color: #ffffff;
  padding: 1rem 0;
}

.location-slideshow.location-slideshow-landscape {
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
}

.location-slideshow.location-slideshow-landscape {
  min-height: 90vh;
}

.location-slideshow .uk-dotnav {
  height: 38px;
  margin-left: 0;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.location-slideshow .uk-dotnav a {
  height: 16px;
  width: 16px;
  border: 2px solid var(--color-light);
}

.location-slideshow .uk-dotnav .uk-active a {
  height: 16px;
  width: 16px;
  border: 2px solid var(--color-light);
  background-color: var(--bg-color-red);
}

/* Overrides
--------------------------------------------- */

.bg-green {
  background-color: var(--bg-color-green) !important;
}

.bg-blue {
  background-color: var(--bg-color-blue) !important;
}

.bg-orange {
  background-color: var(--bg-color-orange) !important;
}

.bg-red {
  background-color: var(--bg-color-red) !important;
}

.map-main .ol-zoom {
  top: 80px;
  left: 20px;
  border: 2px solid #ffffff;
  border-radius: 0;
  padding: 0;
  background-color: #ffffff;
}

.map-main .ol-zoom button {
  background-color: rgba(0, 113, 181,.75);
}

.map-main .ol-scale-line {
  bottom: 60px;
  left: 20px;
}

#modal-map-location {
  background-color: rgba(0,0,0,.5);
}

.uk-text-light {
  color: var(--color-light);
}

.uk-padding-xsmall {
  padding: 8px;
}

.uk-text-xsmall {
  font-size: .7rem;
  line-height: 1.2;
}


.uk-navbar-item, .uk-navbar-nav>li>a, .uk-navbar-toggle {
  min-height: 64px;
}

/* Wordpress specific
--------------------------------------------- */

/* Accessibility
--------------------------------------------- */

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #f1f1f1;
  border-radius: 3px;
  box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
  clip: auto !important;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}
