/* ==========================================================================
   Zafari — storefront styles
   Design tokens lifted from the Turie travel template.
   ========================================================================== */

:root {
   --brand: #FD4621;
   --brand-dark: #e13913;
   --brand-soft: #fff1ed;
   --ink: #071516;
   --ink-soft: #16292b;
   --muted: #5f556a;
   --muted-2: #a29f9f;
   --white: #ffffff;
   --surface: #f7f9f9;
   --surface-2: #f2f5f5;
   --mint: #EBF8EB;
   --yellow: #ffa33b;
   --red: #E52700;
   --green: #1e9e5a;
   --border: rgba(17, 17, 17, 0.08);
   --border-strong: rgba(17, 17, 17, 0.14);

   --ff-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
   --ff-heading: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
   --ff-num: 'Inter', system-ui, sans-serif;
   --ff-script: 'Dancing Script', cursive;
   --ff-serif: 'Marcellus', Georgia, serif;

   --radius: 16px;
   --radius-lg: 24px;
   --radius-pill: 999px;
   --shadow-sm: 0 4px 16px rgba(7, 21, 22, 0.06);
   --shadow: 0 18px 40px rgba(7, 21, 22, 0.10);
   --shadow-lg: 0 30px 70px rgba(7, 21, 22, 0.16);
   --container: 1290px;
   --header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
   margin: 0;
   font-family: var(--ff-body);
   font-size: 16px;
   line-height: 1.7;
   color: var(--muted);
   background: var(--white);
   -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
   font-family: var(--ff-heading);
   color: var(--ink);
   margin: 0 0 12px;
   line-height: 1.18;
   font-weight: 600;
   letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brand); }

img, svg, video { max-width: 100%; display: block; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 32px 0; }

/* ---------- layout ---------- */

.container {
   width: 100%;
   max-width: var(--container);
   margin-inline: auto;
   padding-inline: 20px;
}
.container-narrow { max-width: 880px; }

.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-tight { padding-top: 0; }
.section--surface { background: var(--surface); }
.section--mint { background: var(--mint); }
.section--ink { background: var(--ink); color: rgba(255, 255, 255, .75); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: #fff; }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.stack > * + * { margin-top: var(--stack-gap, 16px); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.muted { color: var(--muted-2); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.num { font-family: var(--ff-num); font-variant-numeric: tabular-nums; }
.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 headings ---------- */

.eyebrow {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-family: var(--ff-script);
   font-size: 1.45rem;
   font-weight: 700;
   color: var(--brand);
   margin-bottom: 6px;
}
.eyebrow::before {
   content: "";
   width: 26px;
   height: 2px;
   background: var(--brand);
   border-radius: 2px;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 640px; margin-bottom: 46px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); }

.section-head-row {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 24px;
   margin-bottom: 42px;
   flex-wrap: wrap;
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- buttons ---------- */

.btn {
   --btn-bg: var(--brand);
   --btn-fg: #fff;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 10px;
   padding: 14px 30px;
   border-radius: var(--radius-pill);
   border: 1px solid transparent;
   background: var(--btn-bg);
   color: var(--btn-fg);
   font-family: var(--ff-heading);
   font-weight: 500;
   font-size: .97rem;
   line-height: 1.2;
   cursor: pointer;
   transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
   white-space: nowrap;
}
.btn:hover { --btn-bg: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(253, 70, 33, .35); outline-offset: 2px; }

.btn-dark { --btn-bg: var(--ink); }
.btn-dark:hover { --btn-bg: var(--brand); }
.btn-outline {
   --btn-bg: transparent;
   --btn-fg: var(--ink);
   border-color: var(--border-strong);
}
.btn-outline:hover { --btn-bg: var(--ink); --btn-fg: #fff; border-color: var(--ink); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-light:hover { --btn-bg: var(--brand); --btn-fg: #fff; }
.btn-danger { --btn-bg: var(--red); }
.btn-danger:hover { --btn-bg: var(--ink); }
.btn-ghost {
   --btn-bg: transparent;
   --btn-fg: var(--muted);
   padding: 8px 14px;
}
.btn-ghost:hover { --btn-bg: var(--surface-2); --btn-fg: var(--ink); transform: none; }
.btn-sm { padding: 10px 20px; font-size: .86rem; }
.btn-lg { padding: 17px 38px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled {
   opacity: .5; pointer-events: none;
}

.link-arrow {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   font-weight: 500;
   color: var(--ink);
}
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- badges & chips ---------- */

.badge {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 5px 12px;
   border-radius: var(--radius-pill);
   font-family: var(--ff-num);
   font-size: .72rem;
   font-weight: 700;
   letter-spacing: .02em;
   background: var(--surface-2);
   color: var(--ink);
   text-transform: uppercase;
}
.badge-brand { background: var(--brand); color: #fff; }
.badge-dark { background: var(--ink); color: #fff; }
.badge-yellow { background: var(--yellow); color: var(--ink); }
.badge-mint { background: var(--mint); color: #14603a; }
.badge-success { background: rgba(30, 158, 90, .12); color: var(--green); }
.badge-warning { background: rgba(255, 163, 59, .18); color: #a15c00; }
.badge-danger { background: rgba(229, 39, 0, .12); color: var(--red); }
.badge-muted { background: var(--surface-2); color: var(--muted); }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 9px 18px;
   border-radius: var(--radius-pill);
   border: 1px solid var(--border);
   background: #fff;
   color: var(--ink);
   font-size: .9rem;
   transition: all .25s ease;
}
.chip:hover, .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-active { background: var(--brand); border-color: var(--brand); }

/* ---------- header ---------- */

.site-header {
   position: sticky;
   top: 0;
   z-index: 60;
   background: #fff;
   border-bottom: 1px solid var(--border);
}
.site-header__inner {
   display: flex;
   align-items: center;
   gap: 28px;
   min-height: var(--header-h);
}
.brand {
   display: inline-flex;
   align-items: center;
   gap: 10px;
   font-family: var(--ff-heading);
   font-size: 1.5rem;
   font-weight: 700;
   color: var(--ink);
   letter-spacing: -0.04em;
}
.brand:hover { color: var(--ink); }
.brand__mark {
   width: 38px; height: 38px;
   border-radius: 12px;
   background: var(--brand);
   color: #fff;
   display: grid; place-items: center;
   font-size: 1.05rem;
   font-weight: 700;
   box-shadow: 0 8px 18px rgba(253, 70, 33, .32);
}

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
   position: relative;
   padding: 10px 14px;
   font-weight: 500;
   color: var(--ink);
   font-size: .96rem;
   border-radius: 10px;
}
.main-nav a::after {
   content: "";
   position: absolute;
   left: 14px; right: 14px; bottom: 4px;
   height: 2px;
   background: var(--brand);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform .25s ease;
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
   position: relative;
   width: 44px; height: 44px;
   display: grid; place-items: center;
   border-radius: 50%;
   border: 1px solid var(--border);
   background: #fff;
   color: var(--ink);
   cursor: pointer;
   transition: all .25s ease;
}
.icon-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.icon-btn__count {
   position: absolute;
   top: -4px; right: -4px;
   min-width: 20px; height: 20px;
   padding: 0 5px;
   border-radius: var(--radius-pill);
   background: var(--brand);
   color: #fff;
   font-family: var(--ff-num);
   font-size: .68rem;
   font-weight: 700;
   display: grid; place-items: center;
}

.nav-toggle { display: none; }
/* Auth links that only appear inside the collapsed mobile menu. */
.nav-compact-only { display: none; }

@media (max-width: 1080px) {
   .main-nav {
      position: fixed;
      inset: var(--header-h) 0 auto 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: #fff;
      border-bottom: 1px solid var(--border);
      padding: 12px 20px 20px;
      box-shadow: var(--shadow);
      max-height: calc(100vh - var(--header-h));
      overflow-y: auto;
      display: none;
   }
   .main-nav.is-open { display: flex; }
   .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); border-radius: 0; }
   .main-nav a::after { display: none; }
   .nav-toggle { display: grid; }
   .site-header__inner { justify-content: space-between; gap: 12px; }
}

/* Phones: the text buttons cannot fit beside the logo, so the menu takes them. */
@media (max-width: 640px) {
   .header-cta { display: none; }
   .nav-compact-only { display: block; color: var(--brand); font-weight: 600; }
   .site-header__inner { gap: 8px; }
   .brand { font-size: 1.3rem; }
   .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
}

/* ---------- hero ---------- */

.hero {
   position: relative;
   padding: 120px 0 130px;
   color: #fff;
   overflow: hidden;
   background: var(--ink);
}
.hero__bg {
   position: absolute;
   inset: 0;
   object-fit: cover;
   width: 100%; height: 100%;
}
.hero::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(7, 21, 22, .72) 0%, rgba(7, 21, 22, .55) 45%, rgba(7, 21, 22, .82) 100%);
}
.hero > .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; max-width: 15ch; margin-inline: auto; }
.hero__sub {
   font-size: 1.12rem;
   color: rgba(255, 255, 255, .82);
   max-width: 52ch;
   margin: 0 auto 34px;
}
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: #fff; }

.hero-stats {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 14px 46px;
   margin-top: 44px;
}
.hero-stat__value {
   font-family: var(--ff-num);
   font-size: 1.9rem;
   font-weight: 700;
   color: #fff;
   line-height: 1.1;
}
.hero-stat__label { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* search bar */

.search-bar {
   background: #fff;
   border-radius: var(--radius-pill);
   padding: 10px 10px 10px 12px;
   display: flex;
   align-items: center;
   gap: 6px;
   box-shadow: var(--shadow-lg);
   max-width: 900px;
   margin-inline: auto;
   text-align: left;
}
.search-field {
   flex: 1 1 0;
   min-width: 0;
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 8px 18px;
   border-right: 1px solid var(--border);
}
.search-field:last-of-type { border-right: 0; }
.search-field svg { color: var(--brand); flex: none; }
.search-field label {
   display: block;
   font-size: .72rem;
   font-weight: 600;
   letter-spacing: .08em;
   text-transform: uppercase;
   color: var(--muted-2);
}
.search-field input,
.search-field select {
   width: 100%;
   border: 0;
   padding: 0;
   font-family: var(--ff-body);
   font-size: .95rem;
   color: var(--ink);
   background: transparent;
   outline: none;
}
.search-bar .btn { flex: none; }

@media (max-width: 860px) {
   .search-bar { flex-direction: column; align-items: stretch; border-radius: var(--radius-lg); padding: 10px; }
   .search-field { border-right: 0; border-bottom: 1px solid var(--border); }
   .search-bar .btn { width: 100%; }
}

/* ---------- page hero (inner pages) ---------- */

.page-hero {
   position: relative;
   padding: 84px 0;
   color: #fff;
   background: var(--ink);
   overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(7, 21, 22, .78), rgba(7, 21, 22, .62));
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.breadcrumb {
   display: flex;
   flex-wrap: wrap;
   gap: 8px;
   align-items: center;
   font-size: .9rem;
   color: rgba(255, 255, 255, .72);
   padding: 0;
   margin: 0;
   list-style: none;
}
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: #fff; }

/* ---------- cards: destination ---------- */

.dest-card {
   position: relative;
   display: block;
   border-radius: var(--radius-lg);
   overflow: hidden;
   min-height: 300px;
   background: var(--surface-2);
   box-shadow: var(--shadow-sm);
}
.dest-card img {
   position: absolute;
   inset: 0;
   width: 100%; height: 100%;
   object-fit: cover;
   transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.dest-card::after {
   content: "";
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(7, 21, 22, 0) 35%, rgba(7, 21, 22, .85) 100%);
}
.dest-card:hover img { transform: scale(1.08); }
.dest-card__body {
   position: absolute;
   inset: auto 0 0 0;
   z-index: 2;
   padding: 24px;
   color: #fff;
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: 12px;
}
.dest-card__body h3 { color: #fff; margin: 0 0 2px; font-size: 1.25rem; }
.dest-card__meta { font-size: .85rem; color: rgba(255, 255, 255, .78); }
.dest-card__count {
   flex: none;
   background: rgba(255, 255, 255, .16);
   backdrop-filter: blur(6px);
   border: 1px solid rgba(255, 255, 255, .22);
   border-radius: var(--radius-pill);
   padding: 6px 14px;
   font-family: var(--ff-num);
   font-size: .78rem;
   font-weight: 600;
}

/* ---------- cards: event ---------- */

.event-card {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   overflow: hidden;
   display: flex;
   flex-direction: column;
   transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.event-card:hover {
   transform: translateY(-6px);
   box-shadow: var(--shadow);
   border-color: transparent;
}
.event-card__thumb {
   position: relative;
   aspect-ratio: 4 / 3;
   overflow: hidden;
   background: var(--surface-2);
}
.event-card__thumb img {
   width: 100%; height: 100%;
   object-fit: cover;
   transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.event-card:hover .event-card__thumb img { transform: scale(1.07); }
.event-card__badges {
   position: absolute;
   top: 14px; left: 14px;
   display: flex;
   flex-wrap: wrap;
   gap: 6px;
}
.event-card__date {
   position: absolute;
   right: 14px; bottom: 14px;
   background: #fff;
   border-radius: 12px;
   padding: 8px 12px;
   text-align: center;
   line-height: 1.05;
   box-shadow: var(--shadow-sm);
}
.event-card__date .d {
   display: block;
   font-family: var(--ff-num);
   font-size: 1.25rem;
   font-weight: 700;
   color: var(--ink);
}
.event-card__date .m {
   display: block;
   font-size: .68rem;
   text-transform: uppercase;
   letter-spacing: .1em;
   color: var(--brand);
   font-weight: 600;
}
.event-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.event-card__body h3 { font-size: 1.16rem; margin-bottom: 10px; }
.event-card__body h3 a:hover { color: var(--brand); }
.event-card__meta {
   display: flex;
   flex-wrap: wrap;
   gap: 8px 16px;
   font-size: .85rem;
   color: var(--muted);
   margin-bottom: 14px;
}
.event-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-card__meta svg { color: var(--brand); flex: none; }
.event-card__foot {
   margin-top: auto;
   padding-top: 16px;
   border-top: 1px solid var(--border);
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
}
.price { font-family: var(--ff-num); }
.price__value { font-size: 1.28rem; font-weight: 700; color: var(--brand); }
.price__label { display: block; font-size: .74rem; color: var(--muted-2); font-family: var(--ff-body); }
.price__strike { text-decoration: line-through; color: var(--muted-2); font-size: .9rem; margin-right: 6px; font-weight: 500; }

/* rating */

.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); }
.stars { display: inline-flex; gap: 2px; color: var(--yellow); }
.stars svg { width: 14px; height: 14px; }
.stars .is-off { color: #dfe3e3; }

/* ---------- feature blocks ---------- */

.feature {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 32px 28px;
   transition: transform .3s ease, box-shadow .3s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature__icon {
   width: 56px; height: 56px;
   border-radius: 18px;
   display: grid; place-items: center;
   background: var(--brand-soft);
   color: var(--brand);
   margin-bottom: 18px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: .93rem; margin: 0; }

/* ---------- steps ---------- */

.step { position: relative; padding-left: 66px; }
.step__num {
   position: absolute;
   left: 0; top: 0;
   width: 48px; height: 48px;
   border-radius: 50%;
   display: grid; place-items: center;
   background: var(--ink);
   color: #fff;
   font-family: var(--ff-num);
   font-weight: 700;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { font-size: .92rem; margin: 0; }

/* ---------- testimonials ---------- */

.quote-card {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 30px 28px;
   display: flex;
   flex-direction: column;
   gap: 14px;
   height: 100%;
}
.quote-card__text { font-size: 1rem; color: var(--ink-soft); margin: 0; }
.quote-card__foot { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
   width: 46px; height: 46px;
   border-radius: 50%;
   background: var(--brand);
   color: #fff;
   display: grid; place-items: center;
   font-weight: 600;
   font-family: var(--ff-num);
   flex: none;
}
.avatar-sm { width: 34px; height: 34px; font-size: .8rem; }

/* ---------- cta band ---------- */

.cta-band {
   position: relative;
   border-radius: var(--radius-lg);
   overflow: hidden;
   padding: 62px 48px;
   color: #fff;
   background: var(--ink);
}
.cta-band__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band > *:not(.cta-band__bg) { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; }

/* ---------- newsletter ---------- */

.newsletter-form { display: flex; gap: 10px; max-width: 520px; }
.newsletter-form input {
   flex: 1;
   border-radius: var(--radius-pill);
   border: 1px solid rgba(255, 255, 255, .2);
   background: rgba(255, 255, 255, .08);
   color: #fff;
   padding: 14px 22px;
   font-family: var(--ff-body);
   outline: none;
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .5); }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding: 76px 0 0; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 20px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--brand); }
.site-footer .brand { color: #fff; }
.footer-grid {
   display: grid;
   grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
   gap: 40px;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .93rem; }
.footer-bottom {
   margin-top: 60px;
   padding: 22px 0;
   border-top: 1px solid rgba(255, 255, 255, .1);
   display: flex;
   justify-content: space-between;
   gap: 16px;
   flex-wrap: wrap;
   font-size: .87rem;
}
.social-row { display: flex; gap: 10px; }
.social-row a {
   width: 40px; height: 40px;
   border-radius: 50%;
   border: 1px solid rgba(255, 255, 255, .16);
   display: grid; place-items: center;
   transition: all .25s ease;
}
.social-row a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- forms ---------- */

.field { margin-bottom: 18px; }
.field > label,
.label {
   display: block;
   font-size: .82rem;
   font-weight: 600;
   color: var(--ink);
   margin-bottom: 8px;
   letter-spacing: .01em;
}
.input, .select, .textarea, input[type="text"].input, select.select {
   width: 100%;
   padding: 13px 16px;
   border-radius: 12px;
   border: 1px solid var(--border-strong);
   background: #fff;
   color: var(--ink);
   font-family: var(--ff-body);
   font-size: .95rem;
   transition: border-color .2s ease, box-shadow .2s ease;
   outline: none;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus {
   border-color: var(--brand);
   box-shadow: 0 0 0 4px rgba(253, 70, 33, .12);
}
.input[readonly] { background: var(--surface); }
.select {
   appearance: none;
   background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235f556a' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
   background-repeat: no-repeat;
   background-position: right 16px center;
   padding-right: 40px;
}
.help { font-size: .8rem; color: var(--muted-2); margin-top: 6px; }
.error { font-size: .82rem; color: var(--red); margin-top: 6px; }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--red); }

.check {
   display: flex;
   align-items: flex-start;
   gap: 10px;
   font-size: .92rem;
   color: var(--muted);
   cursor: pointer;
}
.check input { margin-top: 4px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }

.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .col-span-2 { grid-column: 1 / -1; }

.file-input {
   display: block;
   width: 100%;
   padding: 12px 16px;
   border: 1px dashed var(--border-strong);
   border-radius: 12px;
   background: var(--surface);
   font-size: .9rem;
   cursor: pointer;
}

/* ---------- alerts ---------- */

.alert {
   display: flex;
   align-items: flex-start;
   gap: 12px;
   padding: 14px 18px;
   border-radius: 14px;
   font-size: .93rem;
   margin-bottom: 20px;
   border: 1px solid transparent;
}
.alert-success { background: rgba(30, 158, 90, .1); color: #14603a; border-color: rgba(30, 158, 90, .25); }
.alert-error { background: rgba(229, 39, 0, .08); color: #8e2000; border-color: rgba(229, 39, 0, .22); }
.alert-info { background: var(--brand-soft); color: #8e2a12; border-color: rgba(253, 70, 33, .2); }
.alert-warning { background: rgba(255, 163, 59, .14); color: #8a5100; border-color: rgba(255, 163, 59, .3); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.flash-stack { position: sticky; top: calc(var(--header-h) + 12px); z-index: 40; }

/* ---------- panels & tables ---------- */

.panel {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 28px;
}
.panel + .panel { margin-top: 24px; }
.panel__head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
   flex-wrap: wrap;
   margin-bottom: 20px;
}
.panel__head h2, .panel__head h3 { margin: 0; }

.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--border); }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; background: #fff; }
table.table th, table.table td { padding: 14px 16px; text-align: left; vertical-align: middle; }
table.table thead th {
   background: var(--surface);
   font-size: .74rem;
   text-transform: uppercase;
   letter-spacing: .08em;
   color: var(--muted);
   font-weight: 700;
   white-space: nowrap;
}
table.table tbody tr + tr { border-top: 1px solid var(--border); }
table.table tbody tr:hover { background: var(--surface); }
table.table td strong { color: var(--ink); font-weight: 600; }
.table-empty { padding: 46px 20px; text-align: center; color: var(--muted-2); }

/* ---------- compact media rows & key/value lists (shared with admin) ---------- */

.thumb-sm {
   width: 54px; height: 40px;
   border-radius: 8px;
   object-fit: cover;
   background: var(--surface-2);
   flex: none;
}
.thumb-row { display: flex; align-items: center; gap: 12px; }

.kv { display: grid; gap: 12px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; font-size: .92rem; }
.kv .label { margin-bottom: 0; font-weight: 500; color: var(--muted); }
.kv .value { color: var(--ink); font-weight: 600; text-align: right; }

/* ---------- pagination ---------- */

.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 42px; list-style: none; padding: 0; }
.pagination a, .pagination span {
   min-width: 42px; height: 42px;
   padding: 0 12px;
   border-radius: 12px;
   border: 1px solid var(--border);
   display: inline-flex; align-items: center; justify-content: center;
   font-family: var(--ff-num);
   font-size: .9rem;
   background: #fff;
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-active span, .pagination span[aria-current] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pagination .is-disabled span { opacity: .4; }

/* ---------- gallery ---------- */

.gallery {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr;
   grid-auto-rows: 150px;
   gap: 12px;
}
.gallery a {
   border-radius: 16px;
   overflow: hidden;
   background: var(--surface-2);
}
.gallery a:first-child { grid-row: span 2; grid-column: span 1; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery a:hover img { transform: scale(1.06); }

.map-frame {
   width: 100%;
   height: 340px;
   border: 0;
   border-radius: var(--radius-lg);
   background: var(--surface-2);
}
.map-placeholder {
   height: 340px;
   border-radius: var(--radius-lg);
   background: var(--surface-2);
   display: grid;
   place-items: center;
   color: var(--muted-2);
   text-align: center;
   padding: 20px;
}

/* ---------- detail layout ---------- */

.detail-layout {
   display: grid;
   grid-template-columns: minmax(0, 1fr) 380px;
   gap: 40px;
   align-items: start;
}
.sticky-side { position: sticky; top: calc(var(--header-h) + 20px); }

.info-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
   gap: 18px;
   padding: 22px;
   background: var(--surface);
   border-radius: var(--radius-lg);
}
.info-grid__item { display: flex; gap: 12px; align-items: flex-start; }
.info-grid__item svg { color: var(--brand); flex: none; margin-top: 3px; }
.info-grid__item .label { margin-bottom: 2px; }
.info-grid__item .value { color: var(--ink); font-weight: 500; font-size: .95rem; }

.tick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick-list li { display: flex; gap: 12px; align-items: flex-start; }
.tick-list li::before {
   content: "";
   flex: none;
   width: 20px; height: 20px;
   margin-top: 3px;
   border-radius: 50%;
   background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9' fill='none'%3E%3Cpath d='M1 4.5L4 7.5L10 1.5' stroke='%231e9e5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat;
}

/* ---------- ticket picker ---------- */

.booking-box {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow);
   overflow: hidden;
}
.booking-box__head {
   padding: 22px 24px;
   border-bottom: 1px solid var(--border);
   background: var(--surface);
}
.booking-box__body { padding: 22px 24px; }
.booking-box__foot { padding: 0 24px 24px; }

.ticket-option {
   border: 1px solid var(--border);
   border-radius: 14px;
   padding: 16px;
   display: flex;
   gap: 14px;
   align-items: center;
   justify-content: space-between;
   transition: border-color .25s ease, background .25s ease;
}
.ticket-option + .ticket-option { margin-top: 12px; }
.ticket-option:hover { border-color: var(--border-strong); }
.ticket-option.is-out { opacity: .55; }
.ticket-option__name { font-weight: 600; color: var(--ink); font-size: .98rem; }
.ticket-option__desc { font-size: .82rem; color: var(--muted-2); }
.ticket-option__price { font-family: var(--ff-num); font-weight: 700; color: var(--brand); font-size: 1.05rem; }

.stepper {
   display: inline-flex;
   align-items: center;
   border: 1px solid var(--border-strong);
   border-radius: var(--radius-pill);
   overflow: hidden;
   background: #fff;
}
.stepper button {
   width: 34px; height: 34px;
   border: 0;
   background: transparent;
   color: var(--ink);
   font-size: 1.1rem;
   line-height: 1;
   cursor: pointer;
   transition: background .2s ease;
}
.stepper button:hover { background: var(--surface-2); }
.stepper input {
   width: 42px;
   border: 0;
   text-align: center;
   font-family: var(--ff-num);
   font-weight: 600;
   color: var(--ink);
   background: transparent;
   outline: none;
   -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.summary-row {
   display: flex;
   justify-content: space-between;
   gap: 12px;
   padding: 9px 0;
   font-size: .93rem;
}
.summary-row + .summary-row { border-top: 1px dashed var(--border); }
.summary-row strong { color: var(--ink); }
.summary-total {
   margin-top: 12px;
   padding-top: 14px;
   border-top: 2px solid var(--ink);
   display: flex;
   justify-content: space-between;
   align-items: baseline;
   font-family: var(--ff-num);
}
.summary-total .amount { font-size: 1.5rem; font-weight: 700; color: var(--brand); }

/* ---------- payment methods ---------- */

.pay-option {
   display: block;
   border: 1px solid var(--border-strong);
   border-radius: 14px;
   padding: 18px;
   cursor: pointer;
   transition: all .25s ease;
}
.pay-option + .pay-option { margin-top: 12px; }
.pay-option:hover { border-color: var(--brand); }
/* Hide only the option's own radio - never the fields inside its panel.
   It stays in the tab order; the focus ring moves to the custom dot below. */
.pay-option > input[type="radio"] {
   position: absolute;
   width: 1px; height: 1px;
   opacity: 0;
   margin: 0;
}
.pay-option__head { display: flex; align-items: center; gap: 12px; }
.pay-option__dot {
   width: 20px; height: 20px;
   border-radius: 50%;
   border: 2px solid var(--border-strong);
   flex: none;
   position: relative;
   transition: border-color .2s ease;
}
.pay-option > input[type="radio"]:checked + .pay-option__head .pay-option__dot { border-color: var(--brand); }
.pay-option > input[type="radio"]:checked + .pay-option__head .pay-option__dot::after {
   content: "";
   position: absolute; inset: 3px;
   border-radius: 50%;
   background: var(--brand);
}
.pay-option > input[type="radio"]:focus-visible + .pay-option__head .pay-option__dot {
   box-shadow: 0 0 0 4px rgba(253, 70, 33, .3);
}
.pay-option__title { font-weight: 600; color: var(--ink); }
.pay-option__panel { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pay-option.is-selected { border-color: var(--brand); background: var(--brand-soft); }
.pay-option.is-selected .pay-option__panel { display: block; }

.bank-details {
   background: #fff;
   border: 1px dashed var(--border-strong);
   border-radius: 12px;
   padding: 16px;
   font-size: .9rem;
   display: grid;
   gap: 6px;
}
.bank-details span { display: flex; justify-content: space-between; gap: 12px; }
.bank-details strong { color: var(--ink); font-family: var(--ff-num); }

/* ---------- tickets ---------- */

.ticket-stub {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1fr) 210px;
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   overflow: hidden;
   box-shadow: var(--shadow-sm);
}
.ticket-stub__main { padding: 26px 28px; }
.ticket-stub__side {
   border-left: 2px dashed var(--border-strong);
   padding: 26px 20px;
   text-align: center;
   background: var(--surface);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 10px;
}
.ticket-stub__side img { width: 150px; height: 150px; }
.ticket-stub__code {
   font-family: var(--ff-num);
   font-weight: 700;
   letter-spacing: .06em;
   color: var(--ink);
   font-size: .92rem;
}
.ticket-stub__event { font-size: 1.2rem; margin-bottom: 6px; }
.ticket-stub::before,
.ticket-stub::after {
   content: "";
   position: absolute;
   right: 200px;
   width: 22px; height: 22px;
   border-radius: 50%;
   background: var(--surface);
   border: 1px solid var(--border);
   transform: translateX(50%);
}
.ticket-stub::before { top: -12px; }
.ticket-stub::after { bottom: -12px; }
.ticket-stub + .ticket-stub { margin-top: 22px; }
.ticket-stub.is-void { opacity: .6; }

.ticket-meta {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
   gap: 16px;
   margin-top: 18px;
   padding-top: 18px;
   border-top: 1px solid var(--border);
}
.ticket-meta .label { margin-bottom: 2px; }
.ticket-meta .value { color: var(--ink); font-weight: 600; font-size: .95rem; }

@media (max-width: 640px) {
   .ticket-stub { grid-template-columns: 1fr; }
   .ticket-stub__side { border-left: 0; border-top: 2px dashed var(--border-strong); }
   .ticket-stub::before, .ticket-stub::after { display: none; }
}

/* ---------- order status timeline ---------- */

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.timeline li { position: relative; padding-left: 34px; font-size: .92rem; }
.timeline li::before {
   content: "";
   position: absolute;
   left: 0; top: 4px;
   width: 16px; height: 16px;
   border-radius: 50%;
   border: 3px solid var(--border-strong);
   background: #fff;
}
.timeline li::after {
   content: "";
   position: absolute;
   left: 7px; top: 24px;
   width: 2px; height: calc(100% + 4px);
   background: var(--border);
}
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { border-color: var(--green); background: var(--green); }
.timeline li.is-current::before { border-color: var(--brand); background: var(--brand); }
.timeline strong { display: block; color: var(--ink); }

/* ---------- filters bar ---------- */

.filter-bar {
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 20px;
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
   gap: 14px;
   align-items: end;
   margin-bottom: 34px;
   box-shadow: var(--shadow-sm);
}
.filter-bar .field { margin-bottom: 0; }

/* ---------- auth ---------- */

.auth-card {
   max-width: 480px;
   margin-inline: auto;
   background: #fff;
   border: 1px solid var(--border);
   border-radius: var(--radius-lg);
   padding: 38px;
   box-shadow: var(--shadow-sm);
}

/* ---------- accordion ---------- */

.accordion { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.accordion + .accordion { margin-top: 12px; }
.accordion summary {
   list-style: none;
   cursor: pointer;
   padding: 20px 24px;
   font-weight: 600;
   color: var(--ink);
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
   content: "+";
   font-size: 1.4rem;
   color: var(--brand);
   line-height: 1;
   flex: none;
}
.accordion[open] summary::after { content: "\2013"; }
.accordion__body { padding: 0 24px 22px; font-size: .95rem; }

/* ---------- misc ---------- */

.empty-state {
   text-align: center;
   padding: 70px 20px;
   border: 1px dashed var(--border-strong);
   border-radius: var(--radius-lg);
   background: var(--surface);
}
.empty-state h3 { margin-bottom: 8px; }

.split-media {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   gap: 48px;
   align-items: center;
}
.split-media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }

.media-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.media-stack img { border-radius: var(--radius-lg); aspect-ratio: 3/4; object-fit: cover; }
.media-stack img:first-child { margin-top: 32px; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
   .detail-layout { grid-template-columns: 1fr; }
   .sticky-side { position: static; }
   .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
   .section { padding: 68px 0; }
   .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .split-media { grid-template-columns: 1fr; gap: 28px; }
   .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }
   .gallery a:first-child { grid-column: span 2; }
   .cta-band { padding: 42px 24px; }
}

@media (max-width: 620px) {
   .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
   .footer-grid { grid-template-columns: 1fr; }
   .form-grid { grid-template-columns: 1fr; }
   .panel { padding: 22px 18px; }
   .hero { padding: 84px 0 90px; }
}

/* ---------- print (tickets) ---------- */

@media print {
   .site-header, .site-footer, .no-print, .flash-stack { display: none !important; }
   body { background: #fff; }
   .section { padding: 0; }
   .ticket-stub { break-inside: avoid; box-shadow: none; border: 1px solid #ccc; }
}
