/* Dog Walks & Boarding — MatthewStephens.biz */

/* === Theme Variables === */
:root {
  --bg-teal: rgb(16, 78, 86);
  --header-forest: rgb(47, 62, 47);
  --card-navy: rgb(30, 41, 59);
  --ink-cream: rgb(244, 241, 229);
  --accent-tan: rgb(214, 198, 168);
  --accent-gold: rgb(201, 169, 74);
  --bg-light: rgb(207, 233, 230);
  --radius-card: 24px;
  --radius-btn: 6px;
  --radius-pill: 999px;
  /* Standard panel: 2.5" × ~4.045" portrait golden ratio @ 96dpi */
  --panel-w: 240px;
  --panel-h: 388px;
  --panel-ratio: 240 / 388;
}

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Futura Medium", "Futura", "Century Gothic", "Trebuchet MS", sans-serif;
  color: var(--ink-cream);
  background-color: var(--bg-teal);
  line-height: 1.4;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* === Page Layout === */
.ms-page {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

/* ==========================================================
   HEADER — sloganA | nav (two-line centered) | sloganD
   ========================================================== */
.ms-header {
  background-color: var(--header-forest);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0;
}

.ms-header-slogan {
  flex: 0 0 18%;
  max-width: 18%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
}

.ms-header-slogan img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
}

/* sloganD.svg is already pre-mirrored — no CSS flip needed */

.ms-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 2em;
  align-items: center;
}

.ms-nav a {
  color: var(--ink-cream);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.03em;
  white-space: pre;
  text-align: center;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.ms-nav a:hover,
.ms-nav a.active {
  color: var(--accent-tan);
}

/* ==========================================================
   FOOTER — sloganA | 2×2 contact grid | sloganD
   ========================================================== */
.ms-footer {
  background-color: var(--header-forest);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 16px;
  font-weight: 600;
}

.ms-footer .ms-header-slogan {
  flex: 0 0 18%;
  max-width: 18%;
}

.ms-footer-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1.5rem;
  text-align: center;
  justify-items: center;
}

.ms-footer-grid a { transition: color 0.2s ease; }
.ms-footer-grid a:hover { color: var(--accent-tan); text-decoration: underline; }

/* Footer cell: 3-column micro-grid for aligned emoji icons */
.ms-footer-cell {
  display: grid;
  grid-template-columns: 1.5em 1fr 1.5em;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
}

/* === Toast notification (copy to clipboard, etc.) === */
.ms-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gold);
  color: var(--card-navy);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 999;
}
.ms-toast--visible { opacity: 1; }

/* ==========================================================
   STEPCARD — navy body on top, green header strip at bottom
   ========================================================== */
.ms-stepcard {
  background-color: var(--header-forest);
  border-radius: var(--radius-card);
  margin-bottom: 1.5rem;
  overflow: hidden;
}

/* Navy body sits on top */
.ms-stepcard-body {
  background-color: var(--card-navy);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 120px;
}

/* Green header strip at bottom (forest shows through from parent) */
.ms-stepcard-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.03em;
}

/* Teal circle with plain number */
.ms-stepcard-stepcircle {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-pill);
  background-color: var(--bg-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink-cream);
}

.ms-stepcard-title {
  color: var(--ink-cream);
}

/* === Typography === */
h1, h2, h3 { color: var(--ink-cream); font-weight: 600; }
h1 { font-size: 24px; }
h2 { font-size: 20px; }
h3 { font-size: 17px; }
.ms-small { font-size: 13px; }
.ms-label { font-size: 14px; }

/* === Widgets (generic) === */
.ms-widget {
  position: relative;
}

/* === Task Mode (show/hide by service type) === */
.ms-task-hidden { display: none !important; }

.ms-task-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ms-task-option {
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background-color: rgba(255,255,255,0.08);
  color: var(--ink-cream);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
}

.ms-task-option:hover {
  background-color: rgba(255,255,255,0.14);
}

.ms-task-option--active {
  background-color: var(--accent-gold);
  color: var(--card-navy);
  box-shadow: 0 0 0 2px rgba(244,241,229,0.95), 0 0 0 4px rgba(0,0,0,0.55);
  transform: scale(1.03);
}

/* === Buttons === */
.ms-btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-family: inherit;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
  background-color: var(--accent-gold);
  color: var(--card-navy);
}

.ms-btn:hover {
  background-color: var(--accent-tan);
}

.ms-btn--secondary {
  background-color: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
}

.ms-btn--secondary:hover {
  background-color: var(--accent-gold);
  color: var(--card-navy);
}

/* === Form Inputs === */
.ms-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-btn);
  background-color: rgba(255,255,255,0.08);
  color: var(--ink-cream);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.ms-input:focus {
  border-color: var(--accent-gold);
}

.ms-input::placeholder {
  color: rgba(244,241,229,0.4);
}

/* === Gallery Grid === */
.ms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
}

.ms-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.ms-gallery-grid img:hover {
  opacity: 0.85;
}

/* ==========================================================
   SEASON PANELS (Photo Journal — Year.html)
   4-column grid on desktop, stacked on mobile
   ========================================================== */

/* Mobile-only season quick-nav */
.ms-season-nav {
  display: none;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.ms-season-nav-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  background-color: rgba(255,255,255,0.1);
  color: var(--ink-cream);
  transition: background-color 0.2s ease;
}

.ms-season-nav-btn:hover { background-color: rgba(255,255,255,0.18); }

/* Colored nav buttons per season */
.ms-season-nav-btn--winter { border: 1px solid rgba(173,216,230,0.4); }
.ms-season-nav-btn--spring { border: 1px solid rgba(144,238,144,0.4); }
.ms-season-nav-btn--summer { border: 1px solid rgba(255,223,120,0.4); }
.ms-season-nav-btn--fall   { border: 1px solid rgba(210,140,80,0.4); }

/* 4-column season grid */
.ms-season-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

/* Individual season panel — portrait golden ratio, scrolls if content overflows */
.ms-season-panel {
  background-color: var(--card-navy);
  border-radius: var(--radius-card);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--panel-ratio);
  overflow-y: auto;
}

/* Subtle seasonal watermark backgrounds */
.ms-season-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  pointer-events: none;
  background-size: 48px 48px;
  background-repeat: repeat;
}

.ms-season-panel--winter::before {
  background-image:
    radial-gradient(circle at 12px 12px, rgba(173,216,230,1) 2px, transparent 2px),
    radial-gradient(circle at 36px 36px, rgba(173,216,230,1) 1.5px, transparent 1.5px),
    radial-gradient(circle at 24px 4px, rgba(200,230,240,1) 1px, transparent 1px);
}

.ms-season-panel--spring::before {
  background-image:
    radial-gradient(ellipse at 14px 14px, rgba(144,238,144,1) 4px, transparent 4px),
    radial-gradient(circle at 36px 34px, rgba(255,182,193,1) 3px, transparent 3px),
    radial-gradient(circle at 8px 38px, rgba(144,238,144,1) 2px, transparent 2px);
}

.ms-season-panel--summer::before {
  background-image:
    radial-gradient(circle at 24px 24px, rgba(255,223,120,1) 6px, transparent 6px),
    radial-gradient(circle at 24px 24px, rgba(255,200,60,1) 3px, transparent 10px);
  background-size: 48px 48px;
}

.ms-season-panel--fall::before {
  background-image:
    radial-gradient(ellipse 6px 4px at 12px 12px, rgba(210,140,80,1) 3px, transparent 3px),
    radial-gradient(ellipse 5px 3px at 34px 28px, rgba(180,100,40,1) 2px, transparent 2px),
    radial-gradient(ellipse 4px 3px at 24px 40px, rgba(200,120,60,1) 2px, transparent 2px);
}

/* Season title */
.ms-season-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.ms-season-panel--winter .ms-season-title { color: rgb(173,216,230); }
.ms-season-panel--spring .ms-season-title { color: rgb(144,238,144); }
.ms-season-panel--summer .ms-season-title { color: rgb(255,223,120); }
.ms-season-panel--fall   .ms-season-title { color: rgb(210,160,100); }

/* Month header row (3 columns) */
.ms-season-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding-bottom: 0.4rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ms-season-month-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-tan);
}

/* Year rows */
.ms-season-year-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0;
}

.ms-season-year-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-cream);
  opacity: 0.75;
  min-width: 2.5rem;
}

.ms-season-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.ms-season-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-gold);
  padding: 0.15rem 0;
  border-radius: var(--radius-btn);
  transition: background-color 0.15s ease;
}

a.ms-season-count:hover {
  background-color: rgba(255,255,255,0.08);
  text-decoration: none;
}

.ms-season-count--empty {
  color: rgba(244,241,229,0.2);
}

/* Poetry star indicator on photo counts */
.ms-season-count--starred {
  position: relative;
}
.ms-season-count--starred::before {
  content: '\2726';
  position: absolute;
  left: -0.6em;
  top: -0.15em;
  font-size: 10px;
  color: var(--accent-gold);
  opacity: 0.7;
}

/* === Poem overlay on starred monthly photos === */
.ms-photo-frame--starred {
  position: relative;
  cursor: pointer;
}

.ms-poem-overlay {
  position: absolute;
  inset: 4px;
  background: rgba(30, 41, 59, 0.88);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ms-poem-overlay--visible {
  opacity: 1;
  pointer-events: auto;
}

.ms-poem-overlay p {
  color: var(--ink-cream);
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}

/* ==========================================================
   PANEL-ROW GRID SYSTEM (standardized portrait panels)
   ========================================================== */
.ms-panel-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
}
.ms-panel-row--3col { grid-template-columns: repeat(3, 1fr); }
.ms-panel-row--5col { grid-template-columns: repeat(5, 1fr); }
.ms-panel-row--2col { grid-template-columns: repeat(2, 1fr); }
.ms-panel { aspect-ratio: var(--panel-ratio); }
.ms-panel-span2 { grid-column: span 2; }
.ms-panel-full  { grid-column: 1 / -1; }

/* ==========================================================
   LIGHTBOX (monthly photo viewer)
   ========================================================== */
.ms-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 41, 59, 0.95);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ms-lightbox--open { display: flex; }

.ms-lightbox-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.75rem;
}

.ms-lb-btn {
  background: transparent;
  border: 2px solid var(--accent-gold);
  color: var(--accent-gold);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.ms-lb-btn:hover {
  background: var(--accent-gold);
  color: var(--card-navy);
}

.ms-lb-star--filled {
  background: var(--accent-gold);
  color: var(--card-navy);
}

#ms-lightbox-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.ms-lightbox-poem {
  color: var(--ink-cream);
  font-size: 16px;
  font-style: italic;
  text-align: center;
  padding: 1rem 2rem;
  max-width: 600px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ms-lightbox-poem--visible { opacity: 1; }

/* Download icon on thumbnails (appears on hover) */
.ms-photo-dl {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: var(--accent-gold);
  color: var(--card-navy);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  z-index: 2;
}
.ms-photo-frame:hover .ms-photo-dl { opacity: 1; }

/* Star icon on thumbnails */
.ms-photo-star {
  position: absolute;
  bottom: 8px;
  left: 8px;
  color: var(--accent-gold);
  font-size: 20px;
  text-shadow: 0 0 3px rgba(0,0,0,0.6);
  cursor: pointer;
  opacity: 0.7;
  z-index: 2;
  transition: opacity 0.2s ease;
}
.ms-photo-star--filled {
  opacity: 1;
}

/* ==========================================================
   MONTHLY PHOTO PAGE (photos/YYYY-MM/index.html)
   ========================================================== */

.ms-month-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.ms-month-header h1 {
  flex: 1;
  text-align: center;
}

.ms-back-link {
  font-size: 14px;
  color: var(--accent-tan);
  transition: color 0.2s ease;
}

.ms-back-link:hover { color: var(--accent-gold); }

.ms-photo-count {
  font-size: 14px;
  color: var(--accent-tan);
  opacity: 0.7;
}

/* 5-column photo grid (desktop), 1-column (mobile) */
.ms-photo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}

.ms-photo-frame {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  background-color: rgba(255,255,255,0.06);
  padding: 4px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ms-photo-frame:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.ms-photo-frame img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 7px;
  display: block;
}

/* === Consent Tiles === */
.ms-consent-tile {
  background-color: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}

.ms-consent-tile h3 {
  margin-bottom: 0.4rem;
  color: var(--accent-tan);
}

.ms-consent-tile p {
  font-size: 14px;
  color: var(--ink-cream);
  opacity: 0.85;
}

/* === Checkbox === */
.ms-checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.ms-checkbox-row input[type="checkbox"] {
  accent-color: var(--accent-gold);
  width: 1.1rem;
  height: 1.1rem;
}

/* ==========================================================
   BOOKINGS WIDGETS
   ========================================================== */

/* Task icon in selector buttons */
.ms-task-icon { font-size: 1.2em; }

/* Detail list (Step 1 task details) */
.ms-detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-detail-list li {
  font-size: 13px;
  padding: 0.2rem 0;
  padding-left: 1rem;
  position: relative;
  opacity: 0.85;
}

.ms-detail-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
}

/* Dog name rows */
.ms-dog-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.ms-dog-icon {
  font-size: 1.2em;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

/* --- Month View (12-month calendar grid) --- */
.ms-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.ms-month-cell {
  background-color: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.6rem 0.4rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
  border: 2px solid transparent;
}

.ms-month-cell:hover {
  background-color: rgba(255,255,255,0.12);
}

.ms-month-cell--current {
  border-color: var(--accent-gold);
}

.ms-month-cell--selected {
  background-color: var(--accent-gold);
  color: var(--card-navy);
}

.ms-month-cell--selected .ms-month-cell-label,
.ms-month-cell--selected .ms-month-cell-year {
  color: var(--card-navy);
}

.ms-month-cell-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-cream);
}

.ms-month-cell-year {
  display: block;
  font-size: 11px;
  opacity: 0.5;
}

/* --- Onboarding notice (Pack-New) --- */
.ms-onboarding-notice {
  background-color: rgba(201,169,74,0.12);
  border: 1px solid rgba(201,169,74,0.3);
  border-radius: 10px;
  padding: 1rem;
}

.ms-onboarding-notice h3 {
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}

/* --- Rhythm selector row --- */
.ms-rhythm-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

/* --- Week preview (M/W/F dots) --- */
.ms-week-preview {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.ms-week-day {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background-color: rgba(255,255,255,0.06);
  color: var(--ink-cream);
  opacity: 0.4;
  transition: all 0.15s ease;
}

.ms-week-day--active {
  background-color: var(--accent-gold);
  color: var(--card-navy);
  opacity: 1;
}

/* --- Week selector grid --- */
.ms-week-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

/* --- Day block selector --- */
.ms-day-blocks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.ms-day-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.4rem;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.06);
  border: 2px solid transparent;
  cursor: pointer;
  color: var(--ink-cream);
  font-family: inherit;
  transition: all 0.15s ease;
}

.ms-day-block:hover {
  background-color: rgba(255,255,255,0.12);
}

.ms-day-block--active {
  background-color: var(--accent-gold);
  color: var(--card-navy);
  border-color: var(--accent-tan);
}

.ms-day-block-icon { font-size: 1.4em; }
.ms-day-block-label { font-size: 13px; font-weight: 600; }
.ms-day-block-time { font-size: 10px; opacity: 0.6; }

.ms-day-block--active .ms-day-block-time { opacity: 0.8; }

/* --- Time slot grid --- */
.ms-time-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}

/* --- Receipt tiles (Step 4) --- */
.ms-receipt-tile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.4rem;
}

.ms-receipt-icon { font-size: 1.3em; }

.ms-receipt-info {
  display: flex;
  flex-direction: column;
}

.ms-receipt-name {
  font-weight: 600;
  font-size: 15px;
}

.ms-receipt-detail {
  opacity: 0.7;
}

/* --- Pack summary (Step 4) --- */
.ms-pack-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0;
}

/* --- Total receipt (Step 4/5) --- */
.ms-total-receipt {
  text-align: center;
  padding: 1rem 0;
}

.ms-total-amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-gold);
}

.ms-total-label {
  font-size: 16px;
  font-weight: 600;
  margin-top: 0.2rem;
}

/* --- Confirm summary (Step 5) --- */
.ms-confirm-summary {
  padding: 0.5rem 0;
}

.ms-confirm-summary p {
  padding: 0.15rem 0;
}

/* --- Wide button variant --- */
.ms-btn--wide {
  width: 100%;
  padding: 0.8em 1.5em;
  font-size: 16px;
  text-align: center;
}

/* === Responsive === */
@media (max-width: 640px) {
  /* Header: single row, slogans full height, no wrapping */
  .ms-header {
    flex-wrap: nowrap;
    padding: 0.5rem 0;
    gap: 0;
  }

  .ms-header-slogan {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
  }

  .ms-header-slogan img {
    height: 96px;
    width: auto;
    max-height: unset;
  }

  .ms-nav {
    flex: 1;
    gap: 0.5em;
  }

  .ms-nav a {
    font-size: 14px;
  }

  /* Footer: single row, slogans full height, no stacking */
  .ms-footer {
    flex-direction: row;
    flex-wrap: nowrap;
    text-align: center;
    gap: 0;
    padding: 0.5rem 0;
  }

  .ms-footer .ms-header-slogan {
    flex: 0 0 auto;
    max-width: none;
    padding: 0;
  }

  .ms-footer .ms-header-slogan img {
    height: 96px;
    width: auto;
    max-height: unset;
  }

  .ms-footer-grid {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    font-size: 14px;
  }

  .ms-page {
    padding: 1rem 0.75rem;
  }

  .ms-stepcard-body {
    padding: 1rem;
    min-height: 80px;
  }

  .ms-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Season panels stack on mobile — remove portrait aspect-ratio */
  .ms-season-nav {
    display: flex;
  }

  .ms-season-grid {
    grid-template-columns: 1fr;
  }

  .ms-season-panel {
    aspect-ratio: unset;
    overflow-y: visible;
  }

  /* Photo grid → 2 columns on mobile */
  .ms-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  /* Download icon always visible on mobile (no hover) */
  .ms-photo-dl { opacity: 0.8; }

  /* Panel rows → single column on mobile, no forced aspect-ratio */
  .ms-panel-row,
  .ms-panel-row--3col,
  .ms-panel-row--5col,
  .ms-panel-row--2col {
    grid-template-columns: 1fr;
  }
  .ms-panel-span2 { grid-column: span 1; }
  .ms-panel { aspect-ratio: unset; }

  .ms-month-header {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  /* Booking widgets on mobile */
  .ms-month-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .ms-day-blocks {
    grid-template-columns: repeat(2, 1fr);
  }

  .ms-week-grid {
    grid-template-columns: 1fr;
  }
}
