/* ==========================================================================
   Mongou Vacation Home — shared design system
   Plain CSS, no build step. Mobile-first. One accent color, generous
   whitespace, rounded cards, large photography.
   ========================================================================== */

:root {
  --color-bg: #f7f7f7;
  --color-surface: #ffffff;
  --color-text: #222222;
  --color-text-muted: #717171;
  --color-border: #dddddd;
  --color-accent: #ff385c;
  --color-accent-dark: #e31c5f;
  --color-accent-tint: #fff1f2;
  --color-success: #2f7a4f;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(34, 29, 25, 0.08);
  --shadow-lg: 0 24px 40px rgba(34, 29, 25, 0.12);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  --max-width: 1200px;

  --font-body: "Circular", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  line-height: 1.1;
  margin: 0 0 var(--space-2);
  font-weight: 700;
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 var(--space-2);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  line-height: 1.1;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(255, 56, 92, 0.2);
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  box-shadow: 0 10px 24px rgba(255, 56, 92, 0.24);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  border-color: var(--color-text);
  background: #fff;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---- Site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-1);
  padding-bottom: var(--space-1);
  gap: var(--space-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--color-text);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
}

.site-nav {
  display: none;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.site-nav li {
  display: flex;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  background: rgba(34, 34, 34, 0.04);
}

@media (min-width: 860px) {
  .site-nav {
    display: flex;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  isolation: isolate;
  background: #fff;
}

.hero-media {
  position: relative;
  height: 68vh;
  min-height: 420px;
  max-height: 760px;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--space-4) var(--space-3) var(--space-5);
  color: #fff;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: var(--space-1);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  max-width: 12ch;
  margin-bottom: var(--space-2);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---- Sections ---- */
.section {
  padding: var(--space-6) 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-4);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

/* ---- Gallery ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.gallery-grid figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  border: 1px solid rgba(34, 34, 34, 0.04);
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Amenity chips ---- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

@media (min-width: 640px) {
  .chip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 960px) {
  .chip-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 18px;
  font-weight: 600;
  font-size: 0.95rem;
}

.chip .chip-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
  margin: var(--space-4) 0;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--color-accent);
}

.stat span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ---- Cards (reviews / FAQ) ---- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: none;
}

.review-stars {
  color: var(--color-accent);
  letter-spacing: 0.1em;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.review-quote {
  font-size: 1.02rem;
  margin-bottom: var(--space-2);
}

.review-meta {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  margin-left: var(--space-2);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin-top: var(--space-1);
  color: var(--color-text-muted);
}

/* ---- Footer ---- */
.site-footer {
  background: #1d1d1d;
  color: #f0f0f0;
  padding: var(--space-5) 0 var(--space-4);
}

.site-footer a {
  color: #efe6df;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-accent);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-grid h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b5a89e;
  margin-bottom: var(--space-2);
}

.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: #b5a89e;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: space-between;
}

/* ---- Sticky mobile CTA ---- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-1) var(--space-2);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.sticky-cta .price {
  font-weight: 800;
  font-size: 1.05rem;
}

.sticky-cta .price span {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .sticky-cta {
    display: none;
  }
}

/* ---- Modal (booking widget) ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 15, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-2);
  overflow-y: auto;
  z-index: 100;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  margin: var(--space-4) auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-3) 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text-muted);
  line-height: 1;
  padding: 0.4rem;
}

.modal-body {
  padding: var(--space-2) var(--space-3) var(--space-3);
}

/* Calendar */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.calendar-nav button {
  background: var(--color-accent-tint);
  border: none;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1rem;
  color: var(--color-accent-dark);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.calendar-grid .dow {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding-bottom: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--color-bg);
  font-size: 0.85rem;
  cursor: pointer;
  gap: 1px;
}

.calendar-day .d-price {
  font-size: 0.62rem;
  color: var(--color-text-muted);
}

.calendar-day.is-blocked {
  color: #c9c1b8;
  background: none;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day.is-selected {
  background: var(--color-accent);
  color: #fff;
}

.calendar-day.is-selected .d-price {
  color: rgba(255, 255, 255, 0.85);
}

.calendar-day.is-in-range {
  background: var(--color-accent-tint);
}

.calendar-day:not(.is-blocked):hover {
  border-color: var(--color-accent);
}

.booking-summary {
  margin-top: var(--space-3);
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-2);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--color-text-muted);
}

.summary-row.total {
  color: var(--color-text);
  font-weight: 800;
  font-size: 1.1rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.6rem;
  margin-top: 0.6rem;
}

.field {
  margin-bottom: var(--space-2);
}

.field label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: var(--color-bg);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.form-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-status {
  border-radius: var(--radius-sm);
  padding: var(--space-2);
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: var(--space-2);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.status-success {
  background: #e6f4ea;
  color: var(--color-success);
}

.form-status.status-error {
  background: #fbe9e7;
  color: #b3261e;
}

/* ---- Landing pages (bare, single CTA) ---- */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-hero {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.landing-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 15, 12, 0.35) 0%,
    rgba(20, 15, 12, 0.75) 100%
  );
  z-index: -1;
}

.landing-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  max-width: 440px;
  margin: var(--space-4);
  box-shadow: var(--shadow-lg);
}

.landing-card .promo-badge {
  display: inline-block;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  margin-bottom: var(--space-2);
}

.landing-card h1 {
  font-size: 1.9rem;
}

/* ---- Landing pages: below-the-fold proof section ---- */
.landing-proof {
  background: var(--color-surface);
  padding: var(--space-5) var(--space-3);
}

.landing-proof .container {
  max-width: 960px;
}

.landing-proof h2 {
  text-align: center;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem var(--space-2);
  text-align: center;
  margin: 0 0 var(--space-4);
  font-weight: 700;
  font-size: 1.05rem;
}

.trust-bar .stars {
  color: var(--color-accent);
  letter-spacing: 0.1em;
}

.pain-list,
.solution-list {
  list-style: none;
  margin: var(--space-3) auto;
  padding: 0;
  max-width: 560px;
}

.pain-list li,
.solution-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  padding: 0.45rem 0;
  font-size: 1.05rem;
}

.pain-list li::before {
  content: "\2715";
  color: #b3261e;
  font-weight: 800;
  flex-shrink: 0;
}

.solution-list li::before {
  content: "\2713";
  color: var(--color-success);
  font-weight: 800;
  flex-shrink: 0;
}

.landing-repeat-cta {
  text-align: center;
  margin-top: var(--space-5);
}

/* ---- Admin ---- */
.admin-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-3) var(--space-6);
}

.admin-login {
  max-width: 380px;
  margin: 15vh auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  box-shadow: var(--shadow-md);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-table th,
.price-table td {
  border: 1px solid var(--color-border);
  padding: 0.6rem;
  text-align: center;
}

.price-table input {
  width: 80px;
  padding: 0.4rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.badge-blocked {
  background: #fbe9e7;
  color: #b3261e;
}

.badge-open {
  background: #e6f4ea;
  color: var(--color-success);
}
