/* css/tokens.css — SOURCE. Seaside Cottage's actual existing values,
   copied from the live site (styles.css / inline Tailwind classes),
   not a fresh palette. This is a port, not a redesign — see
   port-existing-site-prompt.md. */

:root {
  /* ---- Palette — the real Seaside Cottage colors ---- */
  --primary:      #0f4c3a;
  --primary-dark: #0a3c2e;
  --warm:         #f8f1e9;
  --warm-border:  #f3e8d8;
  --ink:          #374151; /* body text */
  --slate:        #6b7280; /* meta / secondary text */
  --slate-light:  #9ca3af;
  --border:       #e5e7eb;
  --surface:      #ffffff;
  --surface-alt:  #f9fafb;
  --dark:         #111827; /* footer background */
  --gold:         #fbbf24; /* star rating color */
  --error:        #b3261e;
  --success:      #15803d;

  --accent:      var(--primary);
  --accent-dark: var(--primary-dark);

  /* ---- Type — the real pairing: Inter Tight body, Playfair
     Display used once, deliberately, for the hero property name. ---- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter Tight', system-ui, -apple-system, sans-serif;

  --fs-hero: clamp(2.75rem, 5vw + 1rem, 3.75rem);
  --fs-h2:   clamp(1.875rem, 2.5vw + 1rem, 2.25rem);
  --fs-h3:   1.25rem;

  /* ---- Layout ----
     This site's own breakpoint (Tailwind's md, 768px) is preserved
     exactly rather than swapped for the kit's usual 640/960/961 —
     changing the breakpoint would change when the nav and grids
     actually shift, which is a visible behavior change a port must
     not make. */
  --bp-md: 768px;
  --container-max: 64rem; /* Tailwind max-w-5xl */
  --container-pad: 1.5rem;
  --nav-height: 5rem; /* h-20 */
  --radius-sm: 0.75rem;  /* rounded-xl  */
  --radius:    1rem;     /* rounded-2xl */
  --radius-lg: 1.5rem;   /* rounded-3xl */
  --shadow-card: 0 10px 30px -6px rgba(0,0,0,0.2);

  /* Booking widget — inherits the site's own tokens by default. */
  --sw-accent:       var(--accent);
  --sw-accent-hover: var(--accent-dark);
  --sw-text:         var(--ink);
  --sw-text-muted:   var(--slate);
  --sw-border:       var(--border);
  --sw-border-light: var(--border);
  --sw-bg-card:      var(--surface);
  --sw-bg-field:     var(--surface);
  --sw-bg-hover:     var(--warm);
  --sw-error:        var(--error);
  --sw-success:      var(--success);
  --sw-radius:       var(--radius-sm);
  --sw-radius-card:  var(--radius-lg);
  --sw-font:         var(--font-body);
}
/* css/base.css — SOURCE. Reusable reset + element defaults. */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 0.5rem);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 { line-height: 1.1; font-weight: 700; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

ul, ol { padding: 0; margin: 0; list-style: none; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* [hidden] beats any shared flex/grid utility that sets display on
   its own children — the mechanism that made a "closed" mobile
   overlay stay invisible-but-interactive on a past build. */
[hidden] { display: none !important; }
/* css/layout.css — SOURCE. Layout primitives.
   Breakpoint is 768px throughout (this site's own, preserved from
   the original Tailwind build) rather than the kit's usual
   640/960/961 — see the note in tokens.css. */

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt  { background: var(--warm); }
.section--dark { background: var(--dark); color: rgba(255,255,255,0.7); }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }
.stack--tight { --stack-gap: 0.6rem; }
.stack--loose { --stack-gap: 2.5rem; }
.stack > a { display: block; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, 0.9rem);
}

.split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; }
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
}

/* 2 columns desktop / 1 mobile — rule cards, guide cards. */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* 3 columns desktop / 1 mobile — gallery strip, review cards. At
   tablet width this used to drop to 2 and orphan the third item —
   fixed here so it never happens again. */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
}

/* 4 columns desktop / 2 mobile — quick-highlight tiles. */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
/* css/components.css — SOURCE.
   Visual values (color/radius/spacing) all read from tokens.css —
   this file is the reusable mechanics, matched to Seaside Cottage's
   existing look exactly (this is a port, not a redesign). */

/* ============================= NAV ============================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--warm-border);
}
.nav--scrolled {
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.05), 0 4px 16px -4px rgba(0,0,0,0.08);
}

.nav__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { display: flex; align-items: center; gap: 0.75rem; }
.nav__mark {
  width: 2.5rem; height: 2.5rem;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em;
}
.nav__name { font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; color: var(--primary); }
.nav__place { font-size: 0.625rem; color: var(--slate); margin-top: -0.15rem; }

.nav__links { display: none; align-items: center; gap: 1rem; }
.nav__links a { font-size: 0.875rem; font-weight: 600; }
.nav__links .btn--ghost { color: var(--primary); }
.nav__links .btn--ghost:hover { background: var(--warm); }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--primary);
  font-size: 1.25rem;
}

@media (min-width: 769px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
}

/* ======================= MOBILE MENU (shared) =======================
   One implementation, loaded by every page via js/nav.js — this is
   the fix for the site previously running THREE separate mobile
   menu implementations (index.html's own inline script, plus two
   more duplicated across house-rules.html and local-area-guide.html)
   that each had to be bug-fixed independently. There's now exactly
   one, referenced by class name only.

   Default (no JS / JS hasn't run): panel + overlay stay display:none
   via [hidden] in the markup — nothing to open, so nothing can get
   stuck open. Once JS runs, it toggles the [hidden] attribute AND
   the .open class together, on the same elements, so a hidden panel
   can never be left interactive (the exact bug that hit this site
   before: JS flipping style.display while CSS keyed transform/
   opacity off a class, leaving an invisible-but-clickable overlay
   blocking scroll with no way to close it). pointer-events:none on
   the closed state is a second, cheap fallback for the same failure
   mode if the class logic ever regresses again. ======================= */

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-overlay.open { opacity: 1; pointer-events: auto; }

.mobile-panel {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 18rem; max-width: 85vw;
  background: var(--surface);
  z-index: 100;
  box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.mobile-panel.open { transform: translateX(0); pointer-events: auto; }

.mobile-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.mobile-panel__close { width: 2.25rem; height: 2.25rem; color: var(--slate-light); font-size: 1.25rem; }
.mobile-panel__links { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem; flex: 1; }
.mobile-panel__links a,
.mobile-panel__links button {
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
}
.mobile-panel__links a:hover,
.mobile-panel__links button:hover { background: var(--warm); color: var(--primary); }
.mobile-panel__foot { padding: 1rem 1.5rem; border-top: 1px solid var(--border); }

body.menu-open { overflow: hidden; }

@media (min-width: 769px) {
  .mobile-overlay, .mobile-panel { display: none !important; }
}

/* ============================= HERO ============================= */

.hero {
  background-size: cover;
  background-position: center;
  min-height: 480px;
  position: relative;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 769px) { .hero { min-height: 580px; } }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6) 100%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: 6rem 3rem; }
.hero__content { max-width: 32rem; }

.hero__rating {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
}
.hero__rating .stars { display: flex; gap: 0.1rem; color: var(--gold); }
.hero__rating .score { color: var(--primary); font-weight: 700; }
.hero__rating .count { color: var(--slate); font-size: 0.75rem; }

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero__tagline { font-size: 1.25rem; color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; max-width: 26rem; }

.hero__facts { display: flex; flex-wrap: wrap; gap: 1.25rem 1.5rem; color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 2rem; }
.hero__facts span { display: flex; align-items: center; gap: 0.4rem; }

.price-badge {
  position: absolute;
  bottom: 1.75rem; right: 1.75rem;
  background: rgba(255,255,255,0.97);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  display: none;
  align-items: baseline;
  gap: 0.4rem;
}
.price-badge .amount { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.price-badge .unit { font-size: 0.85rem; color: var(--slate-light); }
.price-badge .tag { font-size: 0.7rem; color: var(--success); font-weight: 600; }
@media (min-width: 769px) { .price-badge { display: flex; } }

/* ============================= BUTTONS ============================= */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 10px 24px -6px rgba(15,76,58,0.3); }
.btn--white { background: #fff; color: var(--primary); }
.btn--white:hover { background: var(--warm); transform: translateY(-2px); }
.btn--ghost { background: none; color: var(--ink); padding: 0.7rem 1.5rem; }
.btn--ghost:hover { background: var(--warm); }
.btn--outline { background: none; border: 1.5px solid var(--border); color: var(--ink); }
.btn--outline:hover { border-color: var(--primary); color: var(--primary); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

p.lede { font-size: 1.1rem; color: var(--slate); }

/* ============================ TRUST BAR ============================ */

.trust-bar {
  background: #fff;
  border-bottom: 1px solid var(--surface-alt);
  padding-block: 1rem;
}
.trust-bar .cluster { justify-content: center; }
@media (min-width: 769px) { .trust-bar .cluster { justify-content: space-between; } }
.trust-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: #4b5563; }
.trust-item i { color: var(--primary); font-size: 0.875rem; }
.trust-divider { width: 1px; height: 20px; background: var(--border); }
@media (max-width: 768px) { .trust-divider { display: none; } }

/* ============================= TABS ============================= */

.section-header { font-size: var(--fs-h2); color: var(--primary); letter-spacing: -0.02em; }

.eyebrow {
  display: inline-block;
  background: #d1fae5;
  color: #047857;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

.tabs-nav { display: flex; overflow-x: auto; border-bottom: 1px solid var(--border); margin-bottom: 2rem; }
.tab-button {
  padding: 0.9rem 1.5rem;
  font-weight: 500; font-size: 0.9375rem;
  color: var(--slate);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease;
}
.tab-button.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.tab-content.hidden { display: none; }
.tab-content { animation: fadeIn 0.25s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.fact-tile { background: var(--warm); padding: 1rem; border-radius: var(--radius); font-size: 0.85rem; }
.fact-tile__label { font-weight: 600; color: var(--primary); margin-bottom: 0.15rem; }
.fact-tile__value { color: var(--slate); font-size: 0.78rem; }

.chip { display: inline-block; font-size: 0.75rem; background: var(--surface-alt); color: var(--slate); padding: 0.4rem 0.9rem; border-radius: 999px; }

.info-card { background: var(--warm); border-radius: var(--radius); padding: 1.5rem; font-size: 0.9rem; }
.info-card__row + .info-card__row { margin-top: 1rem; }
.info-card__label { font-weight: 500; color: #374151; margin-bottom: 0.1rem; }

/* ============================= CARDS ============================= */

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgb(15 76 58 / 0.1); }
.card--flat { transition: none; }
.card--flat:hover { transform: none; box-shadow: none; }

.review-card { background: var(--surface-alt); border-radius: var(--radius-lg); padding: 1.5rem; }
.review-card p { font-style: italic; color: #374151; font-size: 0.9rem; }
.review-card .stars { color: var(--gold); display: flex; gap: 0.1rem; margin-bottom: 0.75rem; }
.review-card .attribution { margin-top: 1rem; font-size: 0.75rem; color: var(--slate-light); }

.rating-summary { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; }
.rating-summary .stars { display: flex; gap: 0.1rem; color: var(--gold); }
.rating-summary .score { font-weight: 700; color: var(--primary); }
.rating-summary .count { color: var(--slate-light); font-size: 0.9rem; }

/* Reusable star icon: one <symbol>, referenced with <use> — this
   site had 25 identical star-icon instances (hero badge, 3 review
   cards, the rating summary) before this fix. */
.icon-star { width: 0.85rem; height: 0.85rem; fill: currentColor; }

.highlight { background: linear-gradient(135deg, var(--warm) 0%, #fff 100%); padding: 1.5rem; border-radius: var(--radius-lg); text-align: center; }
.highlight__emoji { font-size: 2.25rem; margin-bottom: 0.5rem; }
.highlight__label { font-weight: 600; }
.highlight__meta { font-size: 0.85rem; color: var(--slate-light); }

.rule-card, .guide-card { background: #fff; border: 1px solid var(--surface-alt); padding: 2rem; border-radius: var(--radius-lg); transition: all 0.2s ease; }
.rule-card:hover, .guide-card:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgb(15 76 58 / 0.1); }
.rule-card__icon {
  width: 3rem; height: 3rem; flex-shrink: 0;
  background: #d1fae5; color: #059669;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.rule-card__body { display: flex; gap: 1rem; align-items: flex-start; }
.rule-card ul { color: var(--slate); font-size: 0.9rem; }
.rule-card ul li + li { margin-top: 0.5rem; }

/* ============================= GALLERY ============================= */

.gallery-strip figure { margin: 0; }
.gallery-strip img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.gallery-strip img:hover { transform: scale(1.04); }
.gallery-strip figcaption { text-align: center; font-size: 0.75rem; color: var(--slate-light); margin-top: 0.5rem; }

/* ============================= FORMS ============================= */

.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }

.field label { display: block; font-size: 0.9rem; font-weight: 500; color: #374151; margin-bottom: 0.4rem; }
.field input, .field textarea, .field select {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,76,58,0.1);
  outline: none;
}
.field textarea { min-height: 6rem; resize: vertical; }

.form-card { background: #fff; border-radius: var(--radius-lg); padding: 1.75rem 2rem; box-shadow: var(--shadow-card); border: 1px solid var(--warm-border); }

.error   { color: var(--error); font-size: 0.85rem; }
.success { color: var(--success); font-size: 0.9rem; font-weight: 600; }

.success-message { text-align: center; padding-block: 2rem; animation: popIn 0.35s ease forwards; }
@keyframes popIn { 0% { transform: scale(0.96); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success-message__icon { width: 4rem; height: 4rem; margin-inline: auto; background: #d1fae5; color: #059669; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; }

/* ============================= ADMIN ============================= */

.admin-shell { max-width: 42rem; margin-inline: auto; padding: 2rem var(--container-pad) 5rem; }
.admin-login { max-width: 24rem; margin: 4rem auto; padding: 2rem var(--container-pad); text-align: center; }
.admin-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; margin-top: 1.5rem; }
.admin-card legend { font-weight: 700; font-size: var(--fs-h3); padding: 0 0.4rem; }
.admin-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.admin-list li:last-child { border-bottom: none; }
.admin-list button { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.3rem 0.7rem; font-size: 0.8rem; }

/* ============================= FOOTER ============================= */

.footer { background: var(--dark); color: rgba(255,255,255,0.6); padding-block: 3rem; font-size: 0.9rem; }
.footer a:hover { color: #fff; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer .mark { width: 2.25rem; height: 2.25rem; background: rgba(255,255,255,0.1); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 769px) { .footer-grid { grid-template-columns: 5fr 3fr 4fr; } }

/* ============================= REVEAL ============================= */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }

/* ======================= BOOKING WIDGET (#stay-widget) ======================= */
/* Self-contained. Every value is a --sw-* variable inherited from
   tokens.css (see the comment there) — theming this per project
   never needs an edit here. */

#stay-widget { max-width: 28rem; margin-inline: auto; font-family: var(--sw-font); color: var(--sw-text); }
#stay-widget .sw-card { background: var(--sw-bg-card); border: 1px solid var(--warm-border); border-radius: var(--sw-radius-card); padding: 1.75rem 2rem; box-shadow: var(--shadow-card); }
#stay-widget .sw-title { font-weight: 700; font-size: 1.25rem; margin: 0 0 0.25rem; }
#stay-widget .sw-rates { font-size: 0.85rem; color: var(--sw-text-muted); margin: 0 0 1.25rem; }
#stay-widget .sw-field { margin-bottom: 1rem; position: relative; }
#stay-widget label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--sw-text-muted); margin-bottom: 0.4rem; }
#stay-widget .sw-control {
  width: 100%; padding: 0.75rem 1.25rem;
  border: 1px solid var(--sw-border); border-radius: var(--sw-radius);
  background: var(--sw-bg-field); font-family: inherit; font-size: 0.9rem; color: var(--sw-text);
  box-sizing: border-box; cursor: pointer; text-align: left;
}
#stay-widget .sw-control:focus { outline: none; border-color: var(--sw-accent); box-shadow: 0 0 0 3px rgba(15,76,58,0.1); }
#stay-widget .sw-calendar {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 0.4rem;
  background: var(--sw-bg-field); border: 1px solid var(--sw-border-light);
  border-radius: var(--sw-radius); box-shadow: var(--shadow-card);
  padding: 0.9rem; z-index: 20;
}
#stay-widget .sw-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-weight: 700; }
#stay-widget .sw-cal-nav { font-size: 1.1rem; padding: 0.25rem 0.6rem; color: var(--sw-accent); }
#stay-widget .sw-cal-nav:hover { color: var(--sw-accent-hover); }
#stay-widget .sw-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; text-align: center; }
#stay-widget .sw-cal-day-name { font-size: 0.7rem; color: var(--sw-text-muted); padding: 0.25rem 0; }
#stay-widget .sw-cal-day {
  background: var(--sw-bg-field); border: 1px solid var(--sw-border-light);
  padding: 0.5rem 0 0.4rem; border-radius: calc(var(--sw-radius) * 0.6);
  font-size: 0.82rem; color: var(--sw-text);
  display: flex; flex-direction: column; align-items: center; gap: 0.15rem; line-height: 1.1;
}
#stay-widget .sw-cal-day-price { font-size: 0.6rem; font-weight: 500; color: var(--sw-text-muted); }
#stay-widget .sw-cal-day.range-end .sw-cal-day-price { color: #fff; opacity: 0.9; }
#stay-widget .sw-cal-day:hover:not(:disabled) { background: var(--sw-bg-hover); }
#stay-widget .sw-cal-day:disabled { color: var(--sw-border); cursor: not-allowed; text-decoration: line-through; background: var(--sw-bg-hover); }
#stay-widget .sw-cal-day.in-range { background: var(--sw-bg-hover); }
#stay-widget .sw-cal-day.range-end { background: var(--sw-accent); border-color: var(--sw-accent); color: #fff; }
#stay-widget .sw-cal-day.empty { visibility: hidden; border: none; }
#stay-widget .sw-cal-hint { font-size: 0.78rem; color: var(--sw-text-muted); margin-top: 0.6rem; text-align: center; }
#stay-widget .sw-summary { background: var(--sw-bg-hover); border-radius: var(--sw-radius); padding: 0.9rem; margin-bottom: 1rem; font-size: 0.9rem; }
#stay-widget .sw-summary-row { display: flex; justify-content: space-between; margin-top: 0.35rem; }
#stay-widget .sw-summary-row:first-child { margin-top: 0; }
#stay-widget .sw-summary-total { font-weight: 700; border-top: 1px solid var(--sw-border-light); margin-top: 0.6rem; padding-top: 0.6rem; }
#stay-widget .sw-card-element { padding: 0.75rem; border: 1px solid var(--sw-border); border-radius: var(--sw-radius); background: var(--sw-bg-field); }
#stay-widget .sw-submit {
  width: 100%; padding: 0.9rem 0; background: var(--sw-accent); color: #fff; border-radius: 999px;
  font-size: 1rem; font-weight: 700; transition: background 0.2s ease;
}
#stay-widget .sw-submit:hover { background: var(--sw-accent-hover); }
#stay-widget .sw-submit:disabled { opacity: 0.5; cursor: not-allowed; }
#stay-widget .sw-error { color: var(--sw-error); font-size: 0.85rem; margin-top: 0.75rem; }
#stay-widget .sw-success { color: var(--sw-success); font-size: 0.9rem; margin-top: 0.75rem; font-weight: 600; }
#stay-widget [hidden] { display: none !important; }
