/* ==========================================================================
   NaahiXtension · guides.css
   Editorial stylesheet for Las Vegas SEO Guides and Hub.
   Inherits design system tokens from /styles.css.
   ========================================================================== */

:root {
  --guide-max: 760px;
  --hub-max: 1140px;
}

/* Base resets & typography */
*, *::before, *::after {
  box-sizing: border-box;
}

body.guide-page {
  background: var(--linen, #F7F0EA);
  color: var(--ink, #1C1114);
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Nav */
.guide-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(247, 240, 234, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule, rgba(28, 17, 20, 0.14));
}

.guide-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--wrap, 1220px);
  margin: 0 auto;
  padding: 0 24px;
}

.guide-brand {
  font-family: var(--display, 'Fraunces', serif);
  font-size: 21px;
  letter-spacing: -0.01em;
  color: var(--ink, #1C1114);
  text-decoration: none;
}

.guide-brand i {
  font-style: normal;
  color: var(--muted, #6E564F);
}

.guide-navlinks {
  display: flex;
  align-items: center;
  gap: 24px;
}

.guide-navlinks a {
  font-size: 15px;
  color: var(--muted, #6E564F);
  text-decoration: none;
  transition: color 200ms ease;
}

.guide-navlinks a:hover {
  color: var(--ink, #1C1114);
}

.btn-book-nav,
.guide-navlinks a.btn-book-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #B9304A) !important;
  color: #FFFFFF !important;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 999px;
  text-decoration: none;
  transition: background 250ms ease, transform 200ms ease;
}

.btn-book-nav:hover,
.guide-navlinks a.btn-book-nav:hover {
  background: var(--accent-hover, #A82740) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 24px 0 12px;
  font-size: 13.5px;
  color: var(--muted, #6E564F);
}

.breadcrumbs a {
  color: var(--muted, #6E564F);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink, #1C1114);
  text-decoration: underline;
}

.breadcrumbs span.sep {
  margin: 0 8px;
  opacity: 0.5;
}

/* Article Container */
.guide-container {
  width: 100%;
  max-width: var(--guide-max);
  margin: 0 auto;
  padding: 24px 24px 80px;
}

/* Hub Container */
.hub-container {
  width: 100%;
  max-width: var(--hub-max);
  margin: 0 auto;
  padding: 40px 24px 100px;
}

/* Header */
.guide-header {
  margin-bottom: 32px;
}

.guide-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--muted, #6E564F);
  margin-bottom: 12px;
}

.guide-title {
  font-family: var(--display, 'Fraunces', serif);
  font-weight: 400;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink, #1C1114);
  margin: 0 0 18px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--muted, #6E564F);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--rule, rgba(28, 17, 20, 0.12));
}

.guide-meta span.dot {
  opacity: 0.4;
}

/* Direct Answer Block (First Screen) */
.direct-answer {
  background: var(--linen-deep, #EFE5DC);
  border-left: 3px solid var(--accent, #B9304A);
  padding: 24px 28px;
  margin: 28px 0 40px;
}

.direct-answer-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #B9304A);
  margin-bottom: 8px;
}

.direct-answer p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink, #1C1114);
  margin: 0;
}

/* Guide Content */
.guide-body {
  font-size: 17px;
  line-height: 1.7;
}

.guide-body h2 {
  font-family: var(--display, 'Fraunces', serif);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.25;
  color: var(--ink, #1C1114);
  margin: 44px 0 16px;
}

.guide-body h3 {
  font-family: var(--display, 'Fraunces', serif);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.35;
  color: var(--ink, #1C1114);
  margin: 32px 0 12px;
}

.guide-body p {
  margin: 0 0 20px;
}

.guide-body ul, .guide-body ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.guide-body li {
  margin-bottom: 8px;
}

/* Data Tables */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 32px 0;
  border: 1px solid var(--rule, rgba(28, 17, 20, 0.14));
}

table.guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  background: var(--linen, #F7F0EA);
}

table.guide-table th,
table.guide-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule, rgba(28, 17, 20, 0.12));
}

table.guide-table th {
  background: var(--linen-deep, #EFE5DC);
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-weight: 500;
  color: var(--ink, #1C1114);
}

table.guide-table tr:last-child td {
  border-bottom: none;
}

/* Booking Card (High Conversion CTA) */
.booking-card {
  background: #241318;
  color: #F4EAE3;
  padding: 36px 32px;
  margin: 48px 0;
  border-radius: 0;
}

.booking-card h3 {
  font-family: var(--display, 'Fraunces', serif);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  color: #F4EAE3;
  margin: 0 0 10px;
}

.booking-card p {
  font-size: 16px;
  line-height: 1.55;
  color: #A89189;
  margin: 0 0 24px;
  max-width: 54ch;
}

.booking-card-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  font-size: 13.5px;
  color: #EFE5DC;
}

.booking-card-perks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-book-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent, #B9304A);
  color: #F7F0EA;
  padding: 16px 34px;
  font-size: 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 400;
  transition: background 250ms ease, transform 200ms ease;
}

.btn-book-cta:hover {
  background: var(--accent-hover, #A82740);
  transform: translateY(-2px);
}

/* Sources & Fact Citations */
.fact-ref a {
  color: var(--accent, #B9304A);
  text-decoration: none;
  font-weight: 600;
  padding: 0 1px;
}

.fact-ref a:hover,
.fact-ref a:focus {
  text-decoration: underline;
}

.guide-sources {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--rule, rgba(28, 17, 20, 0.14));
  font-size: 13.5px;
  color: var(--muted, #6E564F);
}

.guide-sources h4 {
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink, #1C1114);
  margin: 0 0 12px;
}

.guide-sources ol {
  padding-left: 20px;
  margin: 0 0 16px;
}

.guide-sources li {
  margin-bottom: 8px;
  line-height: 1.5;
  transition: background 200ms ease;
}

.guide-sources li:target {
  background: rgba(185, 48, 74, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
}

.guide-sources a {
  color: var(--ink, #1C1114);
  text-decoration: underline;
}

.source-backlink {
  margin-left: 6px;
  text-decoration: none !important;
  color: var(--accent, #B9304A) !important;
  font-weight: bold;
}

.source-backlink:hover {
  text-decoration: underline !important;
}

.guide-disclaimer {
  font-size: 13px;
  color: var(--muted, #6E564F);
  margin-top: 16px;
  line-height: 1.5;
}

/* Sibling Links / Related Guides */
.guide-siblings {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule, rgba(28, 17, 20, 0.14));
}

.guide-siblings h3 {
  font-family: var(--display, 'Fraunces', serif);
  font-size: 22px;
  margin: 0 0 20px;
}

.sibling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.sibling-card {
  display: block;
  background: var(--linen-deep, #EFE5DC);
  padding: 20px;
  text-decoration: none;
  color: var(--ink, #1C1114);
  transition: transform 200ms ease, background 200ms ease;
}

.sibling-card:hover {
  transform: translateY(-2px);
  background: #E8DDD3;
}

.sibling-card h4 {
  font-family: var(--display, 'Fraunces', serif);
  font-size: 17px;
  font-weight: 400;
  margin: 0 0 8px;
}

.sibling-card p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--muted, #6E564F);
  margin: 0;
}

/* Hub Grid */
.hub-cluster {
  margin-bottom: 48px;
}

.hub-cluster-title {
  font-family: var(--display, 'Fraunces', serif);
  font-size: 26px;
  color: var(--ink, #1C1114);
  margin: 0 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule, rgba(28, 17, 20, 0.12));
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--linen-deep, #EFE5DC);
  padding: 24px;
  text-decoration: none;
  color: var(--ink, #1C1114);
  transition: transform 200ms ease, background 200ms ease;
}

.hub-card:hover {
  transform: translateY(-3px);
  background: #E8DDD3;
}

.hub-card-cluster {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent, #B9304A);
  margin-bottom: 8px;
}

.hub-card h3 {
  font-family: var(--display, 'Fraunces', serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 10px;
}

.hub-card p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted, #6E564F);
  margin: 0;
}

/* Footer */
.guide-footer {
  background: #241318;
  color: #A89189;
  padding: 48px 0;
  font-size: 14px;
  border-top: 1px solid rgba(244, 234, 227, 0.1);
}

.guide-footer .wrap {
  max-width: var(--wrap, 1220px);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.guide-footer a {
  color: #F4EAE3;
  text-decoration: none;
}

.guide-footer a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 680px) {
  .guide-nav {
    height: 56px;
  }
  .guide-nav .wrap {
    padding: 0 14px;
  }
  .guide-brand {
    font-size: 18px;
  }
  .guide-navlinks {
    gap: 8px;
  }
  .guide-navlinks a:not(.btn-book-nav) {
    display: none !important;
  }
  .btn-book-nav,
  .guide-navlinks a.btn-book-nav {
    padding: 7px 14px;
    font-size: 12.5px;
    white-space: nowrap;
  }
  .breadcrumbs {
    padding: 12px 0 6px;
    font-size: 12px;
  }
  .guide-header {
    margin-bottom: 18px;
  }
  .guide-title {
    font-size: 26px;
    line-height: 1.25;
    margin: 0 0 10px;
  }
  .guide-meta {
    font-size: 12.5px;
  }
  .direct-answer {
    padding: 15px 16px;
    margin-bottom: 24px;
  }
  .direct-answer p {
    font-size: 16px;
    line-height: 1.55;
  }
  .guide-container {
    padding: 12px 16px 48px;
  }
  .table-wrap {
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
  }
  table.guide-table {
    font-size: 13.5px;
  }
  table.guide-table th,
  table.guide-table td {
    padding: 10px 12px;
  }
  .booking-card {
    padding: 24px 16px;
  }
  .booking-card h3 {
    font-size: 22px;
  }
  .btn-book-cta {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 14px 20px;
    font-size: 15px;
  }
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

/* == tools_guides.py additions (start) == */
.guide-cover { margin: 28px 0 32px; }
.guide-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.table-wrap:focus-visible { outline: 2px solid var(--accent, #B9304A); outline-offset: 2px; }
.guide-footer .wrap a { white-space: nowrap; }
@media (max-width: 600px) {
  .table-wrap { overflow-x: visible; }
  table.guide-table, table.guide-table tbody, table.guide-table tr { display: block; width: 100%; }
  table.guide-table thead { display: none; }
  table.guide-table tr { margin-bottom: 16px; border-bottom: 1px solid var(--rule, rgba(28, 17, 20, 0.14)); padding: 6px 0; }
  table.guide-table tr:last-child { margin-bottom: 0; border-bottom: none; }
  table.guide-table td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 12px; border-bottom: none; }
  table.guide-table td::before { content: attr(data-label); flex: 0 0 42%; color: var(--muted, #6E564F); font-size: 13px; line-height: 1.4; padding-top: 1px; }
  table.guide-table td:first-child { font-weight: 500; }
}
/* == tools_guides.py additions (end) == */
