/* ===== Design Tokens & Bootstrap Variable Mapping (Dwarka Peacock Teal Theme) ===== */
:root {
  --bg-page: #F4F7F8;
  --bg-surface: #FFFFFF;
  --bg-subtle: #E8F0F2;
  --bg-dark: #0F2A33;
  --text-primary: #132229;
  --text-muted: #4F636E;
  --text-on-dark: #F4F7F8;
  --border-line: #D6E2E6;
  --accent-color: #0D6575;
  --accent-hover: #094D59;
  --accent-contrast: #FFFFFF;

  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --bs-body-bg: var(--bg-page);
  --bs-body-color: var(--text-primary);
  --bs-body-font-family: var(--font-body);
  --bs-border-color: var(--border-line);
  --bs-primary: var(--accent-color);
  --bs-link-color: var(--accent-color);
  --bs-link-hover-color: var(--accent-hover);
}

/* ===== Base Typography & Accessibility ===== */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

h1,
h2,
h3,
.brand-title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
}

a {
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background-color: var(--accent-color);
  color: var(--accent-contrast);
  padding: 0.625rem 1rem;
  z-index: 1080;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

/* ===== Top Info Strip & Header ===== */
.top-info-bar {
  background-color: var(--bg-dark);
  font-size: 0.8125rem;
  color: var(--text-on-dark);
}

.top-info-link {
  color: var(--accent-contrast);
  font-weight: 600;
  text-decoration: none;
}

.top-info-link:hover {
  color: var(--bg-subtle);
  text-decoration: none;
}

.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-line);
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  padding: 0.25rem 0;
}

.brand-title {
  font-size: 1.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--bg-dark);
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-top: 0.125rem;
}

.navbar-toggler {
  min-width: 44px;
  min-height: 44px;
  border-color: var(--border-line);
  color: var(--text-primary);
}

.site-nav-link {
  position: relative;
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.625rem;
  white-space: nowrap;
}

.site-nav-link::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 0.45rem;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.site-nav-link:hover,
.site-nav-link.active {
  color: var(--accent-color);
  font-weight: 600;
}

.site-nav-link:hover::after,
.site-nav-link.active::after {
  transform: scaleX(1);
}

/* ===== Shared Buttons ===== */
.btn-accent {
  background-color: var(--accent-color);
  border: 1px solid var(--accent-color);
  color: var(--accent-contrast);
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
  transform: translateY(-1px);
}

.btn-accent:active,
.btn-outline-stone:active {
  transform: translateY(0);
}

.btn-outline-stone {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn-outline-stone:hover,
.btn-outline-stone:focus-visible {
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: var(--bg-subtle);
  transform: translateY(-1px);
}

/* ===== Section Rhythm ===== */
.page-section {
  padding: 2rem 0;
}

section[id] {
  scroll-margin-top: 5.5rem;
}

/* ===== Hero Section ===== */
.hero-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-line);
  padding: 2rem 0;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-color);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: clamp(1.875rem, 6.8vw, 2.25rem);
  line-height: 1.12;
  margin-bottom: 0.875rem;
}

.hero-lead {
  color: var(--text-muted);
  max-width: 58ch;
  margin-bottom: 1.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.5rem;
}

.hero-facts {
  border-top: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  padding: 0.75rem 0;
}

.hero-fact-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.hero-fact-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.hero-media-frame {
  border: 1px solid var(--border-line);
  border-top: 3px solid var(--accent-color);
  background-color: var(--bg-page);
}

.hero-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.hero-media-caption {
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-line);
  background-color: var(--bg-surface);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

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

.hero-map-link:hover {
  color: var(--accent-hover);
}

/* ===== Rooms Section ===== */
.rooms-section {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-line);
}

.room-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.room-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-line);
}

.room-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.room-title {
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
}

.room-specs {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0.625rem;
  font-size: 0.8125rem;
  color: var(--accent-color);
  font-weight: 600;
}

.room-specs li + li {
  color: var(--text-muted);
  font-weight: 500;
}

.room-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1 1 auto;
}

.room-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}

.room-actions .btn-accent,
.room-actions .btn-outline-stone {
  flex: 1 1 0;
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
}

/* ===== About & Facilities Section ===== */
.about-section {
  background-color: var(--bg-page);
  border-bottom: 1px solid var(--border-line);
}

.section-heading {
  font-size: clamp(1.5rem, 4.5vw, 2.125rem);
  margin-bottom: 0.75rem;
}

.section-copy {
  color: var(--text-muted);
  max-width: 62ch;
}

.facility-grid {
  border-top: 1px solid var(--border-line);
  border-left: 1px solid var(--border-line);
  background-color: var(--bg-surface);
}

.facility-cell {
  border-right: 1px solid var(--border-line);
  border-bottom: 1px solid var(--border-line);
  padding: 0.875rem;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.facility-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-line);
  border-radius: 0.25rem;
  color: var(--accent-color);
  font-size: 0.9375rem;
}

.facility-title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.facility-note {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.stay-rules-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-left: 3px solid var(--accent-color);
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
}

.stay-rules-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.stay-rules-list li {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-muted);
}

.stay-rules-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.stay-rules-list strong {
  color: var(--text-primary);
}

.section-photo-frame {
  border: 1px solid var(--border-line);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.section-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* ===== Dwarka Darshan Guide & AEO FAQ Section ===== */
.guide-section {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-line);
}

.distance-table {
  background-color: var(--bg-page);
  border: 1px solid var(--border-line);
  border-top: 3px solid var(--accent-color);
  height: 100%;
}

.distance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.9375rem;
}

.distance-row:last-child {
  border-bottom: 0;
}

.distance-place {
  font-weight: 600;
  color: var(--text-primary);
}

.distance-km {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-color);
  white-space: nowrap;
}

.guide-photo-card {
  border: 1px solid var(--border-line);
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.guide-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.faq-block {
  border-top: 1px solid var(--border-line);
  padding-top: 2rem;
  margin-top: 2rem;
}

.faq-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-line);
  padding: 1rem 1.125rem;
  height: 100%;
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
}

.faq-answer {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===== Gallery Section ===== */
.gallery-section {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-line);
}

.gallery-card {
  border: 1px solid var(--border-line);
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}

.gallery-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-line);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
}

/* ===== Contact & Map Section ===== */
.contact-section {
  background-color: var(--bg-subtle);
  border-bottom: 1px solid var(--border-line);
}

.contact-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-top: 3px solid var(--accent-color);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.contact-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.25rem;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border-line);
  font-size: 0.9375rem;
}

.contact-list li:last-child {
  border-bottom: 0;
}

.contact-icon {
  color: var(--accent-color);
  width: 20px;
  flex: 0 0 20px;
  text-align: center;
  margin-top: 0.2rem;
}

.contact-detail-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-detail-value {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
}

.contact-detail-value:hover {
  color: var(--accent-color);
}

.map-frame-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.map-embed {
  width: 100%;
  min-height: 280px;
  border: 0;
  display: block;
  flex: 1 1 auto;
}

/* ===== Site Footer ===== */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-on-dark);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9375rem;
}

.footer-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-contrast);
  margin-bottom: 0.5rem;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bg-subtle);
  margin-bottom: 0.75rem;
}

.footer-muted {
  color: var(--border-line);
  font-size: 0.875rem;
}

.footer-links {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.footer-links li + li {
  margin-top: 0.375rem;
}

.footer-link {
  color: var(--text-on-dark);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--bg-subtle);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8125rem;
  color: var(--border-line);
}

/* ===== Subpage Hero, Breadcrumb & Comparison Table ===== */
.page-hero {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-line);
  padding: 1.75rem 0;
}

.breadcrumb-nav {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.625rem;
}

.breadcrumb-nav a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stay-table-wrap {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-top: 3px solid var(--accent-color);
}

.stay-table {
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.stay-table thead th {
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-line);
  padding: 0.75rem 1rem;
}

.stay-table tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-line);
  color: var(--text-muted);
  vertical-align: middle;
}

.stay-table tbody td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.stay-table tbody tr:last-child td {
  border-bottom: 0;
}

.policy-article {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-line);
  border-top: 3px solid var(--accent-color);
  padding: 1.5rem;
  max-width: 74ch;
}

.policy-article h2 {
  font-size: 1.375rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-article h2:first-child {
  margin-top: 0;
}

.policy-article p,
.policy-article li {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ===== Reference-Matched [data-anim] Choreography & Hover Motion ===== */
.hero-media-frame,
.section-photo-frame,
.guide-photo-card,
.gallery-card,
.room-card {
  overflow: hidden;
}

.hero-media-caption,
.room-card-body,
.gallery-caption {
  position: relative;
  z-index: 1;
  background-color: var(--bg-surface);
}

.guide-photo-card .hero-media-caption {
  background-color: var(--bg-surface);
}

.hero-photo,
.section-photo {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-photo,
.gallery-photo,
.guide-photo {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-media-frame:hover .hero-photo,
.section-photo-frame:hover .section-photo {
  transform: scale(1.03);
}

.room-card:hover .room-photo,
.gallery-card:hover .gallery-photo,
.guide-photo-card:hover .guide-photo {
  transform: scale(1.04);
}

.room-card,
.gallery-card,
.faq-card,
.guide-photo-card,
.stay-rules-box,
.contact-card,
.map-frame-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.room-card:hover,
.gallery-card:hover,
.faq-card:hover,
.guide-photo-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 42, 51, 0.08);
}

.facility-cell {
  transition: background-color 0.2s ease;
}

.facility-icon {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.facility-cell:hover {
  background-color: var(--bg-page);
}

.facility-cell:hover .facility-icon {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--accent-contrast);
}

html.js-anim [data-anim] {
  opacity: 0;
  will-change: opacity, transform;
}

[data-anim].anim-active {
  opacity: 1;
  animation-duration: 0.6s;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: both;
}

[data-anim="fadeInUp"].anim-active {
  animation-name: animFadeInUp;
}

[data-anim="fadeInDown"].anim-active {
  animation-name: animFadeInDown;
}

[data-anim="fadeInLeft"].anim-active {
  animation-name: animFadeInLeft;
}

[data-anim="fadeInRight"].anim-active {
  animation-name: animFadeInRight;
}

[data-anim="zoomIn"].anim-active {
  animation-name: animZoomIn;
}

[data-anim="slideUp"].anim-active {
  animation-name: animSlideUp;
}

@keyframes animFadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes animFadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes animFadeInLeft {
  from {
    opacity: 0;
    transform: translate3d(-26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes animFadeInRight {
  from {
    opacity: 0;
    transform: translate3d(26px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes animZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes animSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.js-anim [data-anim],
  [data-anim].anim-active {
    opacity: 1;
    animation: none;
    transform: none;
  }

  .room-card:hover,
  .gallery-card:hover,
  .faq-card:hover,
  .guide-photo-card:hover,
  .btn-accent:hover,
  .btn-outline-stone:hover,
  .hero-media-frame:hover .hero-photo,
  .section-photo-frame:hover .section-photo,
  .room-card:hover .room-photo,
  .gallery-card:hover .gallery-photo,
  .guide-photo-card:hover .guide-photo {
    transform: none;
    transition: none;
  }
}

@media (min-width: 992px) {
  .section-photo-frame .section-photo,
  .guide-photo-card .guide-photo {
    flex: 1 1 auto;
    min-height: 0;
  }
}

/* ===== Tablet & Desktop Breakpoints ===== */
@media (min-width: 768px) {
  body {
    font-size: 1.0625rem;
    line-height: 1.6;
  }

  .brand-title {
    font-size: 1.5rem;
  }

  .page-section,
  .hero-section {
    padding: 3.25rem 0;
  }

  .room-card-body {
    padding: 1.25rem;
  }
}

@media (min-width: 992px) {
  .brand-title {
    white-space: nowrap;
  }

  .site-nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.875rem;
  }

  .page-section,
  .hero-section {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: clamp(2.65rem, 3.6vw, 3.25rem);
  }

  .hero-photo,
  .section-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (min-width: 1200px) {
  .site-nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
  }
}
