/* =============================================================
   ITI Design System — Contact page
   Loaded only on the two contact pages (EL + EN).

   The map and the building list come from the [contact_loop] shortcode.
   That shortcode used to print its own <style> block into the page on every
   request; those rules are lifted here verbatim (only the marker icon URL
   changed, from an interpolated theme URL to a path relative to this file)
   so the page carries no inline CSS.
   ============================================================= */

.con { font-family: var(--iti-font-sans); }

/* =========================================================
   Lifted from the [contact_loop] shortcode
   ========================================================= */

#contact {
	display: flex;
}
#contact .map_container {
	width: 100%;
    			height: 650px;
}
#contact .map_container #mapbox-widget-mapbox-map {
	height: 100%;
	width: 100%;
}
#contact .map_container #mapbox-widget-mapbox-map .marker {
	background-image: url("../assets/images/mapbox-marker-icon-orange.svg");
	background-size: cover;
	width: 30px;
	height: 50px;
	cursor: pointer;
}

#contact .map_container #mapbox-widget-mapbox-map .mapboxgl-popup {
	max-width: 200px;
	color: black;
}

#contact .map_container #mapbox-widget-mapbox-map .mapboxgl-popup-content {
	text-align: center;
}

#contact .map_container #mapbox-widget-mapbox-map .mapboxgl-popup-close-button {
	outline: 0;
}

#contact .repeater-container>div {
	display: flex;
    			flex-direction: column;
	margin-bottom: 15px;
}

#contact .repeater-container {
	margin-left: 20px;
}

#contact .repeater-container .mapbox-elementor-widget-title {
	cursor: pointer;
	font-weight: bold;
    			color: #0071BB;
}

#contact .repeater-container .mapbox-elementor-widget-title:hover {
	color: #005C99;
}

.mapboxgl-ctrl-attrib-button {
	display: none;
}

.mapboxgl-popup-anchor-top {
	z-index: 10;
}

.mapboxgl-popup .mapboxgl-popup-close-button {
	padding: 5px;
	color: black;
	background-color: transparent;
}

p.marker-popup-title {
	font-weight: bold;
	font-size: 17px;
	margin-bottom: 0;
	padding: 10px 0;
}

p.marker-popup-text {
	margin: 0;
	padding: 5px 0 10px 0;
}
@media only screen and (max-width: 1024px) {
	#contact {
		flex-direction: column-reverse;
	}
	#contact .map_container {
		width: 100%;
		height: 650px;
	}
	#contact .repeater-container {
		margin-left: 0;
	}
}

/* =========================================================
   Redesign on top of the above
   ========================================================= */

.con-body { padding-block: clamp(2.5rem, 1.6rem + 3vw, 4.5rem); background: var(--iti-paper); }

/* The map and the list sit side by side; the shortcode sets `display: flex`
   on #contact, which stays. Given the list its own surface. */
.con-body #contact {
  gap: clamp(1.25rem, .8rem + 1.6vw, 2rem);
  align-items: stretch;
}
.con-body #contact .map_container {
  border: 1px solid var(--iti-line);
  clip-path: var(--iti-clip-sm);
  overflow: hidden;
}
.con-body #contact .repeater-container {
  flex: 0 0 clamp(16rem, 24vw, 22rem);
  margin-left: 0;
  padding: var(--iti-s-5);
  background: var(--iti-surface);
  border: 1px solid var(--iti-line);
  border-left: 3px solid var(--iti-electric);
  box-shadow: var(--iti-electric-glow-edge);
  clip-path: var(--iti-clip-sm);
  overflow-y: auto;
  max-height: 650px;
  /* The list is taller than its box and on Windows the browser draws no
     scrollbar for it until the visitor already scrolls ("Always show
     scrollbars" is off by default under Settings > Accessibility > Visual
     effects), so nothing says there are more buildings below. The cursor
     says it instead, from the moment the pointer arrives.

     Links and the building titles are unaffected: a cursor declared on an
     ancestor only reaches a child by inheritance, and both of those carry
     cursor: pointer of their own - the titles from the rule above, links
     from the browser's own stylesheet - which applies directly and so
     wins. */
  cursor: ns-resize;
}

.con-body #contact .repeater-container > div {
  margin-bottom: 0;
  padding: .7rem 0;
  border-bottom: 1px solid var(--iti-line);
  font-size: .92rem;
  line-height: 1.6;
  color: var(--iti-text);
}
.con-body #contact .repeater-container > div:last-child { border-bottom: 0; }
.con-body #contact .repeater-container .mapbox-elementor-widget-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--iti-blue);
  margin-bottom: .15rem;
}
.con-body #contact .repeater-container .mapbox-elementor-widget-title:hover { color: var(--iti-blue-700); }
.con-body #contact .repeater-container a { color: var(--iti-blue); }
.con-body #contact .repeater-container a:hover { color: var(--iti-blue-700); }

@media (max-width: 900px) {
  .con-body #contact { flex-direction: column; }
  .con-body #contact .repeater-container {
    flex: none;
    max-height: none;
    /* It grows to its full height here, so there is nothing to scroll and
       nothing for the cursor to promise. */
    cursor: auto;
  }
}
