/* Rivers Village — public site + backoffice */
:root {
  --forest: #24503b;
  --forest-dark: #183526;
  --amber: #c07a2c;
  --amber-dark: #a5651f;
  --bg: #faf8f3;
  --card: #ffffff;
  --ink: #21281f;
  --muted: #6f7670;
  --line: #e7e2d7;
  --ok: #2f7d4f;
  --warn: #b4791b;
  --danger: #b23b3b;
  --shadow: 0 8px 30px rgba(24, 53, 38, 0.10);
  --radius: 16px;
  font-synthesis: none;
}
* { box-sizing: border-box; }
/* NB: do not add `overflow-x: hidden` here — it silently breaks the sticky header. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: 1.9rem; margin: 0 0 .4rem; }
a { color: inherit; }
img { max-width: 100%; display: block; }
section { padding: 64px 24px; max-width: 1160px; margin: 0 auto; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 28px; gap: 16px; }

/* Buttons */
.btn { border: 0; border-radius: 999px; padding: 13px 22px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: transform .05s, background .2s, box-shadow .2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-dark); }
.btn-ghost { background: #fff; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: #f2f6f3; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--forest); font-weight: 600; cursor: pointer; font-size: .95rem; }
.link-btn:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: rgba(250,248,243,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--forest); font-weight: 700; }
.brand-mark { color: var(--amber); font-size: 1.1rem; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-name { font-family: Georgia, serif; font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.site-nav a:hover { color: var(--forest); }
.nav-admin { color: var(--muted) !important; font-size: .85rem !important; }
.nav-wa { color: var(--forest) !important; font-weight: 600 !important; border: 1px solid var(--forest);
  border-radius: 999px; padding: 5px 14px; line-height: 1; }
.nav-wa:hover { background: var(--forest); color: #fff !important; }

/* Hero */
.hero { position: relative; max-width: none; padding: 0; min-height: 78vh; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,34,24,.35), rgba(16,34,24,.66)); }
.hero-inner { position: relative; z-index: 2; padding: 40px 20px; width: 100%; max-width: 900px; }
.hero-title { font-size: clamp(2.6rem, 6vw, 4.4rem); margin: 0; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-sub { font-size: clamp(1rem, 2.2vw, 1.35rem); opacity: .95; margin: 10px 0 30px; }
.hero-note { margin-top: 16px; font-size: .9rem; opacity: .9; }

/* Search bar */
.searchbar { display: flex; gap: 10px; background: #fff; border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.searchbar .field { display: flex; flex-direction: column; text-align: left; gap: 4px; flex: 1; min-width: 130px; }
.searchbar label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.searchbar input, .searchbar select { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 1rem; color: var(--ink); background: #fff; font-family: inherit; }
.searchbar .search-btn { min-width: 150px; height: 46px; }

/* Results */
.result-grid { display: grid; gap: 18px; }
.result-card { display: grid; grid-template-columns: 260px 1fr auto; gap: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.result-card .thumb { height: 100%; min-height: 190px; background-size: cover; background-position: center; }
.result-card .rc-body { padding: 20px 0; }
.result-card h3 { font-size: 1.4rem; margin: 0 0 2px; }
.result-card .rc-brand { color: var(--amber-dark); font-weight: 600; font-size: .9rem; }
.result-card .rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { background: #f0f3ee; color: var(--forest); border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 500; }
.result-card .rc-price { padding: 20px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 6px; text-align: right; border-left: 1px solid var(--line); background: #fcfbf7; }
.price-big { font-size: 1.7rem; font-weight: 700; font-family: Georgia, serif; }
.price-total { color: var(--muted); font-size: .85rem; }
.avail-pill { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.avail-yes { background: #e7f4ec; color: var(--ok); }
.avail-no { background: #f6e9e9; color: var(--danger); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text p { color: #3a423a; font-size: 1.08rem; }
.about-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about-strip img { border-radius: 12px; height: 150px; width: 100%; object-fit: cover; cursor: pointer; }
.about-strip img:first-child { grid-row: span 2; height: 100%; }

/* Stays */
.stay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.stay-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gallery { position: relative; aspect-ratio: 4 / 3; background: #eee; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.gallery .g-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85); border: 0; width: 34px; height: 34px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.gallery .g-prev { left: 10px; } .gallery .g-next { right: 10px; }
.gallery .g-count { position: absolute; bottom: 10px; right: 10px; background: rgba(16,34,24,.6); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.stay-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.stay-body h3 { font-size: 1.35rem; margin: 0; }
.stay-brand { color: var(--amber-dark); font-weight: 600; font-size: .88rem; margin-top: -4px; }
.stay-body p { color: #3a423a; margin: 0; font-size: .96rem; }
.stay-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; }
.stay-foot .p { font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.stay-foot .p small { font-family: inherit; font-size: .8rem; color: var(--muted); font-weight: 400; }

/* Amenities */
.amenity-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.amenity-grid li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.amenity-grid .em { font-size: 1.35rem; }

/* Two-col */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ticklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.ticklist li { position: relative; padding-left: 28px; color: #3a423a; }
.ticklist li::before { content: "✓"; position: absolute; left: 0; color: var(--forest); font-weight: 700; }

/* Footer */
.site-footer { background: var(--forest-dark); color: #dfe7e0; text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.site-footer .brand-mark { color: var(--amber); }
/* Logo is dark green on transparent — flip it to white for the dark footer. */
.site-footer .brand-logo { height: 40px; filter: brightness(0) invert(1); opacity: .92; }
.foot-contact { display: flex; gap: 18px; justify-content: center; }
.foot-contact a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.45); }
.foot-contact a:hover { border-bottom-color: #fff; }
.site-footer .link-btn { color: #cfe0d4; }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(16,34,24,.55); z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal { background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%; max-height: 92vh; overflow: auto; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal-close { position: absolute; top: 12px; right: 14px; background: #f0efe9; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; z-index: 2; }
.modal-inner { padding: 28px; }
.modal h3 { font-size: 1.5rem; margin: 0 0 4px; }
.modal .sub { color: var(--muted); margin: 0 0 18px; }
.form-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { font-weight: 600; font-size: .9rem; }
.form-row .req { color: var(--danger); }
.form-row input, .form-row textarea, .form-row select { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 1rem; font-family: inherit; }
.form-row textarea { resize: vertical; min-height: 60px; }
.hint { font-size: .8rem; color: var(--muted); }
.summary { background: #f7f6f0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: .95rem; }
.summary .line { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 1.1rem; }
.form-error { background: #f8ebe9; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: .9rem; margin-bottom: 12px; }
.confirm { text-align: center; padding: 10px 4px; }
.confirm .big-check { width: 66px; height: 66px; border-radius: 50%; background: #e7f4ec; color: var(--ok); font-size: 2rem; display: grid; place-items: center; margin: 4px auto 14px; }
.confirm .ref { font-family: Georgia, serif; font-size: 1.6rem; color: var(--forest); letter-spacing: .04em; margin: 8px 0; }
.confirm .assigned { background: #f0f3ee; border-radius: 10px; padding: 12px; margin: 14px 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 80; display: grid; place-items: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; }
.lb-close { position: absolute; top: 18px; right: 22px; background: none; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.15); border: 0; color: #fff; font-size: 2.6rem; width: 56px; height: 56px; border-radius: 50%; cursor: pointer; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* ── Error / offline states ──────────────────────────────────────────────── */
.boot-error { position: sticky; top: 0; z-index: 80; display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center; background: #8d2f2f; color: #fff;
  padding: 12px 18px; font-weight: 500; text-align: center; }
.boot-error a, .boot-error button { color: #fff; font-weight: 700; text-decoration: underline;
  background: none; border: 0; cursor: pointer; font-size: 1rem; font-family: inherit; }
.search-error { margin: 12px auto 0; background: rgba(141,47,47,.92); color: #fff;
  border-radius: 10px; padding: 9px 16px; font-size: .92rem; font-weight: 500;
  max-width: 460px; box-shadow: var(--shadow); }
body.no-scroll { overflow: hidden; }

/* ── Motion: header condense + section reveal ────────────────────────────── */
.site-header { transition: padding .25s ease, box-shadow .25s ease, background .25s ease; }
.site-header.scrolled { padding: 9px 24px; box-shadow: 0 4px 20px rgba(24,53,38,.09); background: rgba(250,248,243,.96); }
.site-header.scrolled .brand-logo { height: 28px; }

.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.7,.3,1); }

.hero-inner > * { animation: heroUp .9s cubic-bezier(.22,.7,.3,1) both; }
.hero-title { animation-delay: .05s; }
.hero-sub { animation-delay: .15s; }
.searchbar { animation-delay: .25s; }
.hero-note { animation-delay: .35s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.in, .hero-inner > * { opacity: 1; transform: none; animation: none; transition: none; }
}

/* ── Polish ──────────────────────────────────────────────────────────────── */
/* A hairline rule under section headings ties the page together. */
.section-head h2, .about-text h2, .two-col h2 { position: relative; padding-bottom: 10px; }
.section-head h2::after, .about-text h2::after, .two-col h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px;
  border-radius: 2px; background: var(--amber); }

.hero::after { background:
  linear-gradient(180deg, rgba(16,34,24,.46) 0%, rgba(16,34,24,.24) 38%, rgba(16,34,24,.72) 100%); }
.hero-title { letter-spacing: -.015em; }

.stay-card, .amenity-grid li, .result-card { transition: transform .25s cubic-bezier(.22,.7,.3,1), box-shadow .25s ease; }
.stay-card:hover, .result-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(24,53,38,.16); }
.amenity-grid li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery img { transition: transform .5s cubic-bezier(.22,.7,.3,1); }
.stay-card:hover .gallery img { transform: scale(1.045); }
.gallery { overflow: hidden; }
.gallery .g-nav { opacity: 0; transition: opacity .2s ease, background .2s ease; }
.stay-card:hover .g-nav, .gallery:focus-within .g-nav { opacity: 1; }
.gallery .g-nav:hover { background: #fff; }
@media (hover: none) { .gallery .g-nav { opacity: 1; } }

.btn:hover { box-shadow: 0 6px 18px rgba(24,53,38,.18); }
.searchbar { transition: box-shadow .3s ease; }
.searchbar:focus-within { box-shadow: 0 14px 40px rgba(16,34,24,.28); }

/* Visible keyboard focus everywhere — the site had none. */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }

/* Responsive */
@media (max-width: 820px) {
  section { padding: 44px 18px; }
  .about, .two-col { grid-template-columns: 1fr; }
  .result-card { grid-template-columns: 1fr; }
  .result-card .thumb { min-height: 200px; }
  .result-card .rc-price { border-left: 0; border-top: 1px solid var(--line); align-items: flex-start; text-align: left; }
  /* Keep WhatsApp reachable on phones, where it matters most. */
  .site-nav a:not(.nav-admin):not(.nav-wa) { display: none; }
  .site-nav { gap: 12px; }
  .nav-wa { padding: 5px 12px; font-size: .9rem !important; }
  .brand-logo { height: 28px; }
  .site-header { padding: 12px 16px; }
}

/* Narrow phones: the header was overflowing and pushing the whole page sideways. */
@media (max-width: 520px) {
  .brand-name { font-size: 1rem; }
  .brand-logo { height: 26px; }
  .nav-admin { display: none; }   /* the host can reach /admin directly */
  section { padding: 40px 16px; }
  .foot-contact { flex-direction: column; gap: 10px; }
  /* The stacked search bar makes the hero content taller than 78vh, which
     clipped the title. Let the hero grow with its content on phones. */
  .hero { min-height: 0; padding: 30px 0 38px; }
  .searchbar { flex-direction: column; align-items: stretch; }
  .form-row.two { grid-template-columns: 1fr; }
}

/* ───────────────────────── BACKOFFICE ───────────────────────── */
.admin-body { background: #f1f3ef; }
.admin-top { background: var(--forest); color: #fff; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.admin-top .brand-name { color: #fff; }
.admin-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.login-card { max-width: 380px; margin: 12vh auto; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; text-align: center; }
.login-card h2 { margin-bottom: 6px; }
.login-card input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; margin: 14px 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 1.9rem; font-weight: 700; font-family: Georgia, serif; }
.stat .l { color: var(--muted); font-size: .85rem; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); }
.filter-btn.active { background: var(--forest); color: #fff; border-color: var(--forest); }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
table.bookings { width: 100%; border-collapse: collapse; min-width: 760px; }
table.bookings th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.bookings td { padding: 13px 14px; border-bottom: 1px solid #f0efe9; font-size: .92rem; vertical-align: top; }
table.bookings tr:last-child td { border-bottom: 0; }
.badge { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: capitalize; }
.badge.pending { background: #fdf1de; color: var(--warn); }
.badge.confirmed { background: #e7f4ec; color: var(--ok); }
.badge.cancelled { background: #f0eeee; color: #8a8a8a; }
.badge.blocked { background: #ece9f6; color: #6a5aa0; }
.phone-links a { display: inline-block; margin-right: 8px; font-weight: 600; text-decoration: none; }
.phone-links .call { color: var(--forest); }
.phone-links .wa { color: #1a8a4f; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; font-size: .8rem; cursor: pointer; font-weight: 600; }
.row-actions .confirm-a { color: var(--ok); border-color: #bfe2cd; }
.row-actions .cancel-a { color: var(--danger); border-color: #ecc9c9; }
.admin-error { color: var(--danger); font-size: .9rem; }
.muted { color: var(--muted); }
.block-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-top: 22px; }
.block-card form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.block-card .field { display: flex; flex-direction: column; gap: 4px; }
.block-card label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.block-card input, .block-card select { border: 1px solid var(--line); border-radius: 8px; padding: 9px; font-size: .92rem; }

/* ── Backoffice: tabs, media library, rooms, offers ───────────────────────── */
.admin-top .brand-logo { height: 30px; filter: brightness(0) invert(1); }

.tabbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px;
  border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tab-btn { background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 18px; font-size: .95rem; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.tab-btn:hover { background: #f2f6f3; }
.tab-btn.active { background: var(--forest); border-color: var(--forest); color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel h3 { margin: 0 0 14px; font-size: 1.2rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h3 { margin: 0; }

.upload-btn { display: inline-flex; align-items: center; cursor: pointer; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.media-item { position: relative; margin: 0; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: #f4f2ec; }
.media-item img, .media-item video { width: 100%; height: 130px; object-fit: cover; display: block; }
.media-item figcaption { display: flex; gap: 4px; padding: 7px; background: #fff; border-top: 1px solid var(--line); }
.media-item figcaption button { flex: 1; border: 1px solid var(--line); background: #fff;
  border-radius: 7px; padding: 5px; cursor: pointer; font-size: .85rem; font-family: inherit; }
.media-item figcaption button:hover:not(:disabled) { background: #f2f6f3; }
.media-item figcaption button:disabled { opacity: .35; cursor: not-allowed; }
.media-item figcaption .del { color: var(--danger); border-color: #f0dcdc; }
.media-item figcaption .del:hover { background: #fbf0f0; }
.cover-badge, .vid-badge { position: absolute; top: 8px; left: 8px; background: var(--forest);
  color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.vid-badge { left: auto; right: 8px; background: rgba(16,34,24,.82); }

.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px; align-items: end; margin-bottom: 18px; }
.grid-form label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem;
  font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.grid-form label.wide { grid-column: 1 / -1; }
.grid-form input, .grid-form select, .grid-form textarea {
  border: 1px solid var(--line); border-radius: 9px; padding: 10px 11px; font-size: .98rem;
  font-family: inherit; color: var(--ink); background: #fff; font-weight: 400; text-transform: none; letter-spacing: 0; }
.grid-form textarea { resize: vertical; }

.units-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.units-table th { text-align: left; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.units-table td { padding: 7px 6px; border-bottom: 1px solid #f2efe7; vertical-align: middle; }
.units-table input[type=text], .units-table input:not([type]), .units-table input[type=number] {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-family: inherit;
  font-size: .92rem; width: 100%; max-width: 220px; }
.btn-sm { border: 1px solid var(--forest); background: #fff; color: var(--forest);
  border-radius: 8px; padding: 6px 12px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; }
.btn-sm:hover { background: var(--forest); color: #fff; }

.add-unit { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--line); }
.add-unit input { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  font-family: inherit; font-size: .92rem; flex: 1; min-width: 120px; }

.badge.live { background: #e7f4ec; color: var(--ok); }
.badge.soon { background: #eef2fb; color: #3b5bb2; }
.badge.done, .badge.paused { background: #f1efe9; color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px);
  background: var(--forest-dark); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; box-shadow: 0 10px 34px rgba(0,0,0,.28); opacity: 0;
  pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 90; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: #8d2f2f; }

@media (max-width: 640px) {
  .grid-form { grid-template-columns: 1fr; }
  .units-table { display: block; overflow-x: auto; white-space: nowrap; }
}

/* ── Offers + media on the public site ───────────────────────────────────── */
.offer-banner { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 16px; margin: 18px auto 0; padding: 12px 22px; border-radius: 999px;
  background: rgba(192,122,44,.95); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  font-size: .96rem; text-align: center; }
.offer-banner strong { font-family: Georgia, serif; font-size: 1.08rem; }
.offer-banner .offer-left { background: rgba(255,255,255,.22); border-radius: 999px;
  padding: 3px 12px; font-weight: 700; font-size: .84rem; white-space: nowrap; }

.was { text-decoration: line-through; color: var(--muted); font-weight: 400;
  font-size: .68em; margin-inline-end: 4px; }
.save-pill { background: #e7f4ec; color: var(--ok); font-weight: 700; font-size: .78rem;
  padding: 3px 10px; border-radius: 999px; }
.stay-desc { color: #556054 !important; font-size: .9rem !important; }

.gallery video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; display: block; }
.gallery-empty { background: #eee; }
.lightbox video { max-width: 92vw; max-height: 88vh; }

/* ── Arabic / RTL ─────────────────────────────────────────────────────────── */
.nav-lang { font-weight: 600 !important; color: var(--forest) !important; }
[dir="rtl"] body { font-family: "SF Arabic", "Geeza Pro", "Noto Naskh Arabic", Tahoma, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: inherit; letter-spacing: 0; }
[dir="rtl"] .searchbar .field { text-align: right; }
[dir="rtl"] .searchbar label { letter-spacing: 0; }
/* The accent rule under headings is anchored to the start edge, not the left. */
[dir="rtl"] .section-head h2::after,
[dir="rtl"] .about-text h2::after,
[dir="rtl"] .two-col h2::after { left: auto; right: 0; }
[dir="rtl"] .ticklist li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .ticklist li::before { left: auto; right: 0; }
[dir="rtl"] .result-card .rc-price { border-left: 0; border-right: 1px solid var(--line); text-align: left; align-items: flex-start; }
[dir="rtl"] .gallery .g-prev { left: auto; right: 10px; }
[dir="rtl"] .gallery .g-next { right: auto; left: 10px; }
[dir="rtl"] .gallery .g-count { right: auto; left: 10px; }
[dir="rtl"] .modal-close { right: auto; left: 14px; }
[dir="rtl"] .price-big small, [dir="rtl"] .stay-foot .p small { direction: rtl; }
/* Prices stay left-to-right so "$124" never renders as "124$". */
[dir="rtl"] .price-big, [dir="rtl"] .stay-foot .p, [dir="rtl"] .price-total,
[dir="rtl"] .summary .line span:last-child { direction: ltr; unicode-bidi: embed; }
[dir="rtl"] .summary .line span:last-child { text-align: left; }
@media (max-width: 820px) {
  [dir="rtl"] .result-card .rc-price { border-right: 0; border-top: 1px solid var(--line); }
}

/* ── Backoffice: email alerts ─────────────────────────────────────────────── */
.hint-line { display: block; font-weight: 400; font-size: .82rem; color: var(--muted);
  text-transform: none; letter-spacing: 0; line-height: 1.5; margin-top: 2px; }
.grid-form label.checkline { flex-direction: row; align-items: center; gap: 10px;
  text-transform: none; letter-spacing: 0; font-size: .98rem; color: var(--ink); font-weight: 500; }
.grid-form label.checkline input { width: 18px; height: 18px; flex: none; }
.last-send { border-radius: 10px; padding: 14px 18px; margin-top: 4px; font-size: .93rem; }
.last-send.ok  { background: #e7f4ec; color: #23613c; }
.last-send.bad { background: #fbf0f0; color: #8d2f2f; }
.plain-list { margin: 0; padding-left: 20px; }
.plain-list li { margin-bottom: 10px; }
