:root {
  --sand: #f4ede1;
  --deep-teal: #0b3d3a;
  --teal: #12554f;
  --gold: #c9a24b;
  --white: #ffffff;
}

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

html, body {
  min-height: 100%;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(160deg, var(--deep-teal) 0%, var(--teal) 18%, #1c6b63 100%);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(201,162,75,0.15), transparent 45%);
  pointer-events: none;
}

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11,61,58,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
  order: 1;
}

.brand-logo {
  height: 64px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-toggle-checkbox {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-label span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
}

.header-menu {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex: 1;
  min-width: 0;
  order: 2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  max-width: 100%;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  overflow-wrap: anywhere;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  line-height: 1;
}

.lang-switch svg {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  display: block;
}

.lang-switch a.active {
  opacity: 1;
}

.lang-switch a:hover {
  opacity: 1;
}

.concept-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  order: 3;
}

.concept-label {
  font-size: 8px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

.concept-roundel {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url('images/bocasdelmar-roundel.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255,255,255,0.3);
  display: block;
}

@media (max-width: 1060px) {
  .header-inner {
    align-items: center;
    flex-wrap: wrap;
  }

  .brand-logo {
    height: 42px;
  }

  .nav-toggle-label {
    display: flex;
    order: 2;
  }

  .concept-badge {
    order: 3;
    flex-basis: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .header-menu {
    display: none;
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 6px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .nav-toggle-checkbox:checked ~ .header-menu {
    display: flex;
  }

  .site-nav {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }
}

/* main */

main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  overflow-x: hidden;
  flex: 1 0 auto;
  width: 100%;
}

.strapline {
  text-align: center;
  font-family: 'Jost', 'Segoe UI', sans-serif;
  font-weight: 300;
  letter-spacing: 0.01em;
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  color: rgba(255,255,255,0.92);
  max-width: 760px;
  margin: 0 auto 48px;
  line-height: 1.5;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 680px) {
  .panels { grid-template-columns: minmax(0, 1fr); }
}

.panel {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}

.panel-overlay {
  width: 100%;
  padding: 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(11,34,32,0.25) 45%, rgba(9,28,26,0.9) 100%);
}

.panel-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.panel h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 2px;
}

.panel p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
}

/* location map, home page */

.location-map {
  max-width: 454px;
  margin: 40px auto 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.location-map img {
  width: 100%;
  height: auto;
  display: block;
}

/* simple page header, for Contact / Privacy etc. */

.page-hero {
  text-align: center;
  margin-bottom: 40px;
}

.page-eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.page-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.page-updated {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* hero image, for About Boca Chica */

.hero-image {
  max-width: 760px;
  margin: 0 auto 40px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.hero-image img {
  width: 100%;
  height: auto;
  max-height: 430px;
  object-fit: cover;
  display: block;
}

@media (max-width: 680px) {
  .hero-image img {
    max-height: 260px;
  }
}

/* photo carousel, for About Boca Chica */

.carousel-section {
  margin-bottom: 48px;
}

.carousel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 2px 16px;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
}

.carousel-track::-webkit-scrollbar-thumb {
  background: rgba(201,162,75,0.5);
  border-radius: 4px;
}

.carousel-item {
  flex: 0 0 auto;
  width: 170px;
  aspect-ratio: 3 / 2;
  scroll-snap-align: start;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 34px rgba(0,0,0,0.3);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.carousel-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.carousel-arrow:hover {
  background: var(--gold);
  color: var(--deep-teal);
  border-color: var(--gold);
}

@media (max-width: 680px) {
  .carousel-item {
    width: 150px;
  }
}

/* thumbnail photo album, for About Boca Chica */

.gallery-section {
  margin-top: 8px;
}

.gallery-heading {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 70px;
  grid-auto-flow: dense;
  gap: 10px;
}

.gallery-item {
  grid-row: span 2;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* portrait photos get a tall cell; landscape photos get the default or a big cell — never the reverse */
.gallery-item--tall {
  grid-column: span 1;
  grid-row: span 4;
}

.gallery-item--big {
  grid-column: span 2;
  grid-row: span 4;
}

@media (max-width: 680px) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 60px;
  }
}

/* photo lightbox, for About Boca Chica */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6,20,19,0.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 70px 80px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-image {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  display: block;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--gold);
  color: var(--deep-teal);
  border-color: var(--gold);
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
}

.lightbox-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
  line-height: 1;
}

.lightbox-arrow--prev {
  left: 16px;
}

.lightbox-arrow--next {
  right: 16px;
}

@media (max-width: 680px) {
  .lightbox {
    padding: 70px 16px;
  }

  .lightbox-arrow {
    width: 40px;
    height: 40px;
    font-size: 1.4rem;
  }
}

/* prose content, for Contact / Privacy pages */

.page-content {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-size: 0.98rem;
}

.page-content p {
  margin-bottom: 20px;
}

.page-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 36px 0 12px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content .subheading {
  font-size: inherit;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.page-content a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(201,162,75,0.4);
  transition: text-decoration-color 0.2s ease;
}

.page-content a:hover {
  text-decoration-color: var(--gold);
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 28px;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}

.contact-line a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-line a:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.contact-line .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
}

.whatsapp-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #25D366;
}

.map-box {
  max-width: 480px;
  height: 260px;
  margin: 4px auto 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.map-box--footer {
  max-width: 220px;
  height: 120px;
  margin: 12px 0 0;
  border-radius: 10px;
}

.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* footer */

footer.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-col {
  min-width: 180px;
}

.footer-heading {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-line .icon,
.footer-contact-line .whatsapp-icon {
  margin-top: 2px;
}

.footer-contact-line a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact-line a:hover {
  color: var(--gold);
}

.footer-contact-line .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--gold);
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-legal p {
  margin: 0;
}

.footer-bottom a:hover {
  color: var(--gold);
}
