:root {
  --bg: #0a1628;
  --card: #132743;
  --muted: #9ab0cc;
  --text: #f0f4f8;
  --accent: #d4a853;
  --line: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

body.no-scroll {
  overflow: hidden;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.back {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.hero-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  margin: 0;
  cursor: zoom-in;
}

h1 {
  margin: 0.4rem 0 0.6rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

p.lead {
  color: var(--muted);
  margin: 0 0 1.2rem;
}

.gallery-meta {
  margin: 0 0 1rem;
  color: var(--accent);
  font-weight: 600;
}

.hero-figure {
  margin: 0 0 1.2rem;
}

.hero-figure figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 1.8rem;
}

.grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.gallery-card {
  margin: 0;
  padding: 0.55rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.gallery-card figcaption {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1rem 1.2rem;
  margin-top: 1rem;
}

.card h2 { margin-top: 0.2rem; }
.card p, .card li { color: var(--muted); }

.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
}

.quick-nav p {
  color: var(--muted);
  margin: 0.2rem 0 0.9rem;
}

.beach-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.beach-tags a {
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.beach-tags a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.beach-detail {
  margin-top: 1.2rem;
  padding: 1.1rem 1.1rem 1.2rem;
}

.beach-detail h2 {
  margin: 0.1rem 0 0.5rem;
}

.beach-summary {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
}

.meta-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.8rem;
  color: var(--accent);
  background: rgba(212, 168, 83, 0.08);
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fact-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.94rem;
}

.fact-list strong {
  color: var(--text);
}

.beach-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.beach-gallery .gallery-card {
  padding: 0.48rem;
}

.beach-gallery .gallery-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.beach-gallery .gallery-card figcaption {
  margin-top: 0.45rem;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.8rem;
  font-size: 0.92rem;
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 0.58rem 0.62rem;
  text-align: left;
}

.compare-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.compare-table td {
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 9, 18, 0.94);
}

.lightbox.active {
  display: flex;
}

.lightbox-image {
  max-width: min(92vw, 1400px);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #050d1b;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(19, 39, 67, 0.9);
  color: var(--text);
  cursor: pointer;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border-radius: 10px;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-meta {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  width: min(92vw, 900px);
  text-align: center;
}

.lightbox-caption {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.lightbox-counter {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 860px) {
  .lightbox-image { max-height: 70vh; }
  .lightbox-nav {
    width: 44px;
    height: 56px;
    font-size: 1.8rem;
  }
}

@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-img { height: 260px; }
}

@media (max-width: 580px) {
  .grid { grid-template-columns: 1fr; }
  .fact-list { grid-template-columns: 1fr; }
}
