/* ==========================================================================
   LocalMaking Workshop Detail & Public Shell Stylesheet
   Design system tokens aligned with client-localmaking globals.css
   ========================================================================== */

:root {
  /* Core brand palette */
  --primary: #a94f32;          /* Terracotta */
  --primary-dark: #843b26;     /* Deep Terracotta */
  --secondary: #31584a;        /* Forest green */
  --secondary-dark: #244238;   /* Deep Forest */
  --canvas: #fcfaf6;           /* Warm white / Cotton */
  --surface: #f5efe6;          /* Warm paper surface */
  --surface-raised: #ffffff;   /* Pure card surface */
  --surface-muted: #eee6dc;    /* Muted wash */
  --ink: #292724;              /* Charcoal */
  --ink-secondary: #4a453e;    /* Reading body ink */
  --muted: #625d56;            /* Secondary muted */
  --faint: #827b72;            /* Subdued annotation */
  --line: #d9cdbe;             /* Warm border */
  --line-subtle: #eae2d6;      /* Faint divider */
  --track: #e9dfd2;            /* Disabled / Track */
  --disabled: #c9bcae;         /* Inactive */
  --accent: #d3a13b;           /* Ochre accent */
}

/* Base & resets */
* {
  box-sizing: border-box;
}

::selection {
  background: #f0dfcb;
  color: var(--ink);
}

/* Custom scrollbars from palette */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink-secondary);
  font: 400 15px/1.7 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--secondary);
}

button, summary {
  cursor: pointer;
  font-family: inherit;
}
button, input {
  font: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 3px;
}

/* Typography Hierarchy */
h1, h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 500;
  color: var(--ink);
}

h1 {
  font-size: clamp(30px, 3.8vw, 42px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin: 16px 0 22px;
}

h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}

h3 {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 8px;
}

p {
  margin: 0 0 14px;
}

.container {
  width: 100%;
  max-width: 1200px;
  min-width: 0;
  margin: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.brand {
  color: var(--primary);
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 72ch;
  line-height: 1.75;
}
.text-link {
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--secondary-dark);
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(252, 250, 246, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: 100%;
  max-width: 109rem;
  padding-left: 16px;
  padding-right: 16px;
  height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-full {
  display: block;
  width: 208px;
  height: auto;
}
.logo-icon {
  display: none;
  border-radius: 8px;
}
.logo-mark {
  display: grid;
  place-items: center;
  background: var(--primary);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.header-search {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  max-width: 256px;
  padding-left: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.15s ease;
}
.header-search:focus-within {
  border-color: var(--secondary);
}
.header-search input {
  width: 100%;
  min-width: 0;
  height: 44px;
  background: none;
  border: 0;
  outline: none;
  color: var(--ink);
}
.header-search button {
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--secondary);
  font-size: 24px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 4px;
  flex-shrink: 0;
}
.desktop-nav > a,
.desktop-nav > span,
.header-actions > details > summary {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
}
.desktop-nav > a:hover,
.desktop-nav > a[aria-current] {
  background: var(--surface);
  color: var(--secondary);
  text-decoration: none;
}
.desktop-nav > span,
.mobile-menu [aria-disabled] {
  color: var(--muted);
}
.mobile-menu [aria-disabled] {
  display: block;
  padding: 10px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.header-management {
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}
.header-management:hover {
  background: var(--surface);
  color: var(--secondary);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  background: var(--primary);
  color: white;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.button:hover {
  color: white;
  background: var(--primary-dark);
}
.button:active {
  transform: translateY(1px);
}
.header-actions > .button {
  white-space: nowrap;
}
details {
  position: relative;
}
summary {
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
summary::-webkit-details-marker {
  display: none;
}
.dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 10px;
  min-width: 220px;
  padding: 12px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 50;
}
.dropdown a,
.dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 0;
  background: none;
  border-radius: 8px;
  font-size: 14px;
}
.dropdown a:hover,
.dropdown button:hover {
  background: var(--surface);
}
.dropdown p {
  padding: 8px;
  overflow-wrap: anywhere;
}
.account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  overflow: hidden;
}
.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mobile-menu {
  display: none;
}

/* Workshop Detail Main Surface */
.workshop-page {
  padding-top: 28px;
  padding-bottom: 88px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.breadcrumb a:hover {
  color: var(--secondary);
}

/* Gallery Section */
.gallery {
  display: grid;
  height: 440px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--line-subtle);
}
.gallery-image {
  border: 0;
  padding: 0;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-image:hover img {
  transform: scale(1.03);
}
.gallery-main {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-more {
  position: absolute;
  right: 14px;
  bottom: 14px;
  background: rgba(30, 28, 25, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}
.gallery-image:hover .gallery-more {
  background: rgba(20, 18, 16, 0.95);
  transform: translateY(-2px);
}

/* Main Detail Grid Layout */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
}
.booking-sidebar {
  position: relative;
  height: 100%;
}

.tagline {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 72ch;
}

/* Facts Bar with Pills */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.fact-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.fact-item:hover {
  border-color: var(--secondary);
  background: #fdfaf6;
}
.fact-icon {
  color: var(--secondary);
  flex-shrink: 0;
}

/* Highlights Box */
.highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 24px 0 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  list-style: none;
}
.highlights li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-secondary);
}
.highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--secondary);
  font-weight: 700;
  font-size: 15px;
}

/* Detail Sections */
.detail-section {
  border-top: 1px solid var(--line);
  padding-top: 36px;
  margin-top: 36px;
  scroll-margin-top: 96px;
}

.check-list, .notes {
  padding-left: 20px;
  margin: 0;
}
.check-list li, .notes li {
  margin-bottom: 12px;
  line-height: 1.65;
  color: var(--ink-secondary);
}
.check-list li::marker {
  content: '✓  ';
  color: var(--secondary);
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* Steps - Continuous Journey Timeline */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  position: relative;
}
.steps li {
  display: flex;
  gap: 20px;
  position: relative;
  padding-bottom: 28px;
}
.steps li:last-child {
  padding-bottom: 0;
}
.steps li::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}
.steps li:last-child::before {
  display: none;
}
.step-number {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  z-index: 1;
}
.steps h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.steps p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
  max-width: 65ch;
}

/* Map Section */
.map {
  width: 100%;
  height: 320px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 16px 0 12px;
}

/* Instructor Section */
.instructor {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 16px;
}
.instructor-avatar {
  width: 124px;
  height: 124px;
  flex: none;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}
.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--track);
  font-size: 36px;
  color: var(--secondary);
}
.instructor-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  display: inline-block;
  margin-bottom: 4px;
}
.instructor-name:hover {
  color: var(--secondary);
}
blockquote {
  font: italic 18px/1.6 Fraunces, Georgia, serif;
  border-left: 1px solid var(--primary); /* Exactly 1px per craft floor */
  padding-left: 18px;
  margin: 16px 0;
  color: var(--ink);
}

/* Booking Card (Operate/Conversion Core) */
.booking-card {
  position: sticky;
  top: 96px;
  max-height: calc(100dvh - 112px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-raised);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(41, 39, 36, 0.06);
}
.price {
  font: 500 32px/1 Fraunces, Georgia, serif;
  color: var(--primary);
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
}
.price span {
  font-family: 'Be Vietnam Pro', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
hr {
  border: 0;
  border-top: 1px solid var(--line-subtle);
  margin: 20px 0;
}
.day-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.day-button {
  min-width: 96px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 8px;
  background: var(--canvas);
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.day-button span {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.day-button strong {
  font-size: 16px;
  font-weight: 600;
  margin-top: 2px;
}
.day-button:hover:not(:disabled) {
  border-color: var(--secondary);
  background: #ffffff;
}
.day-button[aria-pressed=true] {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
}
.day-button[aria-pressed=true] span {
  color: rgba(255, 255, 255, 0.8);
}
.slot-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot-button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 13px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.slot-button span:last-child {
  color: var(--primary);
  font-weight: 600;
}
.slot-button:hover:not(:disabled) {
  border-color: var(--secondary);
  background: #ffffff;
}
.slot-button[aria-pressed=true] {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #ffffff;
}
.slot-button[aria-pressed=true] span:last-child {
  color: #ffffff;
}
#booking-slots-section {
  margin-top: 18px;
}
#booking-status {
  margin-top: 10px;
  font-size: 13px;
}
.booking-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.counter {
  display: flex;
  align-items: center;
  gap: 12px;
}
.counter button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.counter button:hover:not(:disabled) {
  border-color: var(--secondary);
  background: #ffffff;
}
#participants-count {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
#participants-hint {
  margin-top: 10px;
  font-size: 12px;
}
.booking-submit {
  width: 100%;
  margin-top: 20px;
  min-height: 48px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  border: 0;
  box-shadow: 0 4px 16px rgba(169, 79, 50, 0.25);
  transition: background 0.2s ease, transform 0.1s ease;
}
.booking-submit:hover:not(:disabled) {
  background: var(--primary-dark);
}
.booking-submit:active:not(:disabled) {
  transform: translateY(1px);
}
.booking-assurances {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assurance-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.assurance-item svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* Desktop defaults for mobile drawer elements */
.mobile-booking-bar {
  display: none;
}
.booking-sheet-backdrop {
  display: none;
}
.sheet-handle-bar {
  display: none;
}

/* Lightbox Modal */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 16px;
  border: 0;
  background: rgba(15, 14, 12, 0.95);
  backdrop-filter: blur(8px);
  color: white;
}
.lightbox::backdrop {
  background: rgba(15, 14, 12, 0.95);
}
.lightbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 48px;
  max-width: 1200px;
  margin: auto;
}
.lightbox button {
  border: 0;
  background: transparent;
  color: white;
  font-size: 28px;
  padding: 8px 16px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.lightbox button:hover {
  opacity: 0.8;
}
.lightbox-body {
  height: calc(100% - 48px);
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox-body img {
  max-width: calc(100% - 100px);
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0;
  background: var(--surface);
}
.site-footer .container {
  max-width: 109rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}
.footer-logo {
  display: inline-flex;
  padding: 12px;
  background: white;
  border-radius: 12px;
}
.footer-logo .logo-full {
  width: 208px;
}
.site-footer h2 {
  font: 600 14px 'Be Vietnam Pro', sans-serif;
  margin-bottom: 14px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.site-footer nav a {
  display: block;
  margin: 8px 0;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s ease;
}
.site-footer nav a:hover {
  color: var(--secondary);
}
.site-footer p {
  margin-top: 12px;
  color: var(--muted);
}

/* Responsive Breakpoints */
@media (min-width: 640px) {
  .container, .header-inner {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 32px;
    padding-right: 32px;
  }
  .header-inner, .site-footer .container {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
}

@media (min-width: 1280px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
  .header-inner, .site-footer .container {
    padding-left: 2.75rem;
    padding-right: 2.75rem;
  }
}

/* Tablet & Moderate width adjustments */
@media (min-width: 1024px) and (max-width: 1279px) {
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .workshop-page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .mobile-booking-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    background: rgba(252, 250, 246, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(41, 39, 36, 0.08);
  }
  .mobile-bar-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .mobile-bar-price {
    margin: 0;
    font: 500 20px/1.2 Fraunces, Georgia, serif;
    color: var(--primary);
    white-space: nowrap;
  }
  .mobile-bar-price span {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: var(--muted);
  }
  .mobile-bar-hint {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .mobile-bar-cta {
    flex-shrink: 0;
    padding: 10px 20px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(169, 79, 50, 0.25);
    white-space: nowrap;
  }
  .booking-sidebar {
    position: fixed;
    inset: 0;
    z-index: 60;
    pointer-events: none;
    visibility: hidden;
    transition: visibility 0.3s;
  }
  .booking-sidebar.is-open {
    pointer-events: auto;
    visibility: visible;
  }
  .booking-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 18, 16, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .booking-sidebar.is-open .booking-sheet-backdrop {
    opacity: 1;
  }
  .booking-card {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 61;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 24px 24px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: var(--surface-raised);
    padding: 12px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overscroll-behavior: contain;
  }
  .booking-sidebar.is-open .booking-card {
    transform: translateY(0);
  }
  .sheet-handle-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
  }
  .sheet-handle {
    width: 44px;
    height: 5px;
    border-radius: 999px;
    background: var(--line);
    margin-bottom: 12px;
  }
  .sheet-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 4px;
  }
  .sheet-title {
    font-family: Fraunces, Georgia, serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--ink);
  }
  .sheet-close {
    border: 0;
    background: var(--surface);
    color: var(--ink);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease;
  }
  .sheet-close:hover {
    background: var(--line);
  }
  .header-actions {
    gap: 12px;
  }
  .header-search {
    max-width: none;
  }
  .header-actions > .button,
  .header-actions > [data-login],
  .header-actions > [data-account-menu],
  .header-actions > [data-host-menu] {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .header-inner > .logo .logo-full {
    width: 192px;
  }
}

@media (max-width: 639px) {
  .header-inner {
    height: 64px;
    gap: 8px;
  }
  .logo {
    font-size: 16px;
  }
  .header-inner > .logo .logo-full {
    display: none;
  }
  .header-inner > .logo .logo-icon {
    display: block;
  }
  .header-actions > .button {
    display: none;
  }
  .gallery {
    height: 290px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 6px;
    border-radius: 14px;
  }
  .gallery-image {
    width: 85%;
    flex: none;
    scroll-snap-align: start;
  }
  .gallery-more {
    display: none;
  }
  .two-columns, .highlights {
    grid-template-columns: 1fr;
  }
  .instructor {
    flex-direction: column;
    padding: 20px;
  }
  .instructor-avatar {
    width: 100px;
    height: 100px;
  }
  h2 {
    font-size: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .lightbox {
    padding: 8px;
  }
  .lightbox-body img {
    max-width: calc(100% - 80px);
  }
  .lightbox button {
    padding: 8px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
