/* ==========================================================================
   HotSafar PHP site — additions on top of app.css (the original design system)
   ========================================================================== */

[hidden] { display: none !important; }

/* Login popup: show the right form before JavaScript runs */
.auth-layer[data-auth-mode="signin"] [data-show-mode="register"],
.auth-layer[data-auth-mode="register"] [data-show-mode="signin"] { display: none !important; }
.auth__avatar.is-register { background: var(--grad-sunset); }

/* Header call button */
.topbar__call {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; margin-inline-end: 4px;
    border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-weight: 700; font-size: .875rem;
    text-decoration: none; white-space: nowrap; transition: transform .2s var(--spring), background-color .2s;
}
.topbar__call:hover { color: var(--accent); transform: translateY(-1px); }
.topbar__call .icon { flex: 0 0 auto; }
@media (max-width: 1199.98px) { .topbar__call span { display: none; } .topbar__call { width: 40px; padding: 0; justify-content: center; } }

/* Notices */
.notice--info { background: color-mix(in srgb, var(--blue) 8%, var(--surface)); color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--blue) 18%, transparent); }
.notice--info .icon { color: var(--blue); flex: 0 0 auto; }
[data-theme="dark"] .notice--info { background: color-mix(in srgb, var(--blue) 16%, var(--surface)); }
.fare-note { margin: 0 0 16px; font-size: .875rem; font-weight: 500; }
aside .notice.small { margin-top: 12px; font-size: .8125rem; }

/* Decorative property art instead of photos */
.photo__art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.photo > .photo-badge, .photo > .photo__wish { z-index: 1; }

/* Status text in lists */
.status-text { font-weight: 700; }
.status-text--pending { color: var(--warning); }
.status-text--confirmed { color: var(--success); }
.status-text--cancelled { color: var(--danger); }

/* Booking request: how it works */
.how-it-works > h2 .icon { color: var(--accent); }
.how-steps { list-style: none; counter-reset: s; margin: 6px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.how-steps li { counter-increment: s; position: relative; padding: 14px 14px 14px 52px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.how-steps li::before { content: counter(s); position: absolute; inset-inline-start: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .8125rem; color: #FFFFFF; background: var(--grad-brand); }
.how-steps strong { font-size: .95rem; }
.how-steps span { color: var(--muted); font-size: .8125rem; }

/* Preferred payment options */
.pay-options { display: grid; gap: 10px; margin-top: 10px; }
@media (min-width: 640px) { .pay-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pay-option { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option__icon { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pay-option__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pay-option__text small { color: var(--muted); font-size: .8125rem; }
.pay-option:has(input:checked) { border-color: var(--brand-1); background: var(--accent-soft); box-shadow: var(--ring); }
.pay-option:has(input:focus-visible) { box-shadow: var(--ring); }
.pay-option .radio-dot { flex: 0 0 auto; }
.pay-option:has(input:checked) .radio-dot { border-color: var(--brand-1); box-shadow: inset 0 0 0 5px var(--brand-1); }

/* Round-trip / fare pick buttons are labels around radios */
.fcard__pick, [data-fare-label] { cursor: pointer; }
.fcard__pick:has(input:focus-visible), [data-fare-label]:has(input:focus-visible) { box-shadow: var(--ring); }

/* Coupon buttons now submit the form */
button.coupon { width: 100%; }

/* Forms posted inside rows */
.traveller-card form, .notif-row form { display: contents; }
.actions-row form.confirm-inline { display: flex; }
.user-menu form { margin: 0; }
.user-menu form .dropdown-item { width: 100%; text-align: start; border: 0; background: transparent; }

/* Seat panel grid is LTR regardless of page direction */
.deck__grid { direction: ltr; }

/* Results: filtered-out cards */
[data-flight][hidden], [data-hotel][hidden], [data-bus][hidden], [data-train][hidden] { display: none !important; }

/* Notification items are links in the header panel */
a.notif-item { text-decoration: none; color: inherit; }
a.notif-row__main { text-decoration: none; color: inherit; }

/* Print: show only the booking */
@media print {
    .sfooter, .tabbar, .summary-bar, .topbar__actions, .inline-banner, .notice--info { display: none !important; }
}

/* ---------- Admin ---------- */
body.admin { background: var(--bg); }
.admin-bar { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-bar__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.admin-nav a:hover { background: var(--bg-2); color: var(--ink); }
.admin-login { max-width: 420px; margin: 40px auto; display: flex; flex-direction: column; gap: 14px; }
.admin-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 18px 0; }
.admin-filters .search-input { min-width: min(100%, 340px); }
.admin-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.admin-table td { vertical-align: top; font-size: .875rem; }
.admin .stat-grid { margin-bottom: 8px; }

/* Pickers are always in the page (hidden until opened), so only lift the hero while one is open */
.hero:has(.pop) { z-index: auto; }
.hero--home:has(.pop) { z-index: 3; }
.hero:has(.pop:not([hidden])), .hero--home:has(.pop:not([hidden])) { z-index: 70; }
.sheet-backdrop { z-index: 90; }
.sheet { z-index: 91; }
.app-toast { z-index: 95; }

/* ---------- Real HotSafar logo ---------- */
.brand--logo { gap: 0; flex: 0 0 auto; }
.brand__logo { display: block; height: 54px; width: auto; }
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }
@media (max-width: 640px) { .brand__logo { height: 44px; } }
.sfooter__logo-img { display: block; height: 60px; width: auto; }
.admin-bar .brand img { height: 40px; width: auto; }
.admin-tag { margin-inline-start: 10px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .75rem; font-weight: 700; }
@media print { .brand__logo--dark { display: none !important; } .brand__logo--light { display: block !important; } }

/* ---------- Breadcrumbs & content pages ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.hero .crumbs ol, .hero .crumbs a { color: rgba(255,255,255,.85); }
.prose { max-width: 820px; }
.prose h2 { font-size: 1.2rem; margin: 22px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose ul { padding-inline-start: 20px; }
.seo-block { margin-top: 8px; }
.seo-block .panel { padding: 22px; }
.seo-block h2 { font-size: 1.2rem; margin-bottom: 10px; }
.seo-block h3 { font-size: 1rem; margin: 16px 0 6px; }
.seo-block p { color: var(--ink-2); line-height: 1.7; margin-bottom: 10px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.seo-links a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.seo-links a:hover { border-color: var(--accent); color: var(--accent); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 320px; background: var(--bg-2); }
.map-frame iframe { display: block; width: 100%; height: 360px; border: 0; }
.contact-layout { display: grid; gap: 18px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .icon { color: var(--accent); flex: 0 0 auto; margin-top: 3px; }
