@font-face {
  font-family: "Hardmix";
  src: url("../fonts/Hardmix.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ariane Coachella";
  src: url("../fonts/ArianeCoachella.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #fff3dc;
  --color-surface: #fffaf0;
  --color-text: #403022;
  --color-muted: #706753;
  --color-border: #e2d4b3;
  --color-primary: #87664c;
  --color-primary-dark: #6a4f3a;
  --color-accent: #706753;
  --color-danger: #b3432f;
  --font-heading: "Hardmix", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --shadow: 0 4px 16px rgba(64, 48, 34, 0.1);
  font-size: 17px; /* base size for body text; this font reads small, so rem sizes scale from 17px */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Ariane Coachella", Georgia, "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nav */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
}
.site-logo span { color: var(--color-primary); }
.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.site-nav a { color: var(--color-text); font-weight: 500; }
.site-nav a:hover { color: var(--color-primary); text-decoration: none; }
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1.0rem;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-secondary:hover { background: var(--color-primary); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-sm { padding: 6px 14px; font-size: 0.9rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: #403022;
  color: #fff;
  padding: 140px 0;
  text-align: center;
}
.hero .container { position: relative; z-index: 2; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease-in-out;
}
.hero-slide.active {
  opacity: 1;
  animation: hero-zoom 7s ease-out forwards;
}
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(64, 48, 34,0.45), rgba(64, 48, 34,0.6));
}
.hero h1, .hero p { text-shadow: 0 2px 12px rgba(0,0,0,0.35); }
@media (prefers-reduced-motion: reduce) {
  .hero-slide.active { animation: none; }
}
@media (max-width: 640px) { .hero { padding: 100px 0; } }
.hero h1 { font-size: 3.6rem; line-height: 1.1; margin: 0 0 12px; }
.hero p { font-size: 1.3rem; max-width: 560px; margin: 0 auto 28px; opacity: 0.95; }

/* Sections */
section { padding: 64px 0; }
.section-title { font-size: 2.8rem; line-height: 1.15; margin-bottom: 8px; }
.section-subtitle { color: var(--color-muted); margin-bottom: 36px; max-width: 620px; }

/* Unit cards */
.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.unit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.unit-card img { height: 220px; object-fit: cover; width: 100%; }
.unit-card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.unit-card h3 { margin: 0; font-size: 1.9rem; line-height: 1.2; }
.unit-card .price { color: var(--color-primary); font-weight: 700; font-size: 1.05rem; }
.unit-card .amenities { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.tag {
  background: #f4e8cb;
  color: var(--color-muted);
  font-size: 0.9rem;
  padding: 3px 10px;
  border-radius: 999px;
}
.unit-card .actions { margin-top: auto; display: flex; gap: 10px; padding-top: 8px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.gallery-grid img { border-radius: var(--radius); height: 180px; object-fit: cover; }

/* Photo carousel — swipeable on touch, with arrows + dots on desktop */
.carousel {
  position: relative;
  margin: 24px auto;
  max-width: 560px;
}
.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.carousel-slide {
  aspect-ratio: 3 / 4;
  background: #f4e8cb;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show the whole photo, never crop */
  display: block;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(64, 48, 34, 0.45);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.carousel-arrow:hover { background: rgba(64, 48, 34, 0.7); }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }
.carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(64, 48, 34, 0.55);
  color: #fff;
  font-size: 14px;
  padding: 3px 9px;
  border-radius: 999px;
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, width 0.15s ease;
}
.carousel-dot.active {
  background: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}
@media (max-width: 640px) {
  .carousel-arrow { display: none; }
}

/* Amenities list */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.amenities-list li {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1.4;
}
.amenity-icon-wrap {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1e2bf;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.amenity-icon { display: block; }
.amenity-label { flex: 1; min-width: 0; }

/* Location section */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 8px;
}
@media (max-width: 640px) { .location-grid { grid-template-columns: 1fr; } }
.location-grid h3 { margin-bottom: 8px; font-size: 1.5rem; }
.location-grid > div + div { margin-top: 0; }

/* Simple bullet list (nearby landmarks, policy details) — lighter weight
   than .amenities-list, which uses bordered cards. */
.plain-list { margin: 0 0 20px; padding-left: 20px; color: var(--color-text); }
.plain-list li { margin-bottom: 6px; }
.plain-list:last-child { margin-bottom: 0; }

/* Fees & Policies */
.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.policy-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.policy-card h3 { margin: 0 0 12px; font-size: 1.5rem; }
.policy-card .plain-list { margin-bottom: 0; }

/* Booking widget */
.booking-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) {
  .booking-layout { grid-template-columns: 1fr; }
}
.card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 16px;
}
.calendar-weekday {
  text-align: center;
  font-size: 0.9rem;
  color: var(--color-muted);
  font-weight: 600;
  padding-bottom: 4px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.0rem;
  cursor: pointer;
  border: 1px solid transparent;
  background: #f4e8cb;
}
.calendar-day.empty { background: transparent; cursor: default; }
.calendar-day.past { color: #c6bda2; background: transparent; cursor: not-allowed; }
.calendar-day.busy { background: #f3d9d2; color: #b3432f; text-decoration: line-through; cursor: not-allowed; }
.calendar-day.selected { background: var(--color-primary); color: #fff; }
.calendar-day.in-range { background: #ead9c9; }
.calendar-day:not(.empty):not(.past):not(.busy):hover { background: #ead9c9; }

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.calendar-nav button {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}
.calendar-legend { display: flex; gap: 16px; margin-top: 14px; font-size: 0.9rem; color: var(--color-muted); }
.legend-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 1.0rem; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1.0rem;
  font-family: inherit;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.summary-line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 1.0rem; }
.summary-line.total { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 12px; font-weight: 700; }

.alert { padding: 12px 16px; border-radius: 8px; font-size: 1.0rem; margin-bottom: 16px; }
.alert-error { background: #fbeae6; color: var(--color-danger); }
.alert-success { background: #e9f1e9; color: var(--color-accent); }
.alert-info { background: #eef2f7; color: #3a5a7a; }

/* Footer */
.site-footer {
  background: #403022;
  color: #e6d9b8;
  padding: 40px 0;
  margin-top: 40px;
  font-size: 1.0rem;
}
.site-footer a { color: #f4e8cb; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }

/* Admin */

/* List/Calendar view switcher */
.view-tabs { display: flex; gap: 8px; margin: 18px 0 4px; border-bottom: 1px solid var(--color-border); }
.view-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 4px;
  margin-bottom: -1px;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
}
.view-tab.active { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.view-tab:hover { color: var(--color-primary-dark); }

/* Bookings list — each booking is a self-contained card (not a table row),
   so nothing needs to scroll sideways or get squeezed into narrow columns,
   on a phone or otherwise. */
.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 16px;
}
.booking-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.booking-card-badges { display: flex; align-items: center; gap: 8px; }
.booking-card-dates { font-size: 1rem; }
.booking-card-arrow { color: var(--color-muted); }
.booking-card-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}
.booking-card-proof { flex-shrink: 0; }

.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 0.9rem; font-weight: 600; background: #f4e8cb; line-height: 1.4; }
.pill-pending { background: #fff1d6; color: #8a6d23; }
.pill-confirmed { background: #dff2e4; color: #1e6b3c; }

/* Guest info cell */
.guest-cell-name { font-weight: 600; margin-bottom: 4px; }
.guest-cell-meta { color: var(--color-muted); font-size: 1.0rem; display: flex; flex-direction: column; gap: 2px; }

/* Payment proof thumbnail as shown on the booking card (smaller than the
   booking-page preview, which reuses .payment-proof-thumb at full size) */
.booking-card .payment-proof-thumb {
  max-width: 100px;
  max-height: 100px;
  margin-top: 0;
  object-fit: cover;
}
.no-proof-note { color: var(--color-muted); font-size: 0.9rem; }

/* Admin calendar view */
.unit-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.unit-tab {
  background: #f4e8cb;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
}
.unit-tab.active { background: var(--color-primary); color: #fff; }
.unit-tab:not(.active):hover { border-color: var(--color-primary); }
.admin-calendar-day { cursor: default; font-weight: 600; }
.admin-calendar-day.past:not(.pending):not(.confirmed) { color: #c6bda2; }
.admin-calendar-day.pending { background: #fff1d6; color: #8a6d23; }
.admin-calendar-day.confirmed { background: #dff2e4; color: #1e6b3c; }
.admin-calendar-day.today-marker { box-shadow: inset 0 0 0 2px var(--color-primary); }
#calendar-view-container .calendar { max-width: 480px; }

.login-box { max-width: 380px; margin: 80px auto; }

.placeholder-note {
  background: #fff6e4;
  border: 1px dashed #e0c896;
  color: #8a6d23;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

/* Required-field marker + inline field errors (booking page) */
.required-mark { color: var(--color-danger); }
.field-error {
  color: var(--color-danger);
  font-size: 0.9rem;
  margin-top: 4px;
  min-height: 0;
}

/* Payment section (booking page) */
.payment-method {
  background: #f4e8cb;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.payment-method strong { display: block; margin-bottom: 6px; }
.payment-method ul { margin: 0; padding-left: 18px; font-size: 1.0rem; }
.payment-qr { display: block; width: 100%; max-width: 220px; margin: 10px 0; border-radius: 8px; border: 1px solid var(--color-border); }
.payment-proof-thumb {
  max-width: 200px;
  max-height: 200px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  object-fit: cover;
}

/* Admin: edit/reschedule panel + contact modal */
.admin-row-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.admin-row-actions .btn { text-align: center; }
/* Save/Close and Send/Cancel pairs (inside the edit panel and contact modal,
   both roomy full-width contexts) sit side by side rather than stacked. */
.admin-row-actions-inline { flex-direction: row; flex-wrap: wrap; }
.admin-row-actions-inline .btn { flex: 0 0 auto; }

/* The edit/reschedule panel renders inside the booking's own card, below the
   action buttons — full card width, not squeezed into a narrow column. */
.admin-edit-panel {
  background: #f4e8cb;
  border-radius: 8px;
  padding: 20px;
  margin-top: 14px;
  max-width: 560px;
}
.admin-edit-panel .field-row { margin-bottom: 10px; }
.admin-edit-panel .field { margin-bottom: 10px; }
.admin-edit-panel .field:last-of-type { margin-bottom: 0; }
.admin-proof-link { display: inline-block; margin-top: 6px; font-size: 1.0rem; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(64, 48, 34, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 20px;
}
.modal-box {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow);
  max-height: 90vh;
  overflow-y: auto;
}

.booking-summary-box {
  background: #f4e8cb;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
}
.booking-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 1.0rem;
}
.booking-summary-row:not(:last-child) { border-bottom: 1px solid var(--color-border); }
.booking-summary-row span { color: var(--color-muted); }
.booking-summary-row strong { text-align: right; word-break: break-word; }

/* House rules */
.house-rules {
  list-style: none;
  padding: 20px 22px;
  margin: 16px 0 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}
.house-rules li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}
.house-rules li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Make form controls and buttons use the site font too */
button, input, select, textarea { font-family: inherit; }

/* Headings and subheaders use Hardmix; everything else uses Realistic Nature.
   Hardmix only has a regular weight, so keep headings at normal weight to
   avoid a smeared artificial bold. */
h1, h2, h3, h4, h5, h6,
.site-logo,
.section-title {
  font-family: var(--font-heading);
  font-weight: 400;
}

/* Bigger headings (Hardmix) + comfortable body text (Ariane Coachella) */
body { line-height: 1.7; letter-spacing: 0.01em; }
h1 { font-size: 3rem; line-height: 1.15; }
h2 { font-size: 2.4rem; line-height: 1.2; }
h3 { font-size: 1.7rem; line-height: 1.25; }
h4 { font-size: 1.35rem; }
p, li { line-height: 1.7; }
.section-subtitle { font-size: 1.1rem; }

@media (max-width: 640px) {
  :root { font-size: 17px; }
  .hero h1 { font-size: 2.6rem; }
  .section-title { font-size: 2.1rem; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  .unit-card h3 { font-size: 1.6rem; }
  .site-logo { font-size: 1.5rem; }
  .location-grid h3, .policy-card h3 { font-size: 1.35rem; }
}

/* Mobile header: logo on its own row, nav links wrap neatly beneath it */
@media (max-width: 640px) {
  .site-header { position: static; }
  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .site-nav { gap: 6px 16px; }
  .site-nav a { font-size: 0.95rem; }
  .site-nav .btn { padding: 6px 16px; font-size: 0.95rem; }
}

/* Logo image in the header */
.site-logo { display: inline-flex; align-items: center; }
.site-logo img { height: 52px; width: auto; max-width: none; }
@media (max-width: 640px) { .site-logo img { height: 44px; } }

/* Admin: same look as the public site, with a brand-colored banner under the header */
.admin-banner {
  background: #706753;
  color: #fff3dc;
  padding: 44px 0;
  text-align: center;
}
.admin-banner h1 { margin: 0 0 6px; color: #fff3dc; }
.admin-banner p { margin: 0; opacity: 0.85; }
@media (max-width: 640px) { .admin-banner { padding: 32px 0; text-align: left; } }

/* ---- Brand board: dark-brown header/footer, cream pages, Hardmix headings ---- */
:root { --brand-dark: #403022; --brand-cream: #fff3dc; --brand-sand: #c6bda2; --brand-olive: #706753; --brand-clay: #87664c; }

.site-header { background: var(--brand-dark); border-bottom: none; }
.site-nav a { color: var(--brand-cream); }
.site-nav a:hover { color: var(--brand-sand); }
.site-nav .btn { background: var(--brand-cream); color: var(--brand-dark); }
.site-nav .btn:hover { background: var(--brand-sand); color: var(--brand-dark); }
.site-nav .btn-secondary { background: transparent; color: var(--brand-cream); border: 1.5px solid var(--brand-cream); }
.site-nav .btn-secondary:hover { background: var(--brand-cream); color: var(--brand-dark); }

.site-footer { background: var(--brand-dark); color: var(--brand-sand); }
.site-footer a { color: var(--brand-cream); }
.site-footer strong { color: var(--brand-cream); font-family: var(--font-heading); font-weight: 400; font-size: 1.3rem; }

.section-title { color: var(--brand-dark); }
.hero::after { background: linear-gradient(180deg, rgba(64,48,34,0.5), rgba(64,48,34,0.68)); }
.hero h1 { color: var(--brand-cream); }
.hero .btn { background: var(--brand-cream); color: var(--brand-dark); }
.hero .btn:hover { background: var(--brand-sand); }

.unit-card, .policy-card, .card { border-color: var(--color-border); }
.amenity-icon-wrap { background: #f1e2bf; color: var(--brand-clay); }
.admin-banner { background: var(--brand-olive); color: var(--brand-cream); }
.carousel-slide { background: #f1e2bf; }
.carousel-dot.active { background: var(--brand-clay); }

/* About section: leaf-shadow photo background with a dark overlay for readable cream text */
.about-section {
  position: relative;
  background:
    linear-gradient(rgba(48, 38, 26, 0.56), rgba(48, 38, 26, 0.56)),
    url("../images/about-bg.jpg") center / cover no-repeat;
  color: var(--brand-cream);
  padding: 96px 0;
}
.about-section .section-title,
.about-section .section-subtitle,
.about-section p { color: var(--brand-cream); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.about-section .section-subtitle { opacity: 1; }
.about-section p { font-size: 1.1rem; max-width: 760px; }
@media (max-width: 640px) { .about-section { padding: 64px 0; } }

/* Location section: green glazed-tile photo background with a dark overlay for readable cream text */
.location-section {
  background:
    linear-gradient(rgba(40, 36, 24, 0.6), rgba(40, 36, 24, 0.6)),
    url("../images/location-bg.jpg") center / cover no-repeat;
  color: var(--brand-cream);
  padding: 96px 0;
}
.location-section .section-title,
.location-section .section-subtitle,
.location-section h3,
.location-section p,
.location-section li { color: var(--brand-cream); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.location-section .plain-list li::marker { color: var(--brand-sand); }
.location-section a { color: var(--brand-cream); text-decoration: underline; }
@media (max-width: 640px) { .location-section { padding: 64px 0; } }

/* ---- Burger nav: Book Now + burger on the left, logo on the right ---- */
.site-header { position: sticky; top: 0; }
.site-header .container { position: relative; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.site-header .site-nav { display: flex; flex-wrap: nowrap; gap: 12px; align-items: center; }
.nav-toggle {
  width: 46px; height: 42px; padding: 0; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1.5px solid var(--brand-cream);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand-cream); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-toggle:hover { background: rgba(255,243,220,0.12); }
.nav-menu {
  display: none; position: absolute; left: 24px; top: calc(100% - 4px); z-index: 20;
  min-width: 220px; flex-direction: column; padding: 8px;
  background: var(--brand-dark); border: 1px solid rgba(255,243,220,0.25); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}
.nav-menu.open { display: flex; }
.nav-menu a { padding: 12px 16px; border-radius: 8px; font-size: 1.05rem; color: var(--brand-cream); }
.nav-menu a:hover { background: rgba(255,243,220,0.12); color: var(--brand-cream); }
@media (max-width: 640px) {
  .site-header { position: sticky; }
  .site-header .container { flex-direction: row; align-items: center; padding-top: 10px; padding-bottom: 10px; }
  .site-header .site-nav .btn { padding: 8px 16px; font-size: 0.95rem; }
  .nav-menu { left: 16px; right: 16px; }
}

/* Nav on the right: logo left, [Book Now][burger] right */
.site-header .site-logo { order: 1; }
.site-header .site-nav { order: 2; }
.nav-menu { left: auto; right: 24px; }
@media (max-width: 640px) { .nav-menu { left: 16px; right: 16px; } }

/* Designer credit bar */
.credit-bar { background: var(--brand-cream); border-top: 1px solid rgba(64,48,34,0.15); }
.credit-inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.credit-logo { display: inline-flex; transition: transform .2s ease; }
.credit-logo:hover { transform: scale(1.06) rotate(-3deg); }
.credit-logo img { height: 44px; width: auto; display: block; }
.credit-bar p { margin: 0; color: var(--brand-dark); font-size: 1rem; }
@media (max-width: 640px) { .credit-logo img { height: 38px; } .credit-bar p { font-size: 0.95rem; } }

/* Promo code */
.promo-row { display: flex; gap: 10px; align-items: stretch; }
.promo-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.promo-row .btn { padding: 10px 22px; white-space: nowrap; }
.promo-msg { min-height: 1.2em; margin-top: 6px; font-size: 0.92rem; }
.promo-msg-ok { color: #4f6b3c; }
.promo-msg-error { color: #a33a2a; }
.summary-discount { color: #4f6b3c; }

/* Admin: promo codes */
.promo-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; margin: 16px 0 8px; }
.promo-form .field { margin: 0; }
.promo-form .full { grid-column: 1 / -1; }
.promo-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); margin-bottom: 12px; }
.promo-code-name { font-family: var(--font-heading); font-size: 1.4rem; letter-spacing: 0.04em; margin: 0 8px 0 0; }
.promo-rules { color: var(--color-muted); font-size: 0.92rem; margin-top: 4px; }
.pill-paused { background: #e5dfd0; color: #706753; }
@media (max-width: 640px) { .promo-form { grid-template-columns: 1fr; } .promo-row .btn { padding: 10px 16px; } }

/* Admin: social post maker */
.pe-templates { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 22px; }
.pe-tpl { display: flex; flex-direction: column; gap: 8px; width: 150px; padding: 8px; border: 2px solid var(--color-border); border-radius: 12px; background: var(--color-surface); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.pe-tpl.active { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(135,102,76,0.2); }
.pe-tpl-thumb { display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: repeating-conic-gradient(#e9e2d0 0% 25%, #f7f1e2 0% 50%) 50% / 16px 16px; }
.pe-tpl-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pe-tpl-name { font-size: 0.92rem; line-height: 1.25; }
.pe-layout { display: grid; grid-template-columns: minmax(280px, 460px) 1fr; gap: 28px; align-items: start; }
.pe-stage { position: sticky; top: 12px; }
.pe-sizes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pe-sizes .view-tab { border: 1.5px solid var(--color-border); border-radius: 999px; padding: 6px 14px; margin: 0; }
.pe-sizes .view-tab.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pe-canvas-wrap { background: repeating-conic-gradient(#e9e2d0 0% 25%, #f7f1e2 0% 50%) 50% / 16px 16px; border-radius: 10px; padding: 10px; }
#pe-canvas { display: block; width: 100%; height: auto; border-radius: 4px; box-shadow: 0 4px 18px rgba(64,48,34,0.18); cursor: pointer; touch-action: pan-y; background: #fff; }
#pe-canvas.pe-grabbing { cursor: grabbing; }
.pe-hint { color: var(--color-muted); font-size: 0.9rem; margin: 8px 0 0; }
.pe-slot { border: 1.5px solid var(--color-border); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--color-surface); cursor: pointer; }
.pe-slot.active { border-color: var(--color-primary); }
.pe-slot-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pe-slot-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; background: #efe4c9; color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; flex: none; }
.pe-slot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pe-slot-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.pe-zoom { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.9rem; color: var(--color-muted); }
.pe-zoom input { flex: 1; accent-color: var(--color-primary); }
.pe-download { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-top: 18px; }
.pe-download .field { flex: 1; min-width: 180px; }
.pe-note { margin-top: 10px; color: var(--color-muted); font-size: 0.92rem; min-height: 1.2em; }
.pe-site-modal { max-width: 640px; }
.pe-site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; max-height: 55vh; overflow: auto; }
.pe-site-photo { padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 1; }
.pe-site-photo:hover { border-color: var(--color-primary); }
.pe-site-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .pe-layout { grid-template-columns: 1fr; } .pe-stage { position: static; } }

/* Location maps */
.map-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.map-card { background: rgba(255, 250, 240, 0.1); border: 1px solid rgba(255, 243, 220, 0.3); border-radius: 16px; padding: 18px; }
.map-card h3 { margin: 0 0 4px; }
.map-card .map-address { margin: 0 0 12px; font-size: 0.95rem; }
.map-frame { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 14px; background: #efe4c9; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-section .map-card a.btn { text-decoration: none; color: var(--brand-cream); border-color: var(--brand-cream); }
@media (max-width: 640px) { .map-grid { grid-template-columns: 1fr; } }
