/* ==========================================================================
   COUNTRYMAN TRAVELS MODERN EDITORIAL DESIGN SYSTEM
   Palette: Soft Off-White (#F9FAFB), Pure White (#FFFFFF), Deep Charcoal (#111827)
   Accents: Vegas Gold (#D4AF37), Deep Navy (#0F172A), Terracotta (#E11D48)
   ========================================================================== */

* { box-sizing: border-box; }
html, body { overflow-x: hidden; }

:root {
  --bg: #FFFFFF;
  --bg-card: #FFFFFF;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;
  
  --navy: #1A1A1A;
  --navy-light: #303030;
  --text: #1A1A1A;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  
  --gold: #007A68;
  --gold-hover: #005F52;
  --terracotta: #007A68;
  --emerald: #007A68;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08);
}

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand {
  font-family: "Source Serif 4", Georgia, serif;
  color: var(--text);
  letter-spacing: -0.3px;
}

a { color: var(--navy); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; color: var(--gold-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* ============ TOP NAV WITH DROPDOWN ============ */
.global-bar {
  background: #FFFFFF; color: var(--text-secondary); border-bottom: 1px solid var(--line);
  height: 38px; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 500;
}
.global-bar a { color: var(--text-secondary); text-decoration: none; }
.global-bar a:hover { color: var(--gold-hover); }
.global-bar .g-brand { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.global-bar .g-links { display: flex; align-items: center; gap: 1rem; }

.breadcrumb-bar {
  background: #F3F4F6; border-bottom: 1px solid var(--line);
  padding: 8px 1.5rem; font-size: 12.5px; font-weight: 600; color: var(--text-muted);
}
.breadcrumb-bar a { color: var(--text-secondary); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--gold-hover); }
.breadcrumb-bar .sep { margin: 0 6px; color: var(--line-strong); }

.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 1.5rem; height: 68px; box-shadow: var(--shadow-sm);
}
.site-nav .brand {
  font-size: 19px; font-weight: 800; color: var(--navy); text-decoration: none;
  display: flex; flex: 0 0 auto; align-items: center; gap: 8px; letter-spacing: -0.5px;
}
.site-nav .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

.site-nav .links {
  display: flex; min-width: 0; flex: 1 1 auto; justify-content: flex-end; gap: 6px; align-items: center;
}
.site-nav a.nav-link, .nav-dropdown-trigger {
  font-size: 14px; font-weight: 600; color: var(--text-secondary); padding: 8px 14px;
  border-radius: 6px; white-space: nowrap; transition: all 0.15s ease; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
}
.site-nav a.nav-link:hover, .nav-dropdown-trigger:hover {
  color: var(--navy); background: #F3F4F6; text-decoration: none;
}

/* NAV DROPDOWN MENU */
.nav-dropdown {
  position: relative; display: inline-block;
}
.nav-dropdown-content {
  display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 8px 0; z-index: 200; margin-top: 4px;
}
.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}
.nav-dropdown-content a {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  color: var(--text); font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: background 0.12s ease;
}
.nav-dropdown-content a:hover {
  background: #F3F4F6; color: var(--navy); text-decoration: none;
}

.site-nav .nav-cta {
  background: var(--gold); color: #FFFFFF !important; font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 8px; text-decoration: none !important;
  white-space: nowrap; margin-left: 10px; box-shadow: 0 2px 8px rgba(212,175,55,0.3);
  transition: background 0.15s ease;
}
.site-nav .nav-cta:hover { background: var(--gold-hover); }

@media (max-width: 1180px) {
  .site-nav a.nav-link, .nav-dropdown-trigger { font-size: 13px; padding: 8px 10px; }
  .site-nav .nav-cta { display: none; }
}

@media (max-width: 768px) {
  .global-bar {
    height: auto; min-height: 38px; padding: .45rem 1rem; gap: .75rem; align-items: flex-start;
  }
  .global-bar .g-brand { flex: 0 1 145px; line-height: 1.25; }
  .global-bar .g-links {
    flex: 1 1 auto; justify-content: flex-end; flex-wrap: wrap; gap: .2rem .7rem; line-height: 1.45;
  }
  .site-nav { height: auto; min-height: 62px; padding: .6rem 1rem; gap: .75rem; overflow: hidden; }
  .site-nav .brand { flex: 0 0 auto; font-size: 17px; }
  .site-nav .links {
    min-width: 0; flex: 1 1 auto; overflow-x: auto; overscroll-behavior-inline: contain;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .site-nav .links::-webkit-scrollbar { display: none; }
  .site-nav a.nav-link, .nav-dropdown-trigger { font-size: 13px; padding: 8px 10px; }
  .site-nav .nav-cta { display: none; }
  .hotel-stats-strip > *, .hotel-info-grid > *, .card-grid > * { min-width: 0; }
  .stat-badge, .info-card, .card { overflow-wrap: anywhere; }
}

/* ============ HERO SECTIONS ============ */
.hero-split {
  max-width: 1140px; margin: 0 auto; padding: 4rem 1.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
@media (max-width: 868px) {
  .hero-split { grid-template-columns: 1fr; text-align: center; gap: 2rem; padding: 2.5rem 1.5rem; }
}

.hero-text h1 {
  font-size: 42px; font-weight: 800; line-height: 1.15; color: var(--navy); margin: 0 0 16px;
}
.hero-text p.sub {
  font-size: 17px; color: var(--text-secondary); line-height: 1.6; margin: 0 0 24px;
}
.hero-cta-group {
  display: flex; gap: 14px; flex-wrap: wrap;
}
@media (max-width: 868px) {
  .hero-cta-group { justify-content: center; }
}

.btn-primary {
  background: var(--gold); color: #FFFFFF !important; font-weight: 800; font-size: 15px;
  padding: 13px 28px; border-radius: 8px; text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(212,175,55,0.35); display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.15s ease;
}
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }

.btn-secondary {
  background: #FFFFFF; border: 1px solid var(--line-strong); color: var(--navy) !important;
  font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 8px; text-decoration: none !important;
  display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s ease;
}
.btn-secondary:hover { background: #F3F4F6; }

/* ============ CARDS & GRIDS ============ */
.content-wrap {
  max-width: 1140px; margin: 0 auto; padding: 3rem 1.5rem;
}

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; margin: 2rem 0;
}

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.75rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong);
}

/* Chapter pages and designed fallbacks for directory entries without photos. */
.chapter-hero {
  padding: clamp(3.5rem, 8vw, 6rem) max(1.5rem, calc((100% - 1140px) / 2));
  border-bottom: 1px solid #CBE7E1;
  background: linear-gradient(135deg, #F5FAF8 0%, #EAF6F3 100%);
}
.chapter-hero .eyebrow {
  margin: 0 0 .65rem;
  color: #007A68;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chapter-hero h1 {
  max-width: 880px;
  margin: 0 0 .9rem;
  color: #17312C;
  font-size: clamp(2.45rem, 6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -.045em;
}
.chapter-hero .dek {
  max-width: 760px;
  margin: 0;
  color: #52645F;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.7;
}
.chapter-list { display: grid; gap: .65rem; padding-left: 1.25rem; }
.chapter-list li { color: #3F4E4A; line-height: 1.7; }
.directory-visual,
.directory-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1.5rem;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--directory-accent, #007A68), #17312C);
  text-align: center;
}
.directory-visual span,
.directory-card-visual span { color: #FFFFFF; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; line-height: 1.1; }
.directory-card { display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; border-top: 5px solid var(--directory-accent, #007A68); }
.directory-card-visual { min-height: 130px; margin: -1.75rem -1.75rem 1rem; border-radius: 0; }
.directory-card-visual span { font-size: 1.35rem; }
.show-filters { margin:2rem 0 2.5rem; padding:1.25rem; border:1px solid #CBE2DD; border-radius:14px; background:#F4F9F8; }
.show-filters__head { display:flex; align-items:end; justify-content:space-between; gap:1rem; margin-bottom:1rem; }
.show-filters__head p { margin:0 0 .3rem; color:#007A68; font-size:.7rem; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.show-filters__head h2 { margin:0; color:#17312C; font-family:"Source Serif 4",Georgia,serif; font-size:1.45rem; }
.show-filters__head strong { color:#52645F; font-size:.8rem; white-space:nowrap; }
.show-filters__groups { display:grid; gap:.85rem; }
.show-filters fieldset { min-width:0; margin:0; padding:0; border:0; }
.show-filters legend { margin-bottom:.38rem; color:#52645F; font-size:.7rem; font-weight:800; text-transform:uppercase; }
.show-filters fieldset div { display:flex; flex-wrap:wrap; gap:.35rem; }
.show-filters button { min-height:34px; padding:.35rem .62rem; border:1px solid #BFD6D1; border-radius:999px; background:#fff; color:#455A55; font:700 .74rem "DM Sans",Arial,sans-serif; cursor:pointer; }
.show-filters button[aria-pressed="true"] { border-color:#007A68; background:#007A68; color:#fff; }
.show-filters__empty { padding:1rem; border-radius:10px; background:#F7ECE9; color:#783C31; font-weight:700; }
@media (max-width:640px) { .show-filters__head { align-items:start; flex-direction:column; }.show-filters { padding:1rem; } }

.hotel-stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 1.5rem 0;
}
@media (max-width: 768px) {
  .hotel-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

.stat-badge {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 10px; padding: 14px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 4px;
}
.stat-badge .label { font-size: 11px; font-weight: 800; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-badge .value { font-size: 17px; font-weight: 800; color: var(--navy) !important; }
.stat-badge .sub { font-size: 12px; color: var(--text-secondary); }

.hotel-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin: 1.5rem 0;
}
.info-card {
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.info-card h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.info-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55; }

/* INLINE SPEC PILLS */
.spec-pill-container {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.spec-pill {
  background: #F3F4F6; color: var(--text); border: 1px solid var(--line);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 6px;
}

/* ============ FOOTER ============ */
.site-footer {
  background: #F7F9F8; color: var(--text-secondary); border-top: 1px solid var(--line); padding: 4rem 1.5rem 2rem; margin-top: 5rem;
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--gold-hover); text-decoration: underline; }
.site-footer h3, .site-footer h4 { color: var(--text) !important; font-size: 15px; margin: 0 0 14px; }
.footer-grid {
  max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2.5rem;
}
.footer-bottom {
  max-width: 1140px; margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px;
}

/* ============ AFFILIATE & LEGAL ============ */
.affiliate-notice {
  margin: 1rem 0 1.4rem;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #F8FAFC;
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
}
.affiliate-notice strong { color: var(--navy); }
.affiliate-notice a { color: var(--navy); font-weight: 700; }
.affiliate-notice.on-dark {
  border-color: rgba(255,255,255,.2);
  border-left-color: var(--gold);
  background: rgba(255,255,255,.07);
  color: #CBD5E1;
}
.affiliate-notice.on-dark strong,
.affiliate-notice.on-dark a { color: #FFFFFF; }

/* ============ CONVERSION COMPONENTS ============ */
.deal-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.deal-card__image { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; border-radius: 0; background: #E8F2F0; }
.deal-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem; }
.deal-card__body h3 { margin: 0 0 .55rem; font-size: 1.1rem; color: var(--text); }
.deal-card__body p { margin: 0 0 1rem; color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }
.meta-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1.1rem; }
.meta-tag { background: #EDF7F5; border: 1px solid #CBE7E1; border-radius: 999px; color: #056253; font-size: .72rem; font-weight: 800; padding: .3rem .55rem; }
.deal-card .btn-primary { width: 100%; min-height: 48px; justify-content: center; margin-top: auto; padding: .75rem 1rem; }
.lead-capture {
  background: #F2F8F7; border: 1px solid #CBE7E1; border-radius: 16px; padding: clamp(1.35rem, 3vw, 2.5rem);
}
.lead-capture__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 2rem; align-items: center; }
.lead-capture h2 { margin: 0 0 .55rem; font-size: clamp(1.65rem, 3vw, 2.35rem); color: var(--text); }
.lead-capture p { margin: 0; color: var(--text-secondary); }
.lead-capture form { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.lead-capture input { width: 100%; min-height: 48px; border: 1px solid #B9D8D2; border-radius: 8px; background: #FFFFFF; color: var(--text); font: inherit; padding: .75rem .85rem; }
.lead-capture button { min-height: 48px; border: 0; border-radius: 8px; background: var(--gold); color: #FFFFFF; font: inherit; font-weight: 800; cursor: pointer; }
.lead-capture .form-note, .lead-capture .form-status { grid-column: 1 / -1; margin: 0; font-size: .78rem; }
.lead-capture .form-status { display: none; color: #056253; font-weight: 700; }
.lead-capture.is-success .form-status { display: block; }
.mobile-sticky-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 76px; }
  .lead-capture__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .lead-capture form { grid-template-columns: 1fr; }
  .mobile-sticky-cta {
    position: fixed; inset: auto 0 0; z-index: 300; display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem; background: rgba(255,255,255,.98); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }
  .mobile-sticky-cta span { flex: 1; color: var(--text); font-size: .78rem; font-weight: 700; line-height: 1.25; }
  .mobile-sticky-cta a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .7rem .85rem; border-radius: 8px; background: var(--gold); color: #FFFFFF !important; font-size: .8rem; font-weight: 800; text-decoration: none; }
}
.legal-page { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 5vw, 3.25rem); color: var(--navy); margin-bottom: .5rem; }
.legal-page h2 { color: var(--navy); margin-top: 2.2rem; }
.legal-page p, .legal-page li { color: var(--text-secondary); line-height: 1.75; }
.legal-page .legal-updated { color: var(--text-muted); font-size: 13px; }
.legal-page .legal-summary {
  border-left: 4px solid var(--gold); background: #F8FAFC; border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem; margin: 1.5rem 0 2rem;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 1.5rem; }
.legal-links a { color: var(--navy); font-weight: 700; }
