/* =========================================================
   X-Go Montenegro Map – style.css
   ========================================================= */

:root {
  --green:      #4CAF82;
  --green-dark: #3a9a6e;
  --blue:       #185FA5;
  --south:      #0F6E56;
  --black:      #111111;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f0f1f2;
  --gray-200:   #e2e4e7;
  --gray-400:   #9ca3af;
  --gray-600:   #6b7280;
  --gray-800:   #1f2937;
  --header-h:   72px;
  --panel-w:    380px;
  --radius:     10px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;
  --shadow:     0 2px 12px rgba(0,0,0,0.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.18);
}

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

html, body {
  height: 100%;
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--gray-800);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── HEADER ──────────────────────────────────────────────── */
.site-header {
  height: var(--header-h);
  background: var(--black);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  padding: 0 18px;
  gap: 16px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 2000;
}

/* Left group: logo + dropdown stacked */
.header-left {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.header-logo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
  gap: 5px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.logo-xgo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}
.logo-tagline {
  font-size: 10px;
  color: var(--green);
  font-weight: 500;
  letter-spacing: 0.4px;
}

.header-title {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.header-title-main {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-title-sub {
  font-size: 10px;
  color: var(--green);
  letter-spacing: 0.2px;
}

.header-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/* ── FILTER TOGGLE ───────────────────────────────────────── */

.filter-toggle {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.filter-btn {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 16px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  -webkit-transition: background 0.2s, color 0.2s;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  letter-spacing: 0.3px;
}
.filter-btn:hover { color: rgba(255,255,255,0.85); }
.filter-btn.active {
  background: var(--green);
  color: var(--white);
}
.filter-btn.active[data-filter="north"] { background: var(--blue); }
.filter-btn.active[data-filter="south"] { background: var(--south); }

.filter-dropdown {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: rgba(255,255,255,0.8);
  padding: 5px 26px 5px 10px;
  cursor: pointer;
  outline: none;
  width: 190px;
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
}
.filter-dropdown:hover { border-color: rgba(255,255,255,0.32); }
.filter-dropdown option, .filter-dropdown optgroup {
  background: #1a1a2e;
  color: var(--white);
  font-family: var(--font-sans);
}

/* ── HEADER BUTTONS ──────────────────────────────────────── */
.btn-locate {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  background: rgba(76,175,130,0.12);
  border: 1px solid rgba(76,175,130,0.35);
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 20px;
  cursor: pointer;
  -webkit-transition: background 0.2s, border-color 0.2s;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-locate:hover  { background: rgba(76,175,130,0.22); border-color: var(--green); }
.btn-locate.active { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-locate.loading svg { -webkit-animation: spin 1s linear infinite; animation: spin 1s linear infinite; }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }
@keyframes spin         { to { -webkit-transform: rotate(360deg); transform: rotate(360deg); } }

.btn-contact {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 20px;
  white-space: nowrap;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  letter-spacing: 0.2px;
}
.btn-contact:hover { background: var(--green-dark); }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.app-main {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  overflow: hidden;
  position: relative;
  /* height set by JS */
}

/* ── SIDE PANEL ──────────────────────────────────────────── */
.side-panel {
  width: var(--panel-w);
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--gray-200);
  position: relative;
}
.side-panel::-webkit-scrollbar { width: 4px; }
.side-panel::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 2px; }

/* Default state */
.panel-default {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: center;
  height: 100%;
  padding: 40px 32px;
  gap: 14px;
}
.panel-default-title {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--gray-800);
  font-weight: 700;
}
.panel-default-sub {
  font-size: 13.5px;
  color: var(--gray-600);
  line-height: 1.6;
}
.legend {
  margin-top: 6px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 10px;
  -ms-flex-item-align: stretch;
      align-self: stretch;
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.legend-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 500;
}
.legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.legend-dot.north { background: var(--blue); }
.legend-dot.south { background: var(--south); }

/* Panel content */
.panel-content { padding-bottom: 24px; }

/* Mobile close button */
.panel-close-mobile {
  display: none;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: white;
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 16px;
  z-index: 10;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
}

/* Image area */
.panel-img {
  width: 100%;
  height: 220px;
  position: relative;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.panel-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 65%;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.6)), to(transparent));
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
}
.panel-img-label {
  position: absolute;
  bottom: 28px;
  left: 16px;
  right: 16px;
  font-size: 11px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.panel-img-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  z-index: 2;
}

/* Panel body */
.panel-body {
  padding: 18px 20px 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 13px;
}

.panel-badge {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
}
.panel-badge.north { background: rgba(24,95,165,0.1); color: var(--blue); }
.panel-badge.south { background: rgba(15,110,86,0.1); color: var(--south); }

.panel-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}
.panel-tagline {
  font-size: 13.5px;
  color: var(--green);
  font-weight: 600;
  font-style: italic;
  margin-top: -4px;
}
.panel-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* Live distance */
.panel-live-distance {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
  background: rgba(76,175,130,0.08);
  border: 1px solid rgba(76,175,130,0.2);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 13px;
  color: var(--green-dark);
  font-weight: 500;
}
.panel-live-distance.loading { color: var(--gray-400); border-color: var(--gray-200); background: var(--gray-50); }

/* Highlights */
.panel-highlights {
  list-style: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 7px;
}
.panel-highlights li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: flex-start;
      -ms-flex-align: flex-start;
          align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}
.panel-highlights li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-top: 6px;
}

/* Info grid */
.info-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 8px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.info-cell {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 10px 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 2px;
}
.info-cell-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--gray-400);
  font-weight: 600;
}
.info-cell-value {
  font-size: 13px;
  color: var(--gray-800);
  font-weight: 600;
}

/* Weather cell */
.weather-cell {
  -ms-grid-column: 1;
  -ms-grid-column-span: 2;
  grid-column: 1 / -1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border-radius: 8px;
  padding: 10px 12px;
}
.weather-cell.loading { color: var(--gray-400); }
.weather-icon { font-size: 22px; line-height: 1; }
.weather-info { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 1px; }
.weather-temp {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-800);
}
.weather-desc {
  font-size: 11px;
  color: var(--gray-600);
  text-transform: capitalize;
}

/* Tags */
.panel-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
}

/* Buttons */
.panel-buttons {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}
.btn-directions, .btn-gmaps, .btn-cta {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: opacity 0.2s, -webkit-transform 0.15s;
  transition: opacity 0.2s, -webkit-transform 0.15s;
  transition: opacity 0.2s, transform 0.15s;
  transition: opacity 0.2s, transform 0.15s, -webkit-transform 0.15s;
  border: none;
}
.btn-directions:hover, .btn-gmaps:hover, .btn-cta:hover {
  opacity: 0.87;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.btn-directions {
  background: rgba(76,175,130,0.1);
  color: var(--green-dark);
  border: 1.5px solid rgba(76,175,130,0.3);
}
.btn-gmaps {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1.5px solid var(--gray-200);
}
.btn-cta {
  background: var(--green);
  color: var(--white);
}

/* ── MAP ─────────────────────────────────────────────────── */
.map-container {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
  height: 100%;
  z-index: 1;
}

/* ── LEAFLET PIN ─────────────────────────────────────────── */
.map-pin {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 0;
  -webkit-transform: rotate(-45deg);
          transform: rotate(-45deg);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.55);
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.2s, box-shadow 0.2s;
  transition: -webkit-transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s;
  transition: transform 0.2s, box-shadow 0.2s, -webkit-transform 0.2s;
}
.map-pin:hover         { -webkit-transform: rotate(-45deg) scale(1.15); transform: rotate(-45deg) scale(1.15); }
.map-pin.active-pin    { -webkit-transform: rotate(-45deg) scale(1.2); transform: rotate(-45deg) scale(1.2); border-color: white; box-shadow: 0 5px 18px rgba(0,0,0,0.45); }
.map-pin-inner         { -webkit-transform: rotate(45deg); transform: rotate(45deg); font-size: 13px; font-weight: 700; color: white; font-family: var(--font-sans); }
.map-pin.north         { background: var(--blue); }
.map-pin.south         { background: var(--south); }

/* You-are-here marker */
.you-marker {
  width: 16px;
  height: 16px;
  background: var(--green);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  position: relative;
}
.you-marker::after {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  background: rgba(76,175,130,0.22);
  -webkit-animation: pulse 2s ease-out infinite;
          animation: pulse 2s ease-out infinite;
}
@-webkit-keyframes pulse {
  0%   { -webkit-transform: scale(0.7); transform: scale(0.7); opacity: 1; }
  100% { -webkit-transform: scale(2.2); transform: scale(2.2); opacity: 0; }
}
@keyframes pulse {
  0%   { -webkit-transform: scale(0.7); transform: scale(0.7); opacity: 1; }
  100% { -webkit-transform: scale(2.2); transform: scale(2.2); opacity: 0; }
}


/* ── RESPONSIVE — TABLET ─────────────────────────────────── */
@media (max-width: 900px) {
  :root { --panel-w: 320px; }
  .header-title-sub   { display: none; }
  .btn-locate-label   { display: none; }
  .btn-contact-label  { display: none; }
}

/* ── RESPONSIVE — MOBILE ─────────────────────────────────── */
@media (max-width: 640px) {
  :root { --header-h: 96px; }

  /* Mobile header: two rows */
  :root { --header-h: 96px; }

  .site-header {
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    height: auto;
    padding: 0;
    gap: 0;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }

  /* Row 1 */
  .header-left {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 0 10px;
    height: 52px;
  }
  .header-title { display: none; }
  .header-actions {
    margin-left: auto;
    padding: 0 10px;
    gap: 6px;
    height: 52px;
  }
  .btn-locate-label  { display: none; }
  .btn-contact-label { display: none; }

  /* Row 2: full-width dropdown */
  .filter-dropdown {
    display: block !important;
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 10px 28px 10px 14px;
    font-size: 12.5px;
    background-color: rgba(255,255,255,0.04);
    height: 44px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
  }

  /* Map area */
  .app-main { position: relative; }

  /* Panel slides in over the map */
  .side-panel {
    position: absolute;
    inset: 0;
    z-index: 200;
    width: 100%;
    border-right: none;
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
  }
  .side-panel.panel--open { -webkit-transform: translateX(0); transform: translateX(0); }

  .map-container { width: 100%; height: 100%; }

  .panel-close-mobile {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }
}

/* ── GALLERY CAROUSEL ────────────────────────────────────── */
.gallery {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--black);
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.gallery-track {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 100%;
  -webkit-transition: -webkit-transform 0.4s ease;
  transition: -webkit-transform 0.4s ease;
  transition: transform 0.4s ease;
  transition: transform 0.4s ease, -webkit-transform 0.4s ease;
}
.gallery-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}
.gallery-slide::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(0,0,0,0.6)), to(transparent));
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
}
.gallery-label {
  position: absolute;
  bottom: 28px;
  left: 16px;
  right: 60px;
  font-size: 11px;
  color: rgba(255,255,255,0.95);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.gallery-credit {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 10px;
  color: rgba(255,255,255,0.45);
  z-index: 2;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  width: 34px;
  height: 34px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}
.gallery-btn:hover { background: rgba(0,0,0,0.7); }
.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }
.gallery-btn.hidden { display: none; }
.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  -webkit-transition: background 0.2s, -webkit-transform 0.2s;
  transition: background 0.2s, -webkit-transform 0.2s;
  transition: background 0.2s, transform 0.2s;
  transition: background 0.2s, transform 0.2s, -webkit-transform 0.2s;
}
.gallery-dot.active {
  background: var(--white);
  -webkit-transform: scale(1.3);
          transform: scale(1.3);
}

/* ── WEATHER FORECAST ────────────────────────────────────── */
.weather-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
  background: var(--gray-50);
  border-radius: 10px;
  overflow: hidden;
}
.weather-current {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--gray-200);
}
.weather-current .weather-icon { font-size: 28px; line-height: 1; }
.weather-current-info { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; gap: 2px; }
.weather-current-temp { font-size: 20px; font-weight: 700; color: var(--gray-800); }
.weather-current-desc { font-size: 12px; color: var(--gray-600); }
.weather-current-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-400); font-weight: 600; margin-left: auto; }

.weather-forecast {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 8px 8px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}
.weather-forecast::-webkit-scrollbar { display: none; }

.weather-day {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 4px;
  min-width: 52px;
  padding: 8px 4px;
  border-radius: 8px;
  cursor: default;
  scroll-snap-align: start;
  -webkit-transition: background 0.15s;
  transition: background 0.15s;
}
.weather-day:hover { background: var(--gray-200); }
.weather-day.today { background: rgba(76,175,130,0.12); }
.weather-day-name { font-size: 10px; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: 0.4px; }
.weather-day.today .weather-day-name { color: var(--green-dark); }
.weather-day-icon { font-size: 18px; line-height: 1; }
.weather-day-max { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.weather-day-min { font-size: 11px; color: var(--gray-400); }
.weather-loading { padding: 20px; text-align: center; font-size: 13px; color: var(--gray-400); }

/* ── CONTACT MODAL ───────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 2000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--white);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 460px;
  position: relative;
  -webkit-transform: translateY(16px);
          transform: translateY(16px);
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
  transition: transform 0.25s ease, -webkit-transform 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 18px;
  cursor: pointer;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  line-height: 1;
  -webkit-transition: background 0.15s;
  transition: background 0.15s;
}
.modal-close:hover { background: var(--gray-200); }

.modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.modal-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  background: var(--black);
  padding: 8px 12px;
  border-radius: 8px;
  letter-spacing: 1px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.modal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.2;
}
.modal-sub {
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}

.modal-form {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 14px;
}
.form-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}
.form-row .form-field { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; }
.form-field {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
}
.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700, #374151);
  letter-spacing: 0.2px;
}
.required { color: var(--green); }
.form-field input,
.form-field textarea {
  font-family: var(--font-sans);
  font-size: 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 9px 12px;
  outline: none;
  color: var(--gray-800);
  background: var(--white);
  -webkit-transition: border-color 0.2s;
  transition: border-color 0.2s;
  resize: vertical;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--green); }
.form-field textarea { min-height: 90px; }

.modal-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  padding-top: 4px;
}
.btn-modal-wa, .btn-modal-email {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 7px;
  padding: 11px 12px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  -webkit-transition: opacity 0.2s;
  transition: opacity 0.2s;
}
.btn-modal-wa:hover, .btn-modal-email:hover { opacity: 0.85; }
.btn-modal-wa    { background: #25D366; color: white; }
.btn-modal-email { background: var(--green); color: white; }

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(80px);
          transform: translateX(-50%) translateY(80px);
  background: var(--gray-800);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 24px;
  z-index: 3000;
  white-space: nowrap;
  -webkit-transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
  transition: -webkit-transform 0.3s ease, opacity 0.3s ease;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transition: transform 0.3s ease, opacity 0.3s ease, -webkit-transform 0.3s ease;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-lg);
}
.toast.show {
  -webkit-transform: translateX(-50%) translateY(0);
          transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── YOU-ARE-HERE MARKER FIX ─────────────────────────────── */
.you-marker-wrap {
  width: 40px;
  height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  position: relative;
}
.you-marker-pulse {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(76,175,130,0.25);
  -webkit-animation: pulse 2s ease-out infinite;
          animation: pulse 2s ease-out infinite;
}
.you-marker-dot {
  width: 14px;
  height: 14px;
  background: var(--green);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  position: relative;
  z-index: 1;
}

/* ── PANEL LINKS ─────────────────────────────────────────── */
.panel-links {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 6px;
}
.panel-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--green-dark);
  text-decoration: none;
  -webkit-transition: color 0.15s;
  transition: color 0.15s;
}
.panel-link:hover { color: var(--green); text-decoration: underline; }

/* Mobile form row stacks */
@media (max-width: 480px) {
  .form-row { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
  .modal-actions { -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; }
}
