/* ==========================================================================
   Silver Oaks — Cottage Detail Page (Figma v1.0, frame 560:7125)
   Scope: everything under .so-cp / .so-cottage-page. Theme untouched.
   ========================================================================== */

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

.so-cp {
  font-family: 'Open Sans', sans-serif;
  color: #151515;
  background: #FFFFFF;
}

/* Sections: Figma pad 64px 200px, container 1520 */
.so-cp-section { padding: 64px 0; }

/* Aligns flush with the theme navbar/footer inner width (--wide-size) */
.so-cp-container {
  max-width: var(--wp--style--global--wide-size, 1520px);
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

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

/* Widen the wrapper past the theme's content-size clamp */
body .is-layout-constrained > .so-cottage-page,
.so-cottage-page {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Theme header overlays the hero, exactly like the booking main page.
   NO background override: the inner group carries the dark gradient
   that keeps the white nav text readable. */
body.so-cottage-page-body header.wp-block-template-part {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 200 !important;
}

/* Shared type */
.so-cp-h2 {
  font-family: 'Sumana', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

.so-cp-h3 {
  font-family: 'Sumana', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

.so-cp-eyebrow {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

/* Buttons (main-button set) */
.so-cp-btn-primary {
  padding: 24px 48px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 0;
  font-family: 'Open Sans', sans-serif;
  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-cp-btn-primary:hover { background: #262626; }
.so-cp-btn-primary:disabled { opacity: 0.6; cursor: wait; }

.so-cp-btn-tertiary {
  padding: 24px 48px;
  background: transparent;
  color: #151515;
  border: 1px solid #000000;
  border-radius: 0;
  font-family: 'Open Sans', sans-serif;
  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, color 0.2s;
}

.so-cp-btn-tertiary:hover { background: #000000; color: #FFFFFF; }

.so-cp-btn-link {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #151515;
  text-decoration: none;
  border-bottom: 2px solid #000000;
  padding: 12px 0;
}

.so-cp-btn-link:hover { opacity: 0.6; }

/* Pills (card-pill: 8x16, 1px black border, 104 radius) */
.so-cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }

.so-cp-pill {
  padding: 8px 16px;
  border: 1px solid #000000;
  border-radius: 104px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #000000;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   1. Hero: full-bleed image + frosted title band
   -------------------------------------------------------------------------- */

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

.so-cp-hero-band {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 32px;
  background: linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.so-cp-title {
  font-family: 'Sumana', serif;
  font-size: 48px;
  font-weight: 400;
  line-height: 72px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
}

.so-cp-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #000000;
  max-width: 542px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   2. Info: gallery + content grid
   -------------------------------------------------------------------------- */

.so-cp-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 747fr) minmax(0, 709fr);
  gap: 64px;
  align-items: start;
}

/* Grid items must never inherit the thumb strip's min-content width */
.so-cp-info-grid > * { min-width: 0; }

/* Gallery */
.so-cp-gallery { display: flex; flex-direction: column; gap: 24px; }

.so-cp-gallery-main {
  position: relative;
  height: 662px;
  background: #F7F7F7;
  overflow: hidden;
}

.so-cp-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.so-cp-gallery-img.is-active { opacity: 1; }

/* Thumb strip: carousel that follows the active slide */
.so-cp-thumbs {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  max-width: 100%;
  min-width: 0;
}

.so-cp-thumbs::-webkit-scrollbar { display: none; }

.so-cp-thumb {
  position: relative;
  flex: 0 0 189px;
  height: 112px;
  padding: 0;
  border: none;
  background: #F7F7F7;
  cursor: pointer;
  overflow: hidden;
}

.so-cp-thumb.is-active { outline: 2px solid #151515; outline-offset: -2px; }

.so-cp-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.15s;
}

.so-cp-thumb:hover img,
.so-cp-thumb.is-active img { opacity: 0.75; }

.so-cp-thumb--more { flex: 0 0 112px; }

.so-cp-thumb-more-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  color: #FFFFFF;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
}

/* Slider control: arrows + progress hairline + counter */
.so-cp-slider {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 24px;
}

.so-cp-slider-arrow {
  background: none;
  border: none;
  padding: 0;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: opacity 0.15s;
}

.so-cp-slider-arrow:hover { opacity: 0.55; }

.so-cp-slider-bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: #000000;
}

.so-cp-slider-progress {
  position: absolute;
  top: -1.5px;
  height: 4px;
  background: #000000;
  transition: left 0.25s ease, width 0.25s ease;
}

.so-cp-slider-counter {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #000000;
  margin: -8px 0 0;
}

/* Content column */
.so-cp-content { display: flex; flex-direction: column; gap: 32px; }

.so-cp-rate {
  font-family: 'Sumana', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  color: #151515;
  margin: 0;
}

.so-cp-details { display: flex; flex-direction: column; gap: 16px; }

.so-cp-desc { display: flex; flex-direction: column; gap: 24px; }

.so-cp-desc p {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #151515;
  margin: 0;
}

/* Booking form (input-field: #F7F7F7, 0.5px border, 72px, 24px padding) */
.so-cp-form { display: flex; flex-direction: column; gap: 32px; }

.so-cp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.so-cp-field { position: relative; }

.so-cp-field input,
.so-cp-field select,
.so-cp-field textarea {
  width: 100%;
  height: 72px;
  padding: 24px;
  background: #F7F7F7;
  border: 0.5px solid #000000;
  border-radius: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #151515;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}

.so-cp-field input::placeholder,
.so-cp-field textarea::placeholder { color: #151515; opacity: 1; }

.so-cp-field select:invalid { color: #151515; }

.so-cp-field input:focus,
.so-cp-field select:focus,
.so-cp-field textarea:focus { border-color: #000000; border-width: 1.5px; }

.so-cp-field--date input { cursor: pointer; padding-right: 60px; }
.so-cp-field--select select { cursor: pointer; padding-right: 48px; }

.so-cp-field-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: #151515;
  pointer-events: none;
}

.so-cp-field--textarea textarea {
  height: 305px;
  resize: vertical;
}

.so-cp-form-buttons { display: flex; gap: 32px; }

.so-cp-form-msg {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #B0472F;
  margin: -12px 0 0;
  min-height: 20px;
}

.so-cp-form-msg.is-ok { color: #2E7D32; }

/* Date picker popup (prices + booked states, mirrors the rates calendar).
   Lives on <body>, outside the .so-cp scope, so it needs its own reset. */
#so-cp-dp,
#so-cp-dp * { box-sizing: border-box; }

#so-cp-dp {
  position: absolute;
  z-index: 9999;
  width: 440px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border: 0.5px solid #000000;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

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

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

/* Month title in the serif voice of the rates calendars */
.so-cp-dp-month {
  font-family: 'Sumana', serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #151515;
}

.so-cp-dp-nav-btn {
  background: none;
  border: 0.5px solid #000000;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 15px;
  color: #151515;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.so-cp-dp-nav-btn:hover:not(:disabled) { background: #151515; color: #FFFFFF; }
.so-cp-dp-nav-btn:disabled { opacity: 0.25; cursor: default; }

.so-cp-dp-mode {
  font-family: 'Open Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #717171;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #B4B4B4;
}

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

.so-cp-dp-dow {
  font-family: 'Open Sans', sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B4B4B4;
  text-align: center;
  padding: 4px 0 8px;
}

.so-cp-dp-day {
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  color: #151515;
  padding: 6px 0;
  text-align: center;
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 40px;
  justify-content: center;
}

.so-cp-dp-num { font-weight: 600; }

.so-cp-dp-price {
  font-size: 10px;
  line-height: 1;
  color: #717171;
}

.so-cp-dp-day:hover:not([disabled]):not(.is-ci):not(.is-co) { background: rgba(221, 170, 139, 0.15); }
.so-cp-dp-day.is-past { color: #B4B4B4; cursor: default; }
.so-cp-dp-day.is-booked { background: #ACB7BE; color: #FFFFFF; }
.so-cp-dp-day.is-booked .so-cp-dp-price { display: none; }
.so-cp-dp-day.is-booked[disabled] { cursor: not-allowed; }
.so-cp-dp-day.is-ci,
.so-cp-dp-day.is-co { background: #151515; color: #FFFFFF; font-weight: 600; }
.so-cp-dp-day.is-ci .so-cp-dp-price,
.so-cp-dp-day.is-co .so-cp-dp-price { color: rgba(255, 255, 255, 0.7); }
.so-cp-dp-day.is-range { background: rgba(221, 170, 139, 0.3); }

.so-cp-dp-msg {
  font-family: 'Open Sans', sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: #B0472F;
  margin: 10px 0 0;
  min-height: 16px;
}

/* --------------------------------------------------------------------------
   3. Rates & availability
   -------------------------------------------------------------------------- */

.so-cp-rates .so-cp-container { display: flex; flex-direction: column; gap: 48px; }

.so-cp-rates-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.so-cp-cal-nav { display: flex; align-items: stretch; }

.so-cp-cal-arrow {
  width: 40px;
  height: 40px;
  border: 0.5px solid #000000;
  background: none;
  color: #000000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.so-cp-cal-arrow:disabled { opacity: 0.25; cursor: default; }

.so-cp-cal-today {
  padding: 8px 16px;
  background: none;
  border: 0.5px solid #000000;
  border-left: none;
  border-right: none;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #151515;
  cursor: pointer;
}

.so-cp-cal-wrap {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

.so-cp-cal { width: 448px; max-width: 100%; }

.so-cp-cal-month {
  font-family: 'Sumana', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  color: #000000;
  text-align: center;
  margin: 0 0 8px;
  border-bottom: 1px solid #B4B4B4;
}

.so-cp-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.so-cp-cell {
  position: relative;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-bottom: 2px solid #FFFFFF;
  font-family: 'Open Sans', sans-serif;
}

.so-cp-cell--dow {
  height: 40px;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #151515;
}

.so-cp-cell-day {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  color: #151515;
}

.so-cp-cell-price {
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: #151515;
}

.so-cp-cell.is-past { background: #E1E6E9; }
.so-cp-cell.is-booked { background: #ACB7BE; }

/* Figma diagonal "half" cells at booking boundaries (64x64 vectors):
   check-in day: evening booked -> dark triangle bottom-right;
   check-out day: morning booked -> dark triangle top-left. */
.so-cp-cell.is-checkin {
  background: linear-gradient(to bottom right, #FFFFFF 49.6%, #ACB7BE 50.4%);
}

.so-cp-cell.is-checkout {
  background: linear-gradient(to bottom right, #ACB7BE 49.6%, #FFFFFF 50.4%);
}

.so-cp-cell.is-today::after {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 4px;
  background: rgba(235, 235, 235, 0.5);
  pointer-events: none;
}

.so-cp-cal-skel {
  height: 384px;
  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-cp-shimmer 1.2s ease infinite;
}

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

.so-cp-policy {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #151515;
  margin: 0;
}

/* --------------------------------------------------------------------------
   4. Location
   -------------------------------------------------------------------------- */

.so-cp-location .so-cp-container { display: flex; flex-direction: column; gap: 48px; }

.so-cp-map {
  width: 100%;
  height: 479px;
  object-fit: cover;
  display: block;
}

.so-cp-map--embed iframe {
  width: 100%;
  height: 479px;
  border: 0;
  display: block;
}

/* --------------------------------------------------------------------------
   5. Comparison table
   -------------------------------------------------------------------------- */

.so-cp-compare .so-cp-container { display: flex; flex-direction: column; gap: 48px; }

.so-cp-compare-head { display: flex; flex-direction: column; gap: 24px; }

.so-cp-compare-intro {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #151515;
  margin: 0;
  max-width: 860px;
}

.so-cp-tabs { display: flex; flex-wrap: wrap; gap: 16px; }

.so-cp-tab {
  padding: 24px 48px;
  background: none;
  border: 1px solid #000000;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #151515;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.so-cp-tab.is-active {
  background: #151515;
  border-color: #151515;
  color: #FFFFFF;
}

.so-cp-table-scroll { overflow-x: auto; }

.so-cp-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  display: none;
}

.so-cp-table.is-active { display: table; }

.so-cp-table th,
.so-cp-table td {
  padding: 24px 16px;
  text-align: left;
  border-bottom: 1px solid #000000;
  font-family: 'Open Sans', sans-serif;
  color: #151515;
  vertical-align: top;
}

.so-cp-table th {
  background: #F7F7F7;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.so-cp-table td { font-size: 16px; line-height: 1.5; letter-spacing: 0.03em; }

.so-cp-table th:first-child,
.so-cp-table td:first-child { width: 240px; }

/* --------------------------------------------------------------------------
   6. Amenities + modal
   -------------------------------------------------------------------------- */

.so-cp-amenities-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.so-cp-amenities-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  max-width: 435px;
}

.so-cp-amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  width: 100%;
}

.so-cp-amenity {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 327px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #151515;
}

.so-cp-amenity svg { flex-shrink: 0; color: #151515; }

/* Modal */
.so-cp-modal { position: fixed; inset: 0; z-index: 10500; }
.so-cp-modal[hidden] { display: none; }

.so-cp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.so-cp-modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 48px));
  background: #F7F7F7;
  box-shadow: 0 4px 64px rgba(0, 0, 0, 0.25);
  padding: 32px;
  overflow-y: auto;
}

.so-cp-modal-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: #151515;
  display: block;
  margin-bottom: 24px;
}

.so-cp-modal-groups {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.so-cp-modal-group {
  border-top: 0.5px solid #000000;
  padding-top: 32px;
}

.so-cp-modal-group:first-child { border-top: none; padding-top: 0; }

.so-cp-modal-group-title {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #151515;
  margin: 0 0 16px;
  padding: 0 20px;
}

.so-cp-modal-bullets {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 446px));
  gap: 16px 48px;
}

.so-cp-modal-bullets li {
  position: relative;
  padding-left: 20px;
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #151515;
}

.so-cp-modal-bullets li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #151515;
}

/* --------------------------------------------------------------------------
   7. Other cottages rail
   -------------------------------------------------------------------------- */

.so-cp-others-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.so-cp-other-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.so-cp-other-img-link {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #F7F7F7;
}

.so-cp-other-img-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.so-cp-other-card:hover .so-cp-other-img-link img { transform: scale(1.03); }

.so-cp-other-content { display: flex; flex-direction: column; gap: 24px; }

.so-cp-other-title { display: flex; flex-direction: column; gap: 4px; }

.so-cp-other-name {
  font-family: 'Sumana', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 48px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #151515;
  margin: 0;
}

.so-cp-other-desc {
  font-family: 'Open Sans', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: 0.03em;
  color: #151515;
  margin: 0;
}

.so-cp-other-card .so-cp-btn-link { align-self: flex-start; }

.so-cp-other-card .so-cp-pill { font-size: 13px; padding: 6px 14px; }

/* --------------------------------------------------------------------------
   Fixed bottom selection bar (dates picked -> details + total + add to cart)
   -------------------------------------------------------------------------- */

.so-cp-selbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 8px 8px 32px;
  background: #F7F7F7;
  border-top: 0.5px solid #717171;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

.so-cp-selbar[hidden] { display: none; }

.so-cp-selbar-info {
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
  min-width: 0;
}

.so-cp-selbar-name,
.so-cp-selbar-dates {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #151515;
  white-space: nowrap;
}

.so-cp-selbar-dates { color: #717171; }

.so-cp-selbar-price {
  font-family: 'Sumana', serif;
  font-size: 24px;
  line-height: 32px;
  letter-spacing: 0.03em;
  color: #151515;
  white-space: nowrap;
}

.so-cp-selbar-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-top-color: #151515;
  border-radius: 50%;
  animation: so-cp-shimmer-spin 0.7s linear infinite;
}

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

.so-cp-selbar-btn { flex-shrink: 0; }

/* --------------------------------------------------------------------------
   Responsive — tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .so-cp-info-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .so-cp-gallery-main { height: 520px; }
  .so-cp-amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .so-cp-others-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .so-cp-cal-wrap { flex-wrap: wrap; justify-content: flex-start; }
  .so-cp-tab { padding: 18px 28px; }
}

/* --------------------------------------------------------------------------
   Responsive — mobile (Figma 661:11823: pad 32/16, container 358)
   -------------------------------------------------------------------------- */

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

  .so-cp-h2 { font-size: 24px; line-height: 36px; }
  .so-cp-h3 { font-size: 20px; line-height: 32px; }
  .so-cp-eyebrow { font-size: 12px; line-height: 16px; }

  /* Hero */
  .so-cp-hero { height: 560px; }
  .so-cp-hero-band { padding: 24px 16px; }
  .so-cp-title { font-size: 32px; line-height: 44px; }
  .so-cp-tagline { font-size: 16px; max-width: 326px; }

  /* Gallery */
  .so-cp-gallery-main { height: 358px; }
  .so-cp-thumbs { gap: 4px; }
  .so-cp-thumb { flex: 0 0 149px; }

  /* Selection bar: two rows on mobile — details, then full-width button */
  .so-cp-selbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 16px 16px;
  }
  .so-cp-selbar-info {
    justify-content: space-between;
    align-items: baseline;
    gap: 4px 12px;
  }
  .so-cp-selbar-name { font-size: 12px; letter-spacing: 0.1em; }
  .so-cp-selbar-dates { font-size: 12px; letter-spacing: 0.1em; }
  .so-cp-selbar-price { font-size: 18px; line-height: 24px; margin-left: auto; }
  .so-cp-selbar-btn { width: 100%; padding: 16px 20px; font-size: 13px; }

  /* Form date picker: full width, never overflows the screen */
  #so-cp-dp { width: calc(100vw - 32px); padding: 20px 16px; }

  /* Info */
  .so-cp-rate { font-size: 24px; line-height: 36px; }
  .so-cp-desc p { font-size: 14px; }
  .so-cp-pill { font-size: 12px; }

  /* Form */
  .so-cp-form-row { grid-template-columns: 1fr; gap: 16px; }
  .so-cp-form-row:nth-of-type(2) { grid-template-columns: 1fr 1fr; }
  .so-cp-form-buttons { flex-direction: column; gap: 16px; }
  .so-cp-btn-primary,
  .so-cp-btn-tertiary { width: 100%; padding: 20px 24px; }

  /* Calendars: single month, 48px cells */
  .so-cp-rates-header { flex-direction: column; align-items: stretch; gap: 16px; }
  .so-cp-cal-nav { width: 100%; }
  .so-cp-cal-today { flex: 1; text-align: center; }
  .so-cp-cal-arrow { width: 48px; height: 48px; }
  .so-cp-cal-wrap { gap: 24px; }
  .so-cp-cal { width: 100%; }
  .so-cp-cell { height: 48px; }
  .so-cp-cell--dow { height: 36px; font-size: 14px; }
  .so-cp-cell-day { font-size: 14px; line-height: 20px; }
  .so-cp-cell-price { font-size: 10px; }
  .so-cp-cell.is-today::after { inset: 6px; }
  .so-cp-policy { font-size: 14px; }

  /* Map */
  .so-cp-map,
  .so-cp-map--embed iframe { height: 352px; }

  /* Comparison */
  .so-cp-compare-intro { font-size: 14px; }
  .so-cp-tabs { gap: 8px; }
  .so-cp-tab { padding: 14px 20px; font-size: 12px; }

  /* Amenities */
  .so-cp-amenity-grid { grid-template-columns: 1fr; justify-items: center; }
  .so-cp-amenity { width: 100%; max-width: 327px; font-size: 14px; }
  #so-cp-amenities-open { width: 100%; }

  /* Modal */
  .so-cp-modal-panel { padding: 32px 16px; width: calc(100vw - 16px); }
  .so-cp-modal-bullets { grid-template-columns: 1fr; }
  .so-cp-modal-bullets li { font-size: 14px; }
  .so-cp-modal-group-title { font-size: 14px; }

  /* Other cottages: horizontal carousel */
  .so-cp-others-rail {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }
  .so-cp-other-card { flex: 0 0 340px; scroll-snap-align: start; }
  .so-cp-other-img-link { height: 300px; aspect-ratio: auto; }
  .so-cp-other-name { font-size: 24px; line-height: 36px; }
  .so-cp-other-desc { font-size: 14px; }
}
