/*
 * tasti · Ember Light theme for the guest site (tasti.co.za). Loaded LAST, after Bootstrap and the old style sheets,
 * so every page picks up the brand: plum-ink for structure, ember orange only for actions, saffron for small
 * highlights, green only for "available" / OK. Same tokens as the restaurant dashboard and Tasti AI.
 */
:root {
  --t-ink: #1d1726;          /* text, header, footer */
  --t-plum: #2b2238;         /* dark surfaces */
  --t-ember: #ff5a1f;        /* actions: Book, Search, Save */
  --t-ember-dark: #e04812;
  --t-ember-soft: #fff1ea;
  --t-saffron: #ffb627;      /* small highlights */
  --t-paper: #fbfaf7;        /* page background */
  --t-white: #ffffff;
  --t-line: #ece7e2;
  --t-mute: #6f6878;
  --t-fresh: #1f8a5b;        /* available / OK - meaning only, never buttons */
  --t-fresh-bg: #e7f5ee;
  --t-amber: #b86e00; --t-amber-bg: #fff3d9;
  --t-red: #c5321f; --t-red-bg: #fde9e5;
  --t-radius: 12px;
  --t-radius-lg: 18px;
  --t-shadow: 0 1px 2px rgba(29, 23, 38, .05), 0 6px 20px rgba(29, 23, 38, .06);
  --t-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --t-font-head: "Bricolage Grotesque", "Inter", system-ui, sans-serif;

  /* Bootstrap 5 hooks */
  --bs-primary: #ff5a1f; --bs-primary-rgb: 255, 90, 31;
  --bs-dark: #1d1726; --bs-dark-rgb: 29, 23, 38;
  --bs-body-color: #1d1726; --bs-body-bg: #fbfaf7;
  --bs-body-font-family: var(--t-font);
  --bs-link-color: #d9480f; --bs-link-hover-color: #b23a0c;
  --primary: #ff5a1f; --dark: #1d1726; --light: #fbfaf7;
}

html, body { background: var(--t-paper) !important; color: var(--t-ink); }
body { font-family: var(--t-font) !important; font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .display-1, .display-2, .display-3, .display-4 {
  font-family: var(--t-font-head) !important; color: inherit; letter-spacing: -0.015em; text-wrap: balance;
}
a { color: #d9480f; }
a:hover { color: #b23a0c; }
::selection { background: rgba(255, 90, 31, .22); }
:focus-visible { outline: 3px solid rgba(255, 90, 31, .45); outline-offset: 2px; }

/* colour utilities used all over the old pages */
.text-primary { color: var(--t-ember) !important; }
.bg-primary { background-color: var(--t-ember) !important; }
.bg-dark { background-color: var(--t-ink) !important; }
.text-dark { color: var(--t-ink) !important; }
.border-primary { border-color: var(--t-ember) !important; }
.text-muted, .text-body-secondary { color: var(--t-mute) !important; }

/* buttons: ember = do this; ink = secondary strong; outline = quiet */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: 0; text-transform: none !important; box-shadow: none !important; }
.btn-primary, .btn-primary:disabled { background: var(--t-ember) !important; border-color: var(--t-ember) !important; color: #fff !important; }
.btn-primary:hover, .btn-primary:focus { background: var(--t-ember-dark) !important; border-color: var(--t-ember-dark) !important; }
.btn-dark { background: var(--t-ink) !important; border-color: var(--t-ink) !important; }
.btn-outline-primary { color: #d9480f !important; border-color: #f3c3ae !important; background: #fff !important; }
.btn-outline-primary:hover { background: var(--t-ember-soft) !important; }
.btn-light { background: #fff !important; border-color: var(--t-line) !important; color: var(--t-ink) !important; }
.rounded-pill.btn { border-radius: 999px !important; }

/* forms */
.form-control, .form-select { border-radius: 10px; border-color: #e2dcd6; color: var(--t-ink); }
.form-control:focus, .form-select:focus { border-color: var(--t-ember); box-shadow: 0 0 0 .2rem rgba(255, 90, 31, .15); }
.form-check-input:checked { background-color: var(--t-ember); border-color: var(--t-ember); }
.input-group-text { border-color: #e2dcd6; }

/* cards and panels from the old pages */
.card, .room-item, .shadow.rounded-4 { border-radius: var(--t-radius-lg) !important; border: 1px solid var(--t-line) !important; box-shadow: var(--t-shadow) !important; }
.section-title { font-family: var(--t-font) !important; font-size: 12px !important; letter-spacing: .1em; color: #d9480f !important; font-weight: 700; }
.section-title::before, .section-title::after { display: none !important; }
.modal-content { border-radius: var(--t-radius-lg); border: 0; }
.nav-tabs .nav-link.active, .nav-pills .nav-link.active { color: #d9480f; border-color: var(--t-ember); }
.badge.bg-primary { background: var(--t-ember-soft) !important; color: #c13d0c !important; }
.fa-star.text-primary { color: var(--t-saffron) !important; }

/* status pills (shared with the dashboard) */
.t-pill { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 3px 10px; font: 600 12px/1.4 var(--t-font); }
.t-pill.ok { background: var(--t-fresh-bg); color: var(--t-fresh); }
.t-pill.watch { background: var(--t-amber-bg); color: var(--t-amber); }
.t-pill.bad { background: var(--t-red-bg); color: var(--t-red); }

/* booking time chips: green = free */
.t-slot { display: inline-block; border-radius: 8px; padding: 5px 10px; font: 600 13px/1.3 var(--t-font); font-variant-numeric: tabular-nums;
  background: var(--t-fresh-bg); color: var(--t-fresh); text-decoration: none; border: 1px solid transparent; }
a.t-slot:hover { border-color: var(--t-fresh); color: var(--t-fresh); }

/* layout helpers for the new pages */
.t-wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.t-section { padding-block: 40px; }
.t-eyebrow { font: 700 12px/1.2 var(--t-font); letter-spacing: .1em; text-transform: uppercase; color: #d9480f; }
.t-h2 { font: 800 clamp(22px, 2.6vw, 30px)/1.15 var(--t-font-head); margin: 4px 0 0; letter-spacing: -0.02em; }
.t-lede { color: var(--t-mute); margin: 6px 0 0; max-width: 62ch; }

/* the old pages' "page-header" photo bands: keep them but make the overlay plum, not navy */
.page-header-inner { background: linear-gradient(180deg, rgba(29, 23, 38, .55), rgba(29, 23, 38, .75)) !important; }

/* ---------- header ---------- */
.t-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--t-line); }
.t-header-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.t-header-brand { text-decoration: none; display: inline-flex; }
.t-header-nav { display: flex; gap: 4px; margin-right: auto; }
.t-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.t-navlink { background: none; border: 0; color: var(--t-ink) !important; text-decoration: none; font: 600 14.5px/1 var(--t-font);
  padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.t-navlink:hover { background: #f4f1ee; }
.t-signup { padding: 9px 16px; font-size: 14.5px; }
.t-burger { display: none; background: none; border: 1px solid var(--t-line); border-radius: 10px; width: 42px; height: 42px;
  color: var(--t-ink); font-size: 17px; }
.t-account { position: relative; }
.t-account-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--t-line); border-radius: 999px;
  padding: 4px 12px 4px 4px; font: 600 14px/1 var(--t-font); color: var(--t-ink); }
.t-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--t-plum); color: #fff; display: grid; place-items: center;
  font: 700 13px/1 var(--t-font); }
.t-account-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: #fff; border: 1px solid var(--t-line);
  border-radius: 14px; box-shadow: 0 12px 40px rgba(29, 23, 38, .14); padding: 6px; }
.t-menu-head { padding: 10px 12px; font-size: 13px; color: var(--t-mute); border-bottom: 1px solid var(--t-line); margin-bottom: 4px; }
.t-menu-head strong { color: var(--t-ink); display: block; }
.t-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: 9px; background: none; border: 0;
  color: var(--t-ink) !important; text-decoration: none; font: 500 14px/1.2 var(--t-font); text-align: left; }
.t-menu-item i { width: 16px; color: var(--t-mute); }
.t-menu-item:hover { background: #f6f3f0; }
.t-menu-out, .t-menu-out i { color: var(--t-red) !important; }
.t-mobile-menu { border-top: 1px solid var(--t-line); background: #fff; padding: 8px 0 14px; }
.t-mobile-link { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; text-align: left;
  padding: 12px 4px; color: var(--t-ink) !important; text-decoration: none; font: 600 16px/1.2 var(--t-font); border-bottom: 1px solid #f3efeb; }
.t-mobile-link i { width: 18px; color: var(--t-mute); }
.t-mobile-sep { padding: 16px 4px 4px; font-size: 12.5px; color: var(--t-mute); }
@media (max-width: 860px) {
  .t-header-nav, .t-hide-sm { display: none; }
  .t-burger { display: inline-grid; place-items: center; }
  .t-account-name { display: none; }
}

/* ---------- footer ---------- */
.t-footer { background: var(--t-ink); color: rgba(255, 255, 255, .72); margin-top: 64px; padding: 48px 0 24px; font-size: 14.5px; }
.t-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.t-footer-brand p { margin: 14px 0 18px; max-width: 34ch; }
.t-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.t-badges img { height: 40px; width: auto; display: block; }
.t-footer-h { font: 700 12px/1 var(--t-font) !important; text-transform: uppercase; letter-spacing: .1em; color: var(--t-saffron); margin: 6px 0 14px; }
.t-footer a, .t-footer button { display: block; background: none; border: 0; padding: 4px 0; color: rgba(255, 255, 255, .82); text-decoration: none; text-align: left; font: inherit; }
.t-footer a:hover, .t-footer button:hover { color: #fff; }
.t-footer-base { margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 13px; }
.t-footer-legal { display: flex; gap: 18px; }
.t-footer-legal a { display: inline; padding: 0; }
@media (max-width: 860px) { .t-footer-grid { grid-template-columns: 1fr 1fr; } .t-footer-brand { grid-column: 1 / -1; } }

/* ---------- homepage ---------- */
.t-home { background: var(--t-paper); }
.t-hero { padding: 48px 0 24px; background: radial-gradient(900px 400px at 85% 0%, #fff0e6 0%, rgba(251, 250, 247, 0) 70%); }
.t-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.t-hero-title { font: 800 clamp(38px, 5.6vw, 64px)/1.02 var(--t-font-head) !important; letter-spacing: -0.035em; margin: 10px 0 14px; color: var(--t-ink); }
.t-underline { background: linear-gradient(90deg, var(--t-saffron), var(--t-ember)) no-repeat 0 92% / 100% .16em; padding-bottom: .02em; }
.t-hero-lede { font-size: 17.5px; color: var(--t-mute); max-width: 46ch; margin: 0 0 24px; }
.t-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; background: #fff; border: 1px solid var(--t-line);
  border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(29, 23, 38, .08); }
.t-search-field { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 11px; margin: 0; min-width: 0; }
.t-search-field + .t-search-field { border-left: 1px solid var(--t-line); }
.t-search-field > i { color: var(--t-ember); font-size: 15px; }
.t-search-input { border: 0 !important; outline: 0; background: transparent; width: 100%; height: 48px; font: 500 15.5px/1 var(--t-font); color: var(--t-ink); box-shadow: none !important; }
.t-search-input::placeholder { color: #9a93a3; }
.t-search-btn { padding: 0 22px; border-radius: 11px !important; font-size: 15.5px; }
.t-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.t-chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--t-line); color: var(--t-ink) !important;
  text-decoration: none; border-radius: 999px; padding: 7px 14px; font: 600 13.5px/1 var(--t-font); }
.t-chip i { color: var(--t-mute); }
.t-chip:hover { border-color: #f3c3ae; background: var(--t-ember-soft); }
.t-hero-photo { position: relative; }
.t-hero-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: 26px; display: block; box-shadow: 0 24px 60px rgba(29, 23, 38, .18); }
.t-hero-note { position: absolute; left: -18px; bottom: 28px; background: #fff; border-radius: 14px; padding: 12px 16px; font: 600 14px/1.2 var(--t-font);
  box-shadow: 0 12px 30px rgba(29, 23, 38, .16); display: flex; align-items: center; gap: 10px; }
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--t-fresh); box-shadow: 0 0 0 4px var(--t-fresh-bg); }

.t-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.t-more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.t-tonight-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 16px; overflow-x: auto; margin-top: 18px;
  padding-bottom: 6px; scroll-snap-type: x mandatory; }
.t-tonight-card { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius-lg); overflow: hidden; scroll-snap-align: start;
  box-shadow: var(--t-shadow); min-height: 290px; }
.t-tonight-img { position: relative; display: block; }
.t-tonight-img img { width: 100%; height: 150px; object-fit: cover; display: block; }
.t-rating { position: absolute; top: 10px; left: 10px; background: rgba(29, 23, 38, .82); color: #fff; border-radius: 999px; padding: 4px 9px;
  font: 700 12.5px/1 var(--t-font); }
.t-rating i { color: var(--t-saffron); }
.t-tonight-body { padding: 14px 16px 16px; }
.t-tonight-name { display: block; font: 700 17px/1.25 var(--t-font-head); color: var(--t-ink) !important; text-decoration: none; }
.t-tonight-where { font-size: 13.5px; color: var(--t-mute); margin: 3px 0 12px; }
.t-slots { display: flex; flex-wrap: wrap; gap: 6px; }
.t-skeleton { background: linear-gradient(90deg, #f4f1ee 0%, #fbfaf7 50%, #f4f1ee 100%) 0 0 / 200% 100%; animation: t-shimmer 1.3s infinite linear; }
@keyframes t-shimmer { to { background-position: -200% 0; } }

.t-photo-card { position: relative; display: block; overflow: hidden; border-radius: var(--t-radius-lg); color: #fff !important; text-decoration: none; }
.t-photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.t-photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 23, 38, 0) 40%, rgba(29, 23, 38, .78)); }
.t-photo-card:hover img { transform: scale(1.04); }
.t-photo-label { position: absolute; left: 16px; bottom: 14px; right: 16px; z-index: 1; font: 700 19px/1.15 var(--t-font-head); }
.t-photo-label small { display: block; font: 500 13px/1.3 var(--t-font); opacity: .85; margin-top: 3px; }
.t-type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.t-type-card { aspect-ratio: 16 / 10; }
.t-city-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.t-city-card { aspect-ratio: 4 / 3; }
.t-cuisine-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 18px; }
.t-cuisine { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; color: var(--t-ink) !important;
  font: 600 14px/1.25 var(--t-font); text-align: center; }
.t-cuisine img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--t-shadow); transition: transform .3s; }
.t-cuisine:hover img { transform: translateY(-3px); }
.t-owner-band { background: var(--t-plum); color: rgba(255, 255, 255, .8); border-radius: 24px; padding: 36px 40px; display: flex; gap: 24px;
  align-items: center; justify-content: space-between; flex-wrap: wrap;
  background-image: radial-gradient(500px 220px at 100% 0%, rgba(255, 90, 31, .35), transparent 70%); }
.t-owner-band .t-h2 { color: #fff; }
.t-owner-band p { margin: 8px 0 0; max-width: 58ch; }

@media (max-width: 1100px) {
  .t-hero-grid { grid-template-columns: 1.25fr .75fr; gap: 32px; }
}
@media (max-width: 960px) {
  .t-hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .t-hero-photo { display: none; }
  .t-city-grid { grid-template-columns: repeat(2, 1fr); }
  .t-cuisine-row { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .t-hero { padding-top: 28px; }
  .t-search { grid-template-columns: 1fr; }
  .t-search-field + .t-search-field { border-left: 0; border-top: 1px solid var(--t-line); }
  .t-search-btn { height: 48px; }
  .t-type-grid { grid-template-columns: 1fr; }
  .t-type-card { aspect-ratio: 16 / 7; }
  .t-section { padding-block: 28px; }
  .t-owner-band { padding: 26px 22px; }
}

/* ---------- listing card (search, favourites, cities) ---------- */
.t-card { background: #fff; border: 1px solid var(--t-line); border-radius: var(--t-radius-lg); overflow: hidden; box-shadow: var(--t-shadow);
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.t-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(29, 23, 38, .05), 0 14px 34px rgba(29, 23, 38, .1); }
.t-card-link { display: flex; flex-direction: column; flex: 1; color: var(--t-ink) !important; text-decoration: none; }
.t-card-img { position: relative; }
.t-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.t-card-body { padding: 14px 16px 6px; }
.t-card-cat { font: 700 11.5px/1.2 var(--t-font); letter-spacing: .08em; text-transform: uppercase; color: #d9480f; margin-bottom: 4px; }
.t-card-name { font: 700 18px/1.25 var(--t-font-head) !important; margin: 0 0 6px; }
.t-card-place { font-size: 13.5px; color: var(--t-mute); margin: 0; }
.t-card-place i { color: #b4adbb; margin-right: 3px; }
.t-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 16px 16px; margin-top: auto; }

.t-card-foot .btn { white-space: nowrap; }

/* old pages' "Search <ORANGE CAPS>" headings -> one calm ink heading */
:is(h1, h2, h3, .h1, .h2, .h3) .text-primary.text-uppercase { color: inherit !important; text-transform: none !important; }
:is(h1, h2, .h1, .h2):not(.t-hero-title) { font-weight: 800; letter-spacing: -0.025em; }

/* ---------- restaurant page ---------- */
.t-section-h { font: 700 18px/1.25 var(--t-font-head) !important; color: var(--t-ink) !important; text-transform: none !important; letter-spacing: -0.01em; }
.restaurant-detail-tablist { border-bottom: 1px solid var(--t-line); margin-bottom: 18px; gap: 4px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* pale grey/blue page bands from the old pages -> paper */
.bg-light { background-color: var(--t-paper) !important; }

/* for-restaurants side panel */
.t-owner-panel { height: 100%; min-height: 420px; background: var(--t-plum); color: rgba(255, 255, 255, .8); padding: 44px 36px;
  background-image: radial-gradient(420px 260px at 0% 100%, rgba(255, 90, 31, .35), transparent 70%); }
.t-owner-panel h2 { color: #fff; font: 800 26px/1.15 var(--t-font-head) !important; margin: 26px 0 18px; }
.t-owner-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.t-owner-panel li { display: flex; gap: 12px; align-items: flex-start; }
.t-owner-panel li i { color: var(--t-saffron); margin-top: 4px; width: 18px; }

/* help popup */
.t-help-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px;
  background: var(--t-ember-soft); color: var(--t-ember); font-size: 26px; }
