/* ==========================================================================
   Silver Oaks Booking Platform — booking-platform.css
   Pixel-perfect build from Figma file kur09Ila3D4uJ6ZTK9zU8Q
   Source frames: 559:4150 (booking platform), 661:10241 (calendar flow)
   Scope: everything prefixed .so- / body.so-booking-page. Never touch theme.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens (Figma color + text styles)
   -------------------------------------------------------------------------- */

:root {
  --so-white: #FFFFFF;
  --so-black: #000000;
  --so-text: #151515;
  --so-gray: #717171;
  --so-muted: #B4B4B4;
  --so-light-gray: #E1E6E9;
  --so-card-bg: #F7F7F7;
  --so-accent: #DDAA8B;
  --so-black-hover: #262626;
  --so-cream: #F9F6ED;

  --so-today-dow: #C5E9FB;
  --so-today-dn: #B8D9E9;
  --so-range-avail: rgba(221, 170, 139, 0.30);
  --so-range-dim: rgba(221, 170, 139, 0.15);
  --so-grid-line: #B4B4B4;

  --so-serif: 'Sumana', serif;
  --so-sans: 'Open Sans', sans-serif;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */

.so-booking-platform,
.so-booking-platform *,
.so-booking-platform *::before,
.so-booking-platform *::after {
  box-sizing: border-box;
}

.so-booking-platform {
  font-family: var(--so-sans);
  color: var(--so-text);
  background: var(--so-white);
}

/* Theme's .is-layout-constrained caps children at --content-size;
   widen the platform wrapper to --wide-size (same as navbar inner / hero bar) */
body.so-booking-page .is-layout-constrained > .so-booking-platform,
.so-booking-platform {
  max-width: var(--wp--style--global--wide-size, 1520px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Container: aligns flush with the theme navbar/footer inner width
   (--wide-size). No side padding at full width; padding only kicks in
   once the viewport squeezes below the wide-size. */
.so-container {
  max-width: var(--wp--style--global--wide-size, 1520px);
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 1400px) {
  .so-container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Figma text styles as utilities (referenced through components below)
   H1: Sumana 400 48/72 +3%  | H2: Sumana 400 32/48 +3% uppercase
   Body/L: OS 400 18/1.55 +3% | Body/S: OS 400 14/1.4 +3%
   Label/M-Regular-Wide: OS 400 14/20 +25% up | Label/S-Sb: OS 600 12/16 +25% up
   Label/M-Sb: OS 600 14/20 +15% up | Label/L-Sb: OS 600 16/24 +15% up */

/* --------------------------------------------------------------------------
   3. WP theme integration (critical — do not regress)
   Header overlays hero. NEVER set background on the header element:
   its inner .wp-block-group carries the dark gradient for white nav text.
   -------------------------------------------------------------------------- */

body.so-booking-page header.wp-block-template-part {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 200 !important;
}

body.so-booking-page .wp-block-post-content,
body.so-booking-page article.wp-block-post,
body.so-booking-page .entry-content {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.so-booking-page .wp-site-blocks {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
   4. Hero (Figma hero-section-v4)
   -------------------------------------------------------------------------- */

.so-hero {
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay stack: flat 0.3 + top gradient + bottom gradient */
.so-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 37%, rgba(0, 0, 0, 0.7) 100%),
    rgba(0, 0, 0, 0.3);
}

.so-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin-top: -72px; /* optically center above the booking bar */
  width: 100%;
  max-width: 1080px;
  text-align: center;
  padding: 0 48px;
  z-index: 5;
}

/* Eyebrow: Label/M-Regular-Wide, white */
.so-hero-eyebrow {
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--so-white);
  margin: 0 0 16px;
}

/* H1: Sumana 400 48/72 +3% uppercase */
.so-hero-heading {
  font-family: var(--so-serif);
  font-size: 48px;
  font-weight: 400;
  line-height: 72px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--so-white);
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. Booking gadget (Figma booking-gadget 559:4194)
   1520 wide, padding 24, white 55% + blur 21, bar sits 64px above hero base
   -------------------------------------------------------------------------- */

/* Width matches the cottage listings container content exactly:
   both now run the full --wide-size, flush with the theme navbar */
.so-hero-bar-wrap {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--wp--style--global--wide-size, 1520px), calc(100% - 48px));
  z-index: 10;
}

.so-hero-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 80px);
  padding: 24px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(21px);
  -webkit-backdrop-filter: blur(21px);
  box-shadow: inset -5px -5px 250px rgba(255, 255, 255, 0.02);
}

/* Field: fixed 304 column; label row + underline */
.so-bar-field {
  flex: 0 1 304px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 8px 0 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.so-bar-field--active .so-bar-label {
  color: var(--so-black);
}

/* Label/S-Sb: OS 600 12/16 +25% uppercase */
.so-bar-label {
  display: block;
  font-family: var(--so-sans);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--so-black);
  padding: 12px 8px 0;
  margin: 0;
}

/* Value row: sits in the 24px zone above the 1px underline */
.so-bar-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 24px;
  padding: 4px 8px 6px;
  border-bottom: 1px solid var(--so-black);
}

.so-bar-value {
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--so-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.so-bar-value.placeholder {
  color: rgba(21, 21, 21, 0.45);
}

.so-bar-arrow {
  flex-shrink: 0;
  color: var(--so-black);
  display: flex;
  align-items: center;
}

/* Guest stepper */
.so-bar-guest-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.so-bar-guest-btn {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(21, 21, 21, 0.35);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--so-text);
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.so-bar-guest-btn:hover { border-color: var(--so-black); }
.so-bar-guest-btn:disabled { opacity: 0.3; cursor: default; }

#so-bar-guests-val {
  font-size: 14px;
  color: var(--so-text);
  min-width: 18px;
  text-align: center;
}

/* CTA: main-button Primary — 24x48 padding, black, no radius */
.so-bar-cta {
  flex: 0 0 auto;
  align-self: stretch;
  padding: 24px 48px;
  background: var(--so-black);
  color: var(--so-white);
  border: none;
  border-radius: 0;
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.so-bar-cta:hover { background: var(--so-black-hover); }
.so-bar-cta:disabled { opacity: 0.6; cursor: wait; }

/* --------------------------------------------------------------------------
   6. Calendar section (Figma SEARCH ALL COTTAGES, 64px section padding)
   -------------------------------------------------------------------------- */

.so-search-section {
  padding: 64px 0;
  background: var(--so-white);
}

/* Working width inside the 1520 container is 1440 */
.so-cal-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header row: text left (860), month nav right, baseline flex-end */
.so-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.so-cal-header-text {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* H2: Sumana 400 32/48 +3% uppercase */
.so-search-heading {
  font-family: var(--so-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--so-black);
  margin: 0;
}

/* Body/L: OS 400 18/1.55 +3% */
.so-search-intro {
  font-family: var(--so-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--so-black);
  margin: 0;
}

.so-search-phone {
  color: inherit;
  text-decoration: none;
}

/* Month nav: chevron 40x40 hit areas, gap 16, Label/L-Sb month */
.so-cal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.so-tl-arrow {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--so-black);
  padding: 0;
  transition: opacity 0.15s;
}

.so-tl-arrow:hover { opacity: 0.55; }
.so-tl-arrow:disabled { opacity: 0.2; cursor: default; }

.so-tl-month-label {
  font-family: var(--so-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-black);
  min-width: 110px;
  text-align: center;
}

/* Hint row: icon 20x20 + Body/L, 16px above the table */
.so-search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--so-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--so-black);
  margin: 0 0 -8px; /* parent gap 24 -> visual 16 to table */
}

.so-hint-icon { flex-shrink: 0; }

/* Inline editable dates inside the "X selected: N cottages available" hint.
   Each date is a clickable pill that reopens the date picker. */
.so-hint-editable { display: inline; }

.so-hint-date {
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  line-height: 1.2;
  color: var(--so-black);
  background: rgba(221, 170, 139, 0.18);
  border: 1px solid rgba(21, 21, 21, 0.22);
  border-radius: 6px;
  padding: 1px 8px;
  margin: 0 1px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.so-hint-date:hover,
.so-hint-date:focus-visible,
.so-hint-date--active {
  background: rgba(221, 170, 139, 0.42);
  border-color: var(--so-black);
  outline: none;
}

/* --------------------------------------------------------------------------
   7. Timeline table (Figma booking-calendar 660:7465 — 1440x320)
   -------------------------------------------------------------------------- */

.so-timeline-outer {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.so-timeline-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* Fluid grid: fills the container on desktop (no scroll needed);
   below min cell width it overflows into touch-friendly scroll */
.so-tl-grid {
  border: 1px solid var(--so-grid-line);
  width: 100%;
  min-width: calc(240px + var(--so-tl-days, 30) * 26px);
}

/* Header band: month cell 240x80 + two 40px rows */
.so-tl-head {
  display: flex;
}

.so-tl-month-cell {
  flex: 0 0 240px;
  height: 80px;
  background: var(--so-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-family: var(--so-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--so-black);
  border-right: 0.5px solid var(--so-grid-line);
  border-bottom: 0.5px solid var(--so-grid-line);
}

.so-tl-head-rows {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
}

.so-tl-row {
  display: flex;
}

/* Header cells: 40px tall, fluid width (Figma 40x40 at full 1440) */
.so-tl-hcell {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-text);
  border-right: 0.5px solid var(--so-grid-line);
  border-bottom: 0.5px solid var(--so-grid-line);
  user-select: none;
}

/* Header cells double as date pickers */
.so-tl-hcell.so-tl-clickable { cursor: pointer; }
.so-tl-hcell.so-tl-clickable:hover { box-shadow: inset 0 0 0 999px rgba(221, 170, 139, 0.18); }
.so-tl-hcell.so-tl-past-h { color: var(--so-muted); }
.so-tl-dow-row .so-tl-hcell.so-tl-past-h.so-tl-weekend { color: rgba(255, 255, 255, 0.55); }

/* Row 1 — day-of-week letters */
.so-tl-dow-row .so-tl-hcell { background: var(--so-light-gray); }
.so-tl-dow-row .so-tl-hcell.so-tl-weekend {
  background: var(--so-black-hover);
  color: var(--so-white);
}
.so-tl-dow-row .so-tl-hcell.so-tl-today-h { background: var(--so-today-dow); color: var(--so-text); }

/* Row 2 — day numbers */
.so-tl-dn-row .so-tl-hcell { background: var(--so-card-bg); }
.so-tl-dn-row .so-tl-hcell.so-tl-weekend { background: var(--so-light-gray); }
.so-tl-dn-row .so-tl-hcell.so-tl-today-n { background: var(--so-today-dn); }
.so-tl-dn-row .so-tl-hcell.so-tl-sel { background: var(--so-accent); }

/* Cottage rows */
.so-tl-crow { align-items: stretch; }

.so-tl-label {
  flex: 0 0 240px;
  width: 240px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--so-card-bg);
  border-right: 0.5px solid var(--so-grid-line);
  border-bottom: 0.5px solid var(--so-grid-line);
}

.so-tl-name {
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dimmed / unavailable rows: gray label, no checkbox (JS omits it) */
.so-tl-row--unavail .so-tl-name { color: var(--so-gray); }

/* Checkbox: 16x16, 2px radius, 0.5px black stroke; checked #262626 */
.so-tl-cb {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 0.5px solid var(--so-black);
  border-radius: 2px;
  background: var(--so-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.so-tl-cb:checked {
  background: var(--so-black-hover);
  border-color: var(--so-black-hover);
}

.so-tl-cb:checked::after {
  content: '';
  width: 8px;
  height: 5px;
  border-left: 1.6px solid var(--so-white);
  border-bottom: 1.6px solid var(--so-white);
  transform: rotate(-45deg) translate(0.5px, -1px);
}

/* Track + body cells */
.so-tl-track {
  position: relative;
  display: flex;
  flex: 1 0 auto;
}

.so-tl-cell {
  flex: 1 1 0;
  min-width: 0;
  height: 40px;
  cursor: pointer;
  background: var(--so-white);
  border-right: 0.5px solid var(--so-grid-line);
  border-bottom: 0.5px solid var(--so-grid-line);
  transition: background 0.1s;
}

.so-tl-cell.so-tl-weekend { background: var(--so-light-gray); }
.so-tl-cell.so-tl-past { cursor: default; }
.so-tl-cell:hover:not(.so-tl-past):not(.so-tl-in-range) { background: var(--so-range-dim); }

/* Selected range columns: peach, lighter on dimmed rows */
.so-tl-cell.so-tl-in-range { background: var(--so-range-avail); }
.so-tl-row--unavail .so-tl-cell.so-tl-in-range { background: var(--so-range-dim); }

/* Booked bar: 20px tall, 4px radius, #151515 @90%, 10px inset */
.so-tl-bar {
  position: absolute;
  top: 10px;
  height: 20px;
  background: rgba(21, 21, 21, 0.9);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1;
}

/* Figma marks today in the header only — keep the body line off */
.so-tl-today-line { display: none; }

/* Skeleton shimmer while a month's booking data loads */
.so-tl-skel {
  position: absolute;
  top: 10px;
  left: 8px;
  right: 8px;
  height: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,0,0,0.05) 25%, rgba(0,0,0,0.02) 37%, rgba(0,0,0,0.05) 63%);
  background-size: 400% 100%;
  animation: so-shimmer 1.2s ease infinite;
  pointer-events: none;
}

@keyframes so-shimmer {
  0%   { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* Loading text row retired: the skeleton grid covers loading state */
.so-timeline-loading { display: none; }

.so-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-top-color: var(--so-text);
  border-radius: 50%;
  animation: so-spin 0.7s linear infinite;
}

.so-spinner[hidden] { display: none !important; }

@keyframes so-spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------------------
   8. Selection bar (Figma cta-wrapper 661:10238 — in flow, state 3)
   -------------------------------------------------------------------------- */

#so-selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 32px;
  background: var(--so-card-bg);
  border: 0.5px solid var(--so-gray);
}

#so-selection-bar[hidden] { display: none; }

/* Label/L-Sb */
#so-selection-summary {
  font-family: var(--so-sans);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-black);
}

#so-add-to-cart-btn {
  padding: 24px 48px;
  background: var(--so-black);
  color: var(--so-white);
  border: none;
  border-radius: 0;
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

#so-add-to-cart-btn:hover { background: var(--so-black-hover); }
#so-add-to-cart-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   9. Cottage cards (Figma cottage-cards-section 559:4212)
   -------------------------------------------------------------------------- */

.so-cards-section {
  padding: 64px 0;
  background: var(--so-white);
}

.so-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 24px;
}

/* Card: no border, no padding — image + 16px gap + content */
.so-card {
  display: flex;
  flex-direction: column;
  background: var(--so-white);
}

/* Square image */
.so-card-images {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--so-card-bg);
  margin-bottom: 16px;
}

.so-card-images img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.so-card-images img.so-card-img--active { opacity: 1; }

.so-card-img-placeholder {
  position: absolute;
  inset: 0;
  background: var(--so-light-gray);
}

/* Eyebrow + slider arrows row */
.so-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  min-height: 20px;
}

/* Label/M-Regular-Wide */
.so-card-label {
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--so-text);
}

.so-card-label-arrow { margin-right: 4px; }

.so-card-meta-arrows {
  display: flex;
  align-items: center;
  gap: 32px;
}

.so-meta-arrow {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--so-black);
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.so-meta-arrow:hover { opacity: 0.55; }

/* Body: title 4px under meta row, then 24px rhythm */
.so-card-body {
  display: flex;
  flex-direction: column;
}

/* H2 style */
.so-card-name {
  font-family: var(--so-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--so-text);
  margin: 0 0 24px;
}

/* Body/L */
.so-card-desc {
  font-family: var(--so-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: var(--so-text);
  margin: 0 0 24px;
}

/* Pills: 8x16 padding, 1px black border, 104px radius, Body/S */
.so-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}

.so-card-spec {
  padding: 8px 16px;
  border: 1px solid var(--so-black);
  border-radius: 104px;
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: var(--so-black);
  white-space: nowrap;
}

/* Price preview (dates picked, JS fills) */
.so-card-price-preview {
  background: var(--so-cream);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-family: var(--so-sans);
  font-size: 14px;
  color: var(--so-text);
  line-height: 1.5;
}

.so-card-price-preview[hidden] { display: none; }

/* Footer: buttons left, price right, baseline flex-end */
.so-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.so-card-actions {
  display: flex;
  align-items: flex-end;
  gap: 24px;
}

/* main-button Primary */
.so-btn-book-now {
  padding: 24px 48px;
  background: var(--so-black);
  color: var(--so-white);
  border: none;
  border-radius: 0;
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.so-btn-book-now:hover { background: var(--so-black-hover); }

.so-btn-book-now:disabled {
  background: var(--so-light-gray);
  color: var(--so-muted);
  cursor: not-allowed;
}

/* main-button Link: label + 2px underline, 12px gap */
.so-btn-view-details {
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-black);
  text-decoration: none;
  border-bottom: 2px solid var(--so-black);
  padding: 12px 0;
  transition: opacity 0.15s;
}

.so-btn-view-details:hover { opacity: 0.6; }

/* Price: H2 style */
.so-card-rate {
  font-family: var(--so-serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--so-black);
  white-space: nowrap;
}

/* Availability filter result heading + reset */
.so-cards-result-heading {
  font-family: var(--so-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-text);
  margin: 0 0 16px;
}

.so-cards-reset-btn {
  background: none;
  border: 1px solid var(--so-black);
  color: var(--so-black);
  font-family: var(--so-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 24px;
  cursor: pointer;
  margin-bottom: 24px;
  transition: background 0.15s, color 0.15s;
}

.so-cards-reset-btn:hover {
  background: var(--so-black);
  color: var(--so-white);
}

.so-no-cottages {
  font-family: var(--so-sans);
  font-size: 16px;
  color: var(--so-gray);
  padding: 48px 0;
}

/* --------------------------------------------------------------------------
   10. Date picker popup (hero bar)
   -------------------------------------------------------------------------- */

#so-datepicker {
  position: absolute;
  z-index: 9999;
  width: 340px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(21px);
  -webkit-backdrop-filter: blur(21px);
  padding: 24px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22), 0 2px 8px rgba(0, 0, 0, 0.1);
}

#so-datepicker[hidden] { display: none; }

.so-dp-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.so-dp-month-lbl {
  font-family: var(--so-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--so-text);
}

.so-dp-nav-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 14px;
  color: var(--so-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.15s;
}

.so-dp-nav-btn:hover { opacity: 0.55; }

.so-dp-mode {
  font-family: var(--so-sans);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--so-gray);
  margin-bottom: 16px;
}

.so-dp-mode strong { color: var(--so-text); }

.so-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.so-dp-dow {
  font-family: var(--so-sans);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--so-muted);
  text-align: center;
  padding: 4px 0 8px;
}

.so-dp-empty { pointer-events: none; }

.so-dp-day {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--so-sans);
  font-size: 13px;
  color: var(--so-text);
  padding: 7px 0;
  text-align: center;
  transition: background 0.1s;
  line-height: 1;
}

.so-dp-day:hover:not([disabled]):not(.so-dp-ci):not(.so-dp-co) {
  background: var(--so-range-dim);
}

.so-dp-day[disabled],
.so-dp-day.so-dp-past {
  color: var(--so-muted);
  cursor: default;
}

.so-dp-day.so-dp-today {
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(21, 21, 21, 0.3);
}

.so-dp-day.so-dp-ci,
.so-dp-day.so-dp-co {
  background: var(--so-text);
  color: var(--so-white);
  font-weight: 600;
}

.so-dp-day.so-dp-range { background: var(--so-range-avail); }

/* --------------------------------------------------------------------------
   Min-stay rule tooltip (shown when a picked range is too short)
   -------------------------------------------------------------------------- */

#so-minstay-tip {
  position: absolute;
  z-index: 9500;
  width: 300px;
  transform: translateY(-100%) scale(0.96);
  background: var(--so-black-hover);
  color: var(--so-white);
  font-family: var(--so-sans);
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  padding: 14px 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

#so-minstay-tip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid var(--so-black-hover);
}

#so-minstay-tip.so-tip-show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-100%) scale(1);
}

/* --------------------------------------------------------------------------
   11. Utilities
   -------------------------------------------------------------------------- */

.so-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   12. Responsive — Tablet (max-width: 1200px)
   -------------------------------------------------------------------------- */

@media (max-width: 1200px) {
  .so-container {
    padding-left: 32px;
    padding-right: 32px;
  }

  .so-hero-bar {
    gap: 24px;
  }

  .so-bar-cta,
  #so-add-to-cart-btn,
  .so-btn-book-now {
    padding: 20px 32px;
  }

  .so-card-name { font-size: 28px; line-height: 40px; }
  .so-card-rate { font-size: 28px; line-height: 40px; }
  .so-card-desc { font-size: 16px; }
}

/* --------------------------------------------------------------------------
   13. Responsive — Mobile (max-width: 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .so-container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Text blocks keep breathing room; the table itself runs edge to edge */
  .so-cal-header,
  .so-search-hint,
  .so-cards-result-heading,
  .so-cards-reset-btn,
  .so-no-cottages {
    padding-left: 16px;
    padding-right: 16px;
  }

  .so-cal-nav {
    justify-content: center;
    width: 100%;
  }

  /* Hero */
  .so-hero {
    height: 100svh;
    min-height: 560px;
  }

  .so-hero-content { padding: 0 24px; margin-top: -140px; }
  .so-hero-heading { font-size: 32px; line-height: 48px; }
  .so-hero-eyebrow { font-size: 12px; }

  /* Booking gadget stacks */
  .so-hero-bar-wrap {
    width: calc(100% - 32px);
    bottom: 24px;
  }

  .so-hero-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
  }

  .so-bar-field { flex: none; width: 100%; }
  .so-bar-cta { width: 100%; padding: 20px 24px; }

  /* Calendar */
  .so-search-section { padding: 40px 0; }
  .so-cal-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .so-cal-header-text { gap: 12px; }
  .so-search-heading { font-size: 24px; line-height: 36px; }
  .so-search-intro { font-size: 15px; }
  .so-search-hint { font-size: 15px; }

  /* Table scrolls horizontally at natural 40px cells; shrink label col */
  .so-tl-label { flex: 0 0 140px; width: 140px; padding: 10px 12px; }
  .so-tl-month-cell {
    flex: 0 0 140px;
    font-size: 20px;
    line-height: 28px;
  }
  .so-tl-name { font-size: 11px; letter-spacing: 0.1em; }

  /* Selection bar */
  #so-selection-bar { padding: 8px 8px 8px 16px; gap: 12px; }
  #so-selection-summary { font-size: 13px; letter-spacing: 0.1em; }
  #so-add-to-cart-btn { padding: 16px 24px; font-size: 12px; }

  /* Cards: image full-bleed, text keeps side padding */
  .so-cards-section { padding: 40px 0; }
  .so-cards-grid { grid-template-columns: 1fr; gap: 40px; }
  .so-card-meta-row,
  .so-card-body { padding-left: 16px; padding-right: 16px; }
  .so-card-name { font-size: 26px; line-height: 38px; margin-bottom: 16px; }
  .so-card-desc { font-size: 15px; margin-bottom: 16px; }
  .so-card-specs { margin-bottom: 24px; }
  .so-card-footer { flex-direction: column; align-items: flex-start; gap: 16px; }
  .so-card-rate { font-size: 26px; line-height: 38px; }
  .so-btn-book-now { padding: 18px 32px; }
}

/* --------------------------------------------------------------------------
   14. Responsive — Small mobile (max-width: 480px)
   -------------------------------------------------------------------------- */

@media (max-width: 480px) {
  .so-hero-heading { font-size: 26px; line-height: 38px; }
  .so-tl-label { flex: 0 0 110px; width: 110px; }
  .so-tl-month-cell { flex: 0 0 110px; font-size: 16px; }
  .so-tl-name { font-size: 10px; }
  .so-card-actions { gap: 16px; }
  .so-btn-book-now { padding: 16px 24px; font-size: 12px; }
  #so-datepicker { width: calc(100vw - 32px); }
}
