:root {
  --blue-900: #0b2545;
  --blue-700: #13315c;
  --blue-500: #1d5b9e;
  --blue-300: #4f8fd1;
  --ice: #eef5fb;
  --snow: #ffffff;
  --ink: #182635;
  --muted: #5c6b7a;
  --border: #dde6ef;
  --accent: #ff7a30;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--ice);
  line-height: 1.5;
}

a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* header */
header.site {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  color: var(--snow);
}
header.site .top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
  gap: 10px;
}
header.site .logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--snow);
  letter-spacing: -0.5px;
}
header.site .logo span { color: var(--accent); }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  color: var(--snow);
  font-size: 1.2rem;
  line-height: 1;
  padding: 6px 12px;
  cursor: pointer;
}
nav.main { padding-bottom: 14px; }
.nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-themes {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.nav-themes-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
nav.main a {
  color: rgba(255,255,255,0.88);
  font-size: 0.92rem;
  font-weight: 600;
}
nav.main .nav-themes a { font-size: 0.85rem; font-weight: 500; }
nav.main a:hover { color: var(--snow); text-decoration: none; }

@media (max-width: 720px) {
  header.site .top { padding-left: 8px; padding-right: 8px; }
  .menu-toggle { display: block; }
  nav.main { display: none; }
  nav.main.open { display: block; }
  .nav-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-themes { width: 100%; }
}

/* layout */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0 60px;
}
@media (min-width: 900px) {
  .layout.with-sidebar { grid-template-columns: 2.4fr 1fr; }
}

h1 { font-size: 1.7rem; margin: 0 0 12px; }
h2.section-title {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--blue-700);
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
  margin: 28px 0 16px;
}
h2.section-title:first-child { margin-top: 0; }

/* cards */
.card {
  background: var(--snow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card + .card { margin-top: 18px; }
.card-body { padding: 18px; }

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0 60px;
}
.resort-card { background: var(--snow); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.resort-card img { height: 140px; object-fit: cover; width: 100%; background: var(--border); }
.resort-card .rc-body { padding: 12px 14px; }
.resort-card h3 { font-size: 1rem; margin: 0 0 4px; }
.resort-card .country { color: var(--muted); font-size: 0.82rem; }

.article-list .article-item {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.article-list .article-item:last-child { border-bottom: none; }
.article-thumb-link { flex-shrink: 0; }
.article-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--border);
}
.article-item .meta { color: var(--muted); font-size: 0.8rem; }
.article-item h3 { margin: 2px 0 6px; font-size: 1.02rem; }
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  background: var(--ice);
  color: var(--blue-500);
  margin-right: 6px;
}
.badge.archive { background: #fff1e6; color: var(--accent); }
.badge.reference { background: #eef6ee; color: #2e7d32; }

.tag-pill {
  display: inline-block;
  font-size: 0.78rem;
  background: var(--ice);
  color: var(--blue-700);
  padding: 3px 10px;
  border-radius: 20px;
  margin: 2px 4px 2px 0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.gallery img { border-radius: 6px; height: 100px; object-fit: cover; }
.gallery figure { margin: 0; }
.gallery figure img { width: 100%; }
.gallery figcaption { padding: 6px 2px; font-size: 0.78rem; color: var(--muted); }

.article-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
  margin: 14px 0;
}

.article-summary { margin-bottom: 10px; }

.archive-gallery { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.archive-gallery figure { margin: 0; background: var(--ice); border-radius: 8px; overflow: hidden; }
.archive-gallery img { height: 160px; width: 100%; border-radius: 0; }
.archive-gallery figcaption { padding: 8px 10px; font-size: 0.8rem; color: var(--muted); }

.ad-slot { display: block; margin: 14px 0; text-align: center; }
.ad-slot img { margin: 0 auto; border-radius: 6px; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin: 16px 0 10px; }

footer.site {
  background: var(--blue-900);
  color: rgba(255,255,255,0.7);
  padding: 26px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.footer-links a { color: rgba(255,255,255,0.8); font-weight: 600; }
.footer-links a:hover { color: var(--snow); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: rgba(255,255,255,0.75); display: flex; }
.footer-social a:hover { color: var(--accent); }
.footer-copy { color: rgba(255,255,255,0.5); }

.prose :is(p, ul, ol) { margin: 0 0 1em; }
/* the WYSIWYG editor always saves bullet lists as <ol><li data-list="bullet">...</li></ol> - Quill
   has no separate <ul> concept at all, bullet vs numbered is only the data-list attribute on each
   <li>. Browsers number a plain <ol> by default since they don't know what data-list means, so
   this restores the bullet marker here on the public site (the editor has its own CSS for this). */
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose img { border-radius: 8px; margin: 10px 0; }
.prose :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0.8em 0 0.4em;
  line-height: 1.4;
}
/* migrated content carries old fixed-px tables/iframes (e.g. style="width: 627px") - let the
   table itself scroll horizontally instead of blowing out the whole page on mobile */
.prose table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
  width: auto !important;
  margin: 10px 0;
}
.prose iframe { max-width: 100%; }

.acc-item + .acc-item { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.acc-contact { margin-top: 8px; }
.acc-contact strong { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 2px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 0;
}
.pagination .page-prev, .pagination .page-next {
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--snow);
  box-shadow: var(--shadow);
}
.pagination .page-prev.disabled, .pagination .page-next.disabled {
  color: var(--muted);
  opacity: 0.5;
}
.pagination .page-info { color: var(--muted); font-size: 0.85rem; }

/* lightbox overlay for gallery images */
.gallery img, .article-cover { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 21, 37, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px 16px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.lightbox .lb-caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  padding: 0 60px;
}
.lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--snow);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  z-index: 2;
}
.lightbox .lb-nav {
  /* the full-height left/right halves are the click target - leave room at the top so they
     don't sit above the close button (same stacking level, later in source order wins) */
  position: absolute;
  top: 60px;
  bottom: 0;
  width: 50%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 2.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  z-index: 1;
}
.lightbox .lb-prev { left: 0; justify-content: flex-start; padding-left: 10px; }
.lightbox .lb-next { right: 0; justify-content: flex-end; padding-right: 10px; }
.lightbox .lb-nav[hidden] { display: none; }
.lightbox .lb-nav span {
  background: rgba(0,0,0,0.35);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 600px) {
  .lightbox .lb-nav span { width: 36px; height: 36px; font-size: 1.4rem; }
}
