/* =========================================
   LAYOUT — layout.css
   ─────────────────────────────────────────
   Top-level structural regions:
   site-header · main-content · site-footer
   ========================================= */

/* ── Site header ──────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500; /* Well above the map canvas and nodes */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: linear-gradient(
    to bottom,
    rgba(6, 12, 6, 0.75) 0%,
    transparent 100%
  );
  backdrop-filter: blur(2px);
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
}

/* Logo anchor — controls the flex gap between icon and name */
.logo-link {
  display: flex;
  align-items: center;
  gap: 1.2rem; /* Proper spacing between icon and text */
  text-decoration: none;
  color: inherit;
}

.logo-icon-img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.5));
  transform: translateY(1px);
  flex-shrink: 0;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1; /* Normalizes the bounding box center */
  color: var(--cream);
  letter-spacing: 0.04em;
}

.logo-text em {
  color: var(--gold-light);
  font-style: italic;
}

/* ── Desktop Nav ──────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(245, 240, 232, 0.8);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-link.active {
  color: var(--gold-light);
  font-weight: 500;
}

.nav-link.active svg {
  fill: rgba(201, 168, 76, 0.3);
  stroke: var(--gold-light);
  stroke-width: 2.2;
}

/* ── Tablet Optimization ──────────────── */
@media (max-width: 950px) {
  /* Collapse long email text to save space on tablets */
  .email-text {
    display: none;
  }
}

/* ── Mobile Icon-only Nav ─────────────── */
@media (max-width: 700px) {
  /* Reduced header padding + relative positioning context for the nav */
  .site-header {
    padding: 0.75rem 1rem;
    position: fixed; /* keep fixed */
  }

  /* Brand name disappears — only the icon logo remains */
  .logo-text {
    display: none;
  }

  /* Nav labels (text) hide — only SVG icons remain */
  .nav-label {
    display: none;
  }

  /* Absolutely anchor the nav to the right edge of the header — never disappears */
  .header-nav {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
  }

  /* Icon nav links: fixed-size circular touch targets */
  .header-nav .nav-link {
    flex-shrink: 0;
    display: flex;
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    gap: 0;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.3);
    transition: border-color 0.2s ease, background 0.2s ease;
    color: rgba(245, 240, 232, 0.85);
  }

  .header-nav .nav-link:hover {
    border-color: rgba(201, 168, 76, 0.7);
    background: rgba(201, 168, 76, 0.1);
    color: var(--gold-light, #c9a84c);
  }

  /* Force SVG to always render at fixed size */
  .header-nav .nav-link svg {
    display: block;
    flex-shrink: 0;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px;
    min-height: 18px;
  }
}


/* ── Main content area ────────────────── */
.main-content {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem 1.5rem 10rem;
  gap: 2rem;
}

/* ── Site footer ──────────────────────── */
.site-footer {
  position: relative;
  z-index: 10;
  padding: 2rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(to top, rgba(6, 12, 6, 0.98) 0%, transparent 100%);
}

.location-section {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 0 1rem;
}

.location-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.location-title {
  color: var(--gold, #c9a84c);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.location-description {
  color: rgba(245, 240, 232, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  font-family: 'Cormorant Garamond', serif;
  text-align: left;
}

.location-meta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgba(245, 240, 232, 0.9);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  text-align: left;
  width: fit-content;
  margin: 0 auto;
}

.location-meta p {
  display: flex;
  align-items: center; /* Center the icon vertically with the text */
  gap: 10px;
  margin: 0;
  line-height: 1.5;
}

.location-meta .meta-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.location-meta strong {
  color: var(--gold-light, #e3c97d);
}

.seo-address {
  font-style: normal;
  color: rgba(245, 240, 232, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.seo-address strong {
  color: var(--gold, #c9a84c);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  background: #111;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.8) contrast(1.1) opacity(0.8);
  transition: all 0.5s ease;
}

.map-container:hover iframe {
  filter: grayscale(0) contrast(1) opacity(1);
}

@media (min-width: 860px) {
  .location-section {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    text-align: left;
    padding: 0;
    gap: 4rem; /* Add much more breathing room between text and map on desktop */
  }
  .location-content {
    text-align: left;
    border: none;
    border-left: 2px solid rgba(201, 168, 76, 0.5);
    padding: 0 0 0 2.5rem;
    flex: 1;
    justify-content: center;
  }
  .location-meta {
    margin: 0; /* Left align on desktop */
  }
  .map-container {
    flex: 1.2;
    height: auto;
    min-height: 400px;
  }
}

@media (max-width: 600px) {
  .location-content {
    gap: 1rem;
    padding: 1rem 0;
  }
  .location-title {
    font-size: 1.4rem;
  }
  .location-description {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .location-meta {
    padding: 1rem;
    gap: 0.8rem;
    font-size: 0.8rem;
  }
  .seo-address {
    font-size: 0.75rem;
    line-height: 1.4;
  }
}
