@charset "UTF-8";
/* ==========================================================================
   Wayyak design system
   Brand colours taken from the original template: green #488f3e, ink #1f1f1f,
   warm off-white #f6f6f4. Layout discipline (white space, big photography,
   quiet type) follows the reference marketplace.
   Written with logical properties throughout so the Arabic RTL build is the
   same stylesheet, not a mirrored copy.
   ========================================================================== */

:root {
  /* brand */
  --green-700: #2d5a27;
  --green-600: #366b2f;
  --green-500: #3f7d36;
  --green: #488f3e;
  --green-400: #6aa861;
  --green-100: #e8f2e6;
  --green-50: #f2f8f1;

  /* neutrals */
  --ink: #1f1f1f;
  --ink-2: #4a4a4a;
  --ink-3: #6e6e6e;
  --ink-4: #949494;
  --line: #e4e4e4;
  --line-2: #efefef;
  --cream: #f6f6f4;
  --white: #fff;

  /* status */
  --red: #ed2a21;
  --red-bg: #fdecec;
  --amber: #b4741a;
  --amber-bg: #fdf4e6;
  --blue: #2563eb;

  /* type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;

  /* shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .16);

  --header-h: 76px;
  --wrap: 1280px;
  --gap: 24px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body[dir="rtl"] { font-family: var(--font-ar); }

img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* -------------------------------------------------------------- utility */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; margin-inline: auto; padding-inline: 24px; }
.stack > * + * { margin-block-start: var(--s, 16px); }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wrapflex { display: flex; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.tiny { font-size: .8125rem; }
.strong { font-weight: 600; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.section { padding-block: clamp(48px, 6vw, 88px); }
.section-tight { padding-block: clamp(32px, 4vw, 56px); }
.section-head { margin-block-end: 32px; }
.section-head p { color: var(--ink-3); margin-block-start: 8px; max-width: 60ch; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .9375rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .08s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-500); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: var(--white); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-4); color: var(--ink); }
.btn-quiet { padding-inline: 12px; color: var(--ink-2); }
.btn-quiet:hover { color: var(--green); }
.btn-sm { padding: 8px 16px; font-size: .875rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #c81e16; color: var(--white); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; inset-block-start: 0; z-index: 60;
  background: var(--white); border-block-end: 1px solid var(--line);
}
.site-header .bar {
  height: var(--header-h); display: flex; align-items: center; gap: 24px;
  max-width: var(--wrap); margin-inline: auto; padding-inline: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.02em; flex: none; }
.brand img { height: 30px; width: auto; }
.header-search { flex: 1; display: flex; justify-content: center; min-width: 0; }
.header-nav { display: flex; align-items: center; gap: 4px; flex: none; }
.header-nav a { padding: 10px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: .9375rem; color: var(--ink-2); }
.header-nav a:hover { background: var(--cream); color: var(--ink); }

.lang-switch { display: flex; align-items: center; gap: 2px; font-size: .8125rem; font-weight: 600; }
.lang-switch a { padding: 6px 9px; border-radius: var(--r-sm); color: var(--ink-4); }
.lang-switch a.on { color: var(--ink); background: var(--cream); }

/* compact pill search that lives in the header on inner pages */
.mini-search {
  display: flex; align-items: center; gap: 0;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  box-shadow: var(--shadow-xs); background: var(--white);
  max-width: 440px; width: 100%; transition: box-shadow .2s ease;
}
.mini-search:hover { box-shadow: var(--shadow-sm); }
.mini-search input {
  border: 0; background: none; padding: 11px 18px; width: 100%; min-width: 0;
  font-size: .875rem; border-radius: var(--r-pill);
}
.mini-search input:focus { outline: none; }
.mini-search button {
  flex: none; width: 34px; height: 34px; margin-inline-end: 5px;
  border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center;
}
.mini-search button:hover { background: var(--green-500); }

/* user menu */
.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 5px 5px 14px; background: var(--white);
  transition: box-shadow .15s ease;
}
body[dir="rtl"] .user-btn { padding: 5px 14px 5px 5px; }
.user-btn:hover { box-shadow: var(--shadow-sm); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; font-weight: 700; font-size: .8125rem; flex: none;
}
.avatar-lg { width: 56px; height: 56px; font-size: 1.125rem; }
.menu {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0;
  min-width: 232px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; z-index: 70;
}
.menu[hidden] { display: none; }
.menu a, .menu button {
  display: block; width: 100%; text-align: start;
  padding: 10px 14px; border-radius: var(--r-sm); font-size: .9375rem; color: var(--ink-2);
}
.menu a:hover, .menu button:hover { background: var(--cream); color: var(--ink); }
.menu .sep { height: 1px; background: var(--line); margin: 8px 0; }
.menu .head { padding: 10px 14px 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-4); font-weight: 700; }
.badge-dot {
  display: inline-block; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--green); color: #fff;
  font-size: .6875rem; font-weight: 700; line-height: 18px; text-align: center;
  margin-inline-start: 6px;
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 560px; display: grid; align-items: center; color: var(--white); }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .50) 0%, rgba(0, 0, 0, .28) 45%, rgba(0, 0, 0, .55) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-block: 72px; }
.hero h1 { color: var(--white); max-width: 16ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
.hero .lede { font-size: clamp(1rem, .95rem + .4vw, 1.1875rem); margin-block-start: 16px; max-width: 48ch; color: rgba(255, 255, 255, .92); }

/* the big three-field search bar */
.searchbar {
  margin-block-start: 36px; background: var(--white); color: var(--ink);
  border-radius: var(--r-pill); box-shadow: var(--shadow-lg);
  display: flex; align-items: stretch; max-width: 940px; padding: 6px;
}
.searchbar .field { flex: 1; min-width: 0; position: relative; padding: 10px 24px; border-radius: var(--r-pill); transition: background-color .15s ease; }
.searchbar .field:hover { background: var(--cream); }
.searchbar .field + .field { box-shadow: -1px 0 0 var(--line); }
body[dir="rtl"] .searchbar .field + .field { box-shadow: 1px 0 0 var(--line); }
.searchbar label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .02em; margin-block-end: 2px; }
.searchbar input, .searchbar select {
  border: 0; background: none; width: 100%; padding: 0;
  font-size: .9375rem; color: var(--ink); appearance: none;
}
.searchbar input::placeholder { color: var(--ink-4); }
.searchbar input:focus, .searchbar select:focus { outline: none; }
.searchbar .go {
  flex: none; align-self: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff; display: grid; place-items: center;
  margin-inline: 6px; transition: background-color .15s ease;
}
.searchbar .go:hover { background: var(--green-500); }
.searchbar.inline { box-shadow: var(--shadow-sm); border: 1px solid var(--line); max-width: none; }

@media (max-width: 860px) {
  .searchbar { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .searchbar .field + .field { box-shadow: 0 -1px 0 var(--line); }
  .searchbar .field { border-radius: var(--r); }
  .searchbar .go { width: 100%; border-radius: var(--r-pill); height: 50px; margin: 6px 0 0; }
}

/* ----------------------------------------------------------------- cards */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

.card { display: block; position: relative; }
.card .media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg);
  overflow: hidden; background: var(--cream);
}
.card .media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s cubic-bezier(.2, .6, .2, 1);
}
.card:hover .media img { transform: scale(1.05); }
.card .body { padding-block-start: 12px; }
.card .title { font-weight: 600; font-size: 1rem; line-height: 1.35; }
.card .meta { color: var(--ink-3); font-size: .875rem; margin-block-start: 2px; }
.card .price { margin-block-start: 6px; font-size: .9375rem; }
.card .price b { font-weight: 700; }

.ribbon {
  position: absolute; inset-block-start: 12px; inset-inline-start: 12px; z-index: 2;
  background: var(--white); color: var(--ink);
  border-radius: var(--r-pill); padding: 6px 12px;
  font-size: .75rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.ribbon-green { background: var(--green); color: #fff; }
.ribbon-ink { background: var(--ink); color: #fff; }

.rating { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .875rem; }
.rating svg { width: 14px; height: 14px; fill: var(--ink); flex: none; }
.rating .count { color: var(--ink-3); font-weight: 400; }
.rating-new { color: var(--green); font-weight: 600; font-size: .875rem; }

/* activity tiles on the home page */
.tile { display: block; }
.tile .media { aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; position: relative; background: var(--cream); }
.tile .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .55) 100%); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s cubic-bezier(.2, .6, .2, 1); }
.tile:hover img { transform: scale(1.06); }
.tile .label {
  position: absolute; inset-inline: 16px; inset-block-end: 14px; z-index: 2;
  color: #fff; font-weight: 700; font-size: 1.0625rem; text-shadow: 0 1px 8px rgba(0, 0, 0, .4);
}

/* horizontal scroller for category rows */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-block-end: 8px; margin-inline: -24px; padding-inline: 24px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
.scroller::-webkit-scrollbar { height: 6px; }
.scroller::-webkit-scrollbar-thumb { background: var(--line); border-radius: var(--r-pill); }

/* ------------------------------------------------------------- list page */
.listing-layout { display: grid; grid-template-columns: 290px 1fr; gap: 40px; align-items: start; }
@media (max-width: 1000px) { .listing-layout { grid-template-columns: 1fr; } }

.filters { position: sticky; inset-block-start: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; padding-inline-end: 4px; }
.filters fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.filters legend { font-weight: 700; font-size: .9375rem; margin-block-end: 12px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); flex: none; cursor: pointer; }
.check:hover { color: var(--ink); }
.check .n { margin-inline-start: auto; color: var(--ink-4); font-size: .8125rem; }
.filters-actions { position: sticky; inset-block-end: 0; background: var(--white); padding-block: 12px; border-block-start: 1px solid var(--line); display: flex; gap: 8px; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-block-end: 24px; }
.toolbar .count { color: var(--ink-3); font-size: .9375rem; }
.select {
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 9px 38px 9px 16px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236e6e6e' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center/14px;
  appearance: none; font-size: .875rem; font-weight: 500; cursor: pointer;
}
body[dir="rtl"] .select { padding: 9px 16px 9px 38px; background-position: left 14px center; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 7px 14px; font-size: .875rem; background: var(--white); color: var(--ink-2);
}
.chip:hover { border-color: var(--ink-4); color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .x { font-size: 1rem; line-height: 1; opacity: .6; }

.pagination { display: flex; justify-content: center; gap: 6px; margin-block-start: 48px; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding-inline: 12px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: .9375rem; font-weight: 500; color: var(--ink-2);
}
.pagination a:hover { background: var(--cream); color: var(--ink); }
.pagination .on { background: var(--ink); color: #fff; font-weight: 600; }
.pagination .gap { color: var(--ink-4); }

.empty { text-align: center; padding: 72px 24px; }
.empty h3 { margin-block-end: 8px; }
.empty p { color: var(--ink-3); max-width: 46ch; margin-inline: auto; }

/* ----------------------------------------------------------- detail page */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 7; }
.gallery a { position: relative; overflow: hidden; background: var(--cream); display: block; }
.gallery a:first-child { grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .2s ease; }
.gallery a:hover img { filter: brightness(.94); }
.gallery .more {
  position: absolute; inset-block-end: 14px; inset-inline-end: 14px;
  background: var(--white); border-radius: var(--r-pill); padding: 8px 16px;
  font-size: .8125rem; font-weight: 600; box-shadow: var(--shadow-sm);
}
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; } .gallery a:not(:first-child) { display: none; } .gallery a:first-child { grid-row: auto; } }

.detail-layout { display: grid; grid-template-columns: 1fr 390px; gap: 56px; align-items: start; margin-block-start: 40px; }
@media (max-width: 1000px) { .detail-layout { grid-template-columns: 1fr; gap: 32px; } }

.detail-block { padding-block: 32px; border-block-start: 1px solid var(--line); }
.detail-block:first-child { border-block-start: 0; padding-block-start: 0; }
.detail-block h2 { font-size: 1.375rem; margin-block-end: 16px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.fact { display: flex; gap: 12px; align-items: flex-start; }
.fact svg { width: 22px; height: 22px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.6; margin-block-start: 2px; }
.fact .k { font-size: .8125rem; color: var(--ink-3); }
.fact .v { font-weight: 600; }

.amenity-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; }
.amenity { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.amenity svg { width: 18px; height: 18px; flex: none; stroke: var(--green); fill: none; stroke-width: 2; }

/* sticky booking panel */
.book-panel {
  position: sticky; inset-block-start: calc(var(--header-h) + 24px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 24px; background: var(--white);
}
.book-panel .price-head { display: flex; align-items: baseline; gap: 6px; margin-block-end: 18px; }
.book-panel .price-head .n { font-size: 1.625rem; font-weight: 700; }
.book-panel .price-head .u { color: var(--ink-3); font-size: .9375rem; }
.book-panel .was { color: var(--ink-4); text-decoration: line-through; font-size: 1rem; font-weight: 400; }

.field-group { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-block-end: 14px; }
.field-group .f { padding: 10px 14px; }
.field-group .f + .f { border-block-start: 1px solid var(--line); }
.field-group .split { display: grid; grid-template-columns: 1fr 1fr; }
.field-group .split .f + .f { border-block-start: 0; border-inline-start: 1px solid var(--line); }
.field-group label { display: block; font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); }
.field-group input, .field-group select {
  border: 0; background: none; width: 100%; padding: 2px 0 0;
  font-size: .9375rem; appearance: none;
}
.field-group input:focus, .field-group select:focus { outline: none; }
.field-group select { cursor: pointer; }

.lines { margin-block-start: 20px; }
.lines .line { display: flex; justify-content: space-between; gap: 16px; padding-block: 7px; color: var(--ink-2); font-size: .9375rem; }
.lines .line .u { border-block-end: 1px solid var(--line-2); }
.lines .total { display: flex; justify-content: space-between; gap: 16px; padding-block-start: 14px; margin-block-start: 8px; border-block-start: 1px solid var(--line); font-weight: 700; font-size: 1.0625rem; }
.lines .discount { color: var(--green); }

.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 7px 12px; font-size: .8125rem; font-weight: 500; }
.slot.busy { background: var(--cream); color: var(--ink-4); text-decoration: line-through; }
.slot.free { border-color: var(--green-400); color: var(--green-700); background: var(--green-50); }

/* --------------------------------------------------------------- reviews */
.score-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-block-end: 24px; }
.score-big { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.score-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px 32px; margin-block-end: 28px; }
.score-bar { display: grid; grid-template-columns: 1fr 90px 32px; align-items: center; gap: 12px; font-size: .875rem; }
.score-bar .track { height: 4px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.score-bar .fill { height: 100%; background: var(--ink); border-radius: var(--r-pill); }
.score-bar .v { text-align: end; font-weight: 600; }

.review { padding-block: 24px; border-block-start: 1px solid var(--line-2); }
.review:first-of-type { border-block-start: 0; }
.review .who { display: flex; align-items: center; gap: 12px; margin-block-end: 10px; }
.review .who .n { font-weight: 600; }
.review .who .d { color: var(--ink-4); font-size: .8125rem; }
.review .reply {
  margin-block-start: 14px; padding: 14px 18px; background: var(--cream);
  border-radius: var(--r); font-size: .9375rem;
}
.review .reply .n { font-weight: 600; margin-block-end: 4px; }

.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; fill: var(--line); }
.stars svg.on { fill: var(--ink); }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { padding: 2px; line-height: 0; }
.star-input svg { width: 24px; height: 24px; fill: var(--line); transition: fill .1s ease; }
.star-input button.on svg, .star-input:hover button:hover svg { fill: var(--green); }

/* ----------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.form-row { margin-block-end: 20px; }
.form-row > label, .label {
  display: block; font-weight: 600; font-size: .875rem; margin-block-end: 7px;
}
.form-row .hint { color: var(--ink-3); font-size: .8125rem; margin-block-start: 6px; }
.input, .textarea, select.input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r);
  padding: 12px 14px; font-size: .9375rem; background: var(--white);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px var(--green-100); }
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
select.input { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236e6e6e' d='M4 6l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center/14px; cursor: pointer; }
body[dir="rtl"] select.input { background-position: left 14px center; }
.input-group { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.input-group .addon { padding-inline: 14px; color: var(--ink-3); background: var(--cream); align-self: stretch; display: grid; place-items: center; font-size: .9375rem; }
.input-group .input { border: 0; border-radius: 0; }

.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px; }
.pickbox {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px;
  font-size: .9375rem; transition: border-color .15s ease, background-color .15s ease;
}
.pickbox:hover { border-color: var(--ink-4); }
.pickbox input { width: 18px; height: 18px; accent-color: var(--green); flex: none; }
.pickbox:has(input:checked) { border-color: var(--green); background: var(--green-50); }

.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 44px; height: 26px; border-radius: var(--r-pill); background: var(--line); position: relative; transition: background-color .2s ease; flex: none; cursor: pointer; }
.switch input::after { content: ""; position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; box-shadow: var(--shadow-xs); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
body[dir="rtl"] .switch input:checked::after { transform: translateX(-18px); }

.alert { border-radius: var(--r); padding: 13px 16px; font-size: .9375rem; margin-block-end: 18px; }
.alert-error { background: var(--red-bg); color: #a3160f; }
.alert-ok { background: var(--green-50); color: var(--green-700); }
.alert-info { background: var(--cream); color: var(--ink-2); }
.alert-warn { background: var(--amber-bg); color: var(--amber); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
table.data { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 640px; }
table.data th, table.data td { padding: 14px 16px; text-align: start; vertical-align: middle; }
table.data thead th {
  background: var(--cream); font-size: .75rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-3); font-weight: 700; white-space: nowrap;
}
table.data tbody tr + tr { border-block-start: 1px solid var(--line-2); }
table.data tbody tr:hover { background: #fafafa; }
table.data .num { font-variant-numeric: tabular-nums; }

.pill {
  display: inline-block; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.pill-pending { background: var(--amber-bg); color: var(--amber); }
.pill-confirmed { background: var(--green-100); color: var(--green-700); }
.pill-cancelled { background: var(--cream); color: var(--ink-3); }
.pill-declined { background: var(--red-bg); color: #a3160f; }

/* ------------------------------------------------------------- dashboard */
.dash { display: grid; grid-template-columns: 236px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; gap: 24px; } }
.dash-nav { position: sticky; inset-block-start: calc(var(--header-h) + 24px); }
.dash-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border-radius: var(--r); color: var(--ink-2); font-size: .9375rem; font-weight: 500;
}
.dash-nav a:hover { background: var(--cream); color: var(--ink); }
.dash-nav a.on { background: var(--ink); color: #fff; }
.dash-nav a.on:hover { background: #000; color: #fff; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-block-end: 32px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.stat .k { color: var(--ink-3); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .v { font-size: 1.875rem; font-weight: 700; line-height: 1.1; margin-block-start: 6px; }

/* ----------------------------------------------------------------- modal */
.backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 100;
  display: grid; place-items: center; padding: 24px; overflow-y: auto;
  animation: fade .18s ease;
}
.backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  width: 100%; max-width: 440px; animation: pop .22s cubic-bezier(.2, .7, .3, 1);
}
.modal-wide { max-width: 760px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-block-end: 1px solid var(--line); }
.modal-head h3 { font-size: 1.0625rem; }
.modal-body { padding: 24px; }
.modal-x { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); font-size: 1.25rem; }
.modal-x:hover { background: var(--cream); color: var(--ink); }

.tabs { display: flex; gap: 4px; background: var(--cream); padding: 4px; border-radius: var(--r-pill); margin-block-end: 22px; }
.tabs button { flex: 1; padding: 9px; border-radius: var(--r-pill); font-weight: 600; font-size: .9375rem; color: var(--ink-3); }
.tabs button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--cream); margin-block-start: 80px; padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.site-footer h4 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin-block-end: 14px; font-weight: 700; }
.site-footer li { margin-block-end: 9px; }
.site-footer a { color: var(--ink-2); font-size: .9375rem; }
.site-footer a:hover { color: var(--green); }
.footer-bottom {
  margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--ink-3); font-size: .875rem;
}
.newsletter { display: flex; gap: 8px; margin-block-start: 16px; max-width: 360px; }
.newsletter .input { border-radius: var(--r-pill); }

/* --------------------------------------------------------------- content */
.prose { max-width: 70ch; }
.prose h2 { margin-block: 1.6em .5em; font-size: 1.5rem; }
.prose h3 { margin-block: 1.4em .4em; }
.prose p { margin-block-end: 1.1em; line-height: 1.75; }
.prose ul { list-style: disc; padding-inline-start: 1.3em; margin-block-end: 1.1em; }
.prose li { margin-block-end: .4em; }

.article-head { margin-block-end: 32px; }
.article-head .kicker { color: var(--green); font-weight: 700; font-size: .8125rem; text-transform: uppercase; letter-spacing: .06em; }
.tag { display: inline-block; background: var(--cream); border-radius: var(--r-pill); padding: 5px 13px; font-size: .8125rem; color: var(--ink-2); }
.tag:hover { background: var(--green-100); color: var(--green-700); }

.faq-item { border-block-end: 1px solid var(--line); }
.faq-item summary { padding: 20px 0; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--ink-3); font-size: 1.25rem; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding-block-end: 20px; color: var(--ink-2); max-width: 75ch; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header-search { display: none; }
  .header-nav .hide-sm { display: none; }
  .hero { min-height: 480px; }
}
@media (max-width: 560px) {
  .wrap, .wrap-narrow { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .scroller { grid-auto-columns: minmax(150px, 1fr); margin-inline: -16px; padding-inline: 16px; }
  .site-footer { padding-block: 44px 24px; }
}

@media print {
  .site-header, .site-footer, .book-panel, .filters { display: none; }
}

/* wordmark ---------------------------------------------------------------- */
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.wordmark svg { color: var(--green); flex: none; }
.wordmark-text { font-weight: 700; font-size: 1.3125rem; letter-spacing: -.025em; }
body[dir="rtl"] .wordmark-text { letter-spacing: 0; }
.site-footer .wordmark-text { font-size: 1.1875rem; }
