/* ==========================================================================
   AY Malloum Travel and Tours - base theme
   ========================================================================== */

:root {
    --brand:        #0b6b3a;
    --brand-dark:   #074d2a;
    --brand-light:  #e8f5ee;
    --accent:       #f2a900;
    --accent-dark:  #d18f00;
    --ink:          #16211c;
    --ink-soft:     #4a5a53;
    --line:         #dde5e0;
    --bg:           #ffffff;
    --bg-soft:      #f6f9f7;
    --danger:       #b3261e;
    --warning:      #b26a00;
    --info:         #0b5f8a;
    --radius:       6px;
    --shadow:       0 1px 3px rgba(11, 45, 30, .08), 0 6px 18px rgba(11, 45, 30, .06);
    --shadow-lg:    0 4px 10px rgba(11, 45, 30, .10), 0 16px 40px rgba(11, 45, 30, .10);
    --container:    1200px;
    --header-h:     74px;
    --font:         "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
}

*, *::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(--bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 .5em;
    color: var(--ink);
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p  { margin: 0 0 1rem; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 1000;
    background: var(--brand); color: #fff; padding: .75rem 1rem;
}
.skip-link:focus { left: 0; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1rem;
}

.site-main { min-height: 50vh; }

/* ---------------------------------------------------------------- utilities */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--ink-soft); }
.text-small  { font-size: .875rem; }
.text-xs     { font-size: .78rem; }
.text-brand  { color: var(--brand); }
.text-danger { color: var(--danger); }
.text-success{ color: var(--brand); }
.text-warning{ color: var(--warning); }
.fw-600 { font-weight: 600; }

/* Heading scale, used by panels and sidebars. Pages already rely on h4-h6. */
.h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 .6rem; }
.h2 { font-size: 1.7rem; line-height: 1.25; margin: 0 0 .55rem; }
.h3 { font-size: 1.4rem; line-height: 1.3;  margin: 0 0 .5rem; }
.h4 { font-size: 1.15rem; line-height: 1.35; margin: 0 0 .45rem; }
.h5 { font-size: 1.02rem; line-height: 1.4; margin: 0 0 .4rem; }
.h6 { font-size: .92rem; line-height: 1.4;  margin: 0 0 .35rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); }
.fw-700 { font-weight: 700; }
.uppercase { text-transform: uppercase; letter-spacing: .04em; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.w-100 { width: 100%; }
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
/* Long-form aliases. The admin screens were written with the Bootstrap spelling,
   so alias them here rather than leaving those rules as silent no-ops. */
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-end { justify-content: flex-end; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.relative { position: relative; }
.hidden { 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;
}

/* ---------------------------------------------------------------- layout */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }
.section-alt { background: var(--bg-soft); }
.section-brand { background: var(--brand); color: #fff; }
.section-brand h2, .section-brand h3 { color: #fff; }

.grid { display: grid; gap: 1.5rem; }
.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(260px, 1fr)); }
/* Main content with a narrower aside beside it, for basket and dashboard pages. */
.grid-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .08em; color: var(--brand);
    margin-bottom: .5rem;
}

/* ---------------------------------------------------------------- header */
.topbar {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 1rem; }
.topbar-contact, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: rgba(255, 255, 255, .9); }
.topbar a:hover { color: #fff; }

.currency-switch { position: relative; }
.dropdown-menu {
    position: absolute; top: 100%; right: 0; z-index: 60;
    min-width: 220px; margin: 0; padding: .35rem 0;
    list-style: none; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.dropdown-menu[hidden] { display: none; }
.dropdown-menu a { display: block; padding: .5rem .9rem; color: var(--ink); }
.dropdown-menu a:hover { background: var(--brand-light); color: var(--brand-dark); text-decoration: none; }
.dropdown-menu li + li { border-top: 1px solid var(--line); }

.dropdown-item a { display: flex; align-items: baseline; gap: .6rem; }
.dropdown-item-code { font-weight: 700; color: var(--ink); }
.dropdown-item-name { font-size: .88rem; color: var(--ink-soft); }
.dropdown-item.is-active a { background: var(--brand-light); color: var(--brand-dark); }
.dropdown-item.is-active .dropdown-item-code { color: var(--brand-dark); }
.dropdown-item.is-active .dropdown-item-name { color: var(--brand-dark); }
.dropdown-item.is-active a::after { content: '\2713'; margin-left: auto; color: var(--brand); }
.dropdown-note {
    padding: .45rem .9rem; font-size: .78rem; line-height: 1.35;
    color: var(--ink-soft); background: var(--bg-soft);
}

.link-button {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: inherit; font: inherit; text-decoration: underline;
}

.header-main { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1.25rem; min-height: var(--header-h); max-width: 1340px; }

.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { max-height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.12rem; }
.brand-text small { font-size: .72rem; color: var(--ink-soft); }

.nav-toggle {
    display: none; margin-left: auto; width: 42px; height: 38px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius);
    cursor: pointer; padding: 9px 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 1rem; }
.main-nav > ul { display: flex; align-items: center; gap: .75rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; flex: 0 0 auto; }
.main-nav > ul > li > a {
    display: block; padding: .4rem 0; font-size: .86rem; font-weight: 500;
    color: var(--ink); border-bottom: 2px solid transparent; white-space: nowrap;
}
.main-nav > ul > li > a:hover { color: var(--brand); text-decoration: none; }
.main-nav > ul > li.is-active > a { color: var(--brand); border-bottom-color: var(--brand); }
.main-nav .has-dropdown > .dropdown-menu { top: 100%; }
.caret {
    display: inline-block; width: 0; height: 0; margin-left: .3rem;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid currentColor; vertical-align: middle;
    transition: transform .2s ease;
}
.has-dropdown.is-open > a .caret { transform: rotate(180deg); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-account { max-width: 150px; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.nav-logout { margin: 0; }
.nav-logout .btn { padding: 0; }
.cart-count {
    display: inline-block; min-width: 20px; padding: 0 5px; margin-left: .3rem;
    background: rgba(255, 255, 255, .25); border-radius: 10px;
    font-size: .75rem; text-align: center;
}

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .62rem 1.15rem; border: 1px solid transparent; border-radius: var(--radius);
    font-family: var(--font); font-size: .92rem; font-weight: 600; line-height: 1.2;
    cursor: pointer; text-decoration: none; text-align: center;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: .4rem .75rem; font-size: .82rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #2b2000; }
.btn-accent:hover { background: var(--accent-dark); color: #2b2000; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-link { background: none; color: var(--brand); padding: .4rem .25rem; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1e17; color: #fff; }

/* ---------------------------------------------------------------- forms */
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-embed { position: relative; width: 100%; padding-top: 75%; overflow: hidden; border-radius: var(--radius); background: var(--bg-soft); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.form-row-3 { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row-4 { display: grid; gap: 1rem; grid-template-columns: repeat(4, minmax(0, 1fr)); }

label, .label {
    display: block; margin-bottom: .3rem;
    font-size: .84rem; font-weight: 600; color: var(--ink-soft);
}
.label-hint { font-weight: 400; color: var(--ink-soft); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="datetime-local"], input[type="time"],
input[type="search"], input[type="url"], select, textarea {
    width: 100%; padding: .6rem .75rem;
    font-family: var(--font); font-size: .95rem; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(11, 107, 58, .12);
}
input:disabled, select:disabled, textarea:disabled { background: var(--bg-soft); color: var(--ink-soft); }
textarea { min-height: 120px; resize: vertical; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%234a5a53' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .7rem center; background-size: 11px;
    padding-right: 2rem;
}
.field-error { color: var(--danger); font-size: .8rem; margin-top: .25rem; }
.is-invalid { border-color: var(--danger); }
/* The admin screens tag their inputs with form-control. The type selectors above
   already style them, so this is a width guarantee, not new chrome. */
.form-control { width: 100%; }

/* Thumbnail for the settings image fields. Fixed height and object-fit so a
   tall logo and a wide hero both sit in a predictable strip. */
.image-preview {
    display: flex; align-items: center; justify-content: center;
    min-height: 84px; max-height: 220px; margin-bottom: .5rem; padding: .6rem;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
}
.image-preview img {
    max-width: 100%; max-height: 200px; width: auto; height: auto; object-fit: contain;
}
.verify-bar { background: #fff7ed; border-bottom: 1px solid #fed7aa; padding: .6rem 0; }
.verify-bar p { color: #7c2d12; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }

.checkbox, .radio { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; }
.checkbox input, .radio input { width: auto; margin-top: .25rem; }
.checkbox label, .radio label { margin: 0; font-weight: 400; color: var(--ink); }

fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; }
legend { padding: 0 .4rem; font-weight: 600; font-size: .9rem; }

/* ---------------------------------------------------------------- cards */
.card {
    background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.card-body { padding: 1.15rem; }
.card-header { padding: .9rem 1.15rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.card-header h2, .card-header h3 { margin: 0; font-size: 1.05rem; }
.card-footer { padding: .9rem 1.15rem; border-top: 1px solid var(--line); background: var(--bg-soft); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.panel-alt { background: var(--bg-soft); }
/* A panel-alt heading and a panel-body are used together so the tinted band sits
   flush with the panel edge while the content keeps the panel's inner padding. */
.panel > .panel-alt:first-child { margin: -1.25rem -1.25rem 1.25rem; padding: .75rem 1.25rem; border-radius: var(--radius) var(--radius) 0 0; }
.panel > .panel-body:last-child { margin-bottom: -1.25rem; }
.panel > .panel-alt:first-child + .panel-body:last-child { margin-bottom: -1.25rem; padding-bottom: 1.25rem; }

.media-card {
    display: flex; flex-direction: column; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .16s, box-shadow .16s;
}
.media-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.media-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; flex: 1; }
.media-body h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.media-body h3 a { color: var(--ink); }
.media-body p { font-size: .88rem; color: var(--ink-soft); margin-bottom: .75rem; }
.media-meta { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .82rem; color: var(--ink-soft); margin-bottom: .75rem; }
.media-price { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--line); }
.media-price strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--brand); }
.media-price del { color: var(--ink-soft); font-size: .9rem; margin-right: .4rem; }

.thumb-badge {
    position: absolute; top: .6rem; left: .6rem; z-index: 2;
    background: var(--accent); color: #2b2000;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: .2rem .5rem; border-radius: 3px;
}
.thumb-badge.is-brand { background: var(--brand); color: #fff; }
.thumb-badge.is-danger { background: var(--danger); color: #fff; }

/* ---------------------------------------------------------------- badges */
.badge {
    display: inline-block; padding: .2rem .5rem; border-radius: 3px;
    font-size: .74rem; font-weight: 700; letter-spacing: .03em;
    text-transform: uppercase; background: var(--bg-soft); color: var(--ink-soft);
    border: 1px solid transparent;
}
.badge-success  { background: var(--brand-light); color: var(--brand-dark); border-color: #bfe3cd; }
.badge-danger   { background: #fdecea; color: var(--danger); border-color: #f5c6c2; }
.badge-warning  { background: #fff4e0; color: var(--warning); border-color: #f3d9a8; }
.badge-info     { background: #e6f2f8; color: var(--info); border-color: #bcdcec; }
.badge-secondary{ background: #eef1ef; color: var(--ink-soft); border-color: #dde3e0; }

.stars { color: var(--accent); letter-spacing: 1px; font-size: .9rem; }
.stars .star.is-empty { color: #cfd8d3; }

.rating-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .82rem; font-weight: 600;
}

/* ---------------------------------------------------------------- alerts */
.flashes { max-width: var(--container); margin: 1rem auto 0; padding: 0 1rem; }
.alert {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .8rem 1rem; margin-bottom: .75rem;
    border: 1px solid; border-radius: var(--radius); font-size: .92rem;
}
.alert-success { background: var(--brand-light); border-color: #bfe3cd; color: var(--brand-dark); }
.alert-danger  { background: #fdecea; border-color: #f5c6c2; color: var(--danger); }
.alert-warning { background: #fff4e0; border-color: #f3d9a8; color: var(--warning); }
.alert-info    { background: #e6f2f8; border-color: #bcdcec; color: var(--info); }
.alert-text { flex: 1; }
.alert-close {
    background: none; border: 0; cursor: pointer; font-size: 1.2rem; line-height: 1;
    color: inherit; opacity: .6; padding: 0 .2rem;
}
.alert-close:hover { opacity: 1; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.table th, table.table td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
table.table thead th { background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); white-space: nowrap; }
table.table tbody tr:hover { background: var(--bg-soft); }
table.table tfoot td { font-weight: 700; background: var(--bg-soft); }
table.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative; background: var(--brand-dark); color: #fff;
    overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(6, 40, 24, .88) 0%, rgba(6, 40, 24, .62) 55%, rgba(6, 40, 24, .35) 100%);
}
.hero-inner { padding: 5rem 0 6rem; max-width: 720px; }
.hero h1 { font-size: 3rem; color: #fff; margin-bottom: .6rem; }
.hero p { font-size: 1.1rem; color: rgba(255, 255, 255, .88); margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.page-header {
    background: var(--brand-dark); color: #fff;
    padding: 2.5rem 0; position: relative; overflow: hidden;
}
.page-header h1 { color: #fff; margin-bottom: .35rem; }
.page-header p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 720px; }

/* Converted-price disclaimer. Sits in the page hero, so it is a light line on
   the dark band rather than a boxed alert. */
.price-note {
    display: inline-block; margin-top: .9rem !important; padding: .4rem .7rem;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius); color: rgba(255, 255, 255, .9);
    font-size: .82rem; line-height: 1.45; max-width: 640px;
}
.hero-inner .price-note { margin-top: 1rem; }

/* Short banner for the small status pages (not found, access denied). */
.page-head {
    background: var(--brand-dark); color: #fff;
    padding: 2.25rem 0; position: relative; overflow: hidden;
}
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: rgba(255, 255, 255, .82); margin: 0; max-width: 720px; }

.breadcrumb { font-size: .84rem; margin-bottom: .75rem; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb span { color: rgba(255, 255, 255, .55); margin: 0 .4rem; }

/* Section links for the pages behind /admin. Sits flush under the hero so the
   dashboard, corporate accounts and settings can be reached from each other. */
.admin-subnav {
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: .7rem 0;
}

/* ---------------------------------------------------------------- search widget */
.search-panel {
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 1.25rem; margin-top: -3.25rem; position: relative; z-index: 5;
}
.search-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.1rem; flex-wrap: wrap; }
.search-tab {
    padding: .55rem 1rem; border: 0; background: none; cursor: pointer;
    font-family: var(--font); font-size: .9rem; font-weight: 600; color: var(--ink-soft);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.search-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------------------------------------------------------------- lists */
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-check { list-style: none; margin: 0 0 1rem; padding: 0; }
.list-check li { position: relative; padding-left: 1.5rem; margin-bottom: .4rem; }
.list-check li::before {
    content: "\2713"; position: absolute; left: 0; top: 0;
    color: var(--brand); font-weight: 700;
}
.list-cross { list-style: none; margin: 0 0 1rem; padding: 0; }
.list-cross li { position: relative; padding-left: 1.5rem; margin-bottom: .4rem; }
.list-cross li::before {
    content: "\2715"; position: absolute; left: 0; top: 0; color: var(--danger); font-weight: 700;
}

.spec-list { display: grid; gap: .55rem; margin: 0; }
.spec-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; border-bottom: 1px dashed var(--line); padding-bottom: .45rem; }
.spec-row dt { color: var(--ink-soft); margin: 0; }
.spec-row dd { margin: 0; font-weight: 600; text-align: right; }

code, kbd {
    font-family: var(--font-mono); font-size: .92em;
    background: var(--bg-soft); border: 1px solid var(--line);
    border-radius: 4px; padding: .1rem .35rem;
}

/* --------------------------------------------------------- article body */
.article-body { font-size: 1.02rem; line-height: 1.75; }
.article-body h1, .article-body h2, .article-body h3 { margin-top: 2rem; }
.article-body h1:first-child, .article-body h2:first-child,
.article-body h3:first-child, .article-body p:first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.1rem; }
.article-body ul, .article-body ol { margin: 0 0 1.1rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: .4rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--radius); }
.article-body blockquote {
    margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem;
    border-left: 3px solid var(--brand); color: var(--ink-soft); font-style: italic;
}
.article-body table { width: 100%; }
.article-body a { font-weight: 600; }

/* ---------------------------------------------------------------- accordion */
.accordion { display: grid; gap: .5rem; }
.accordion-item { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.accordion-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .85rem 1.1rem; cursor: pointer; font-weight: 600; list-style: none;
}
.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::after {
    content: "\25BE"; color: var(--ink-soft); font-size: .8rem;
    transition: transform .15s ease; flex-shrink: 0;
}
.accordion-item[open] > .accordion-header::after { transform: rotate(180deg); }
.accordion-item[open] > .accordion-header { border-bottom: 1px solid var(--line); }
.accordion-body { padding: 1.1rem; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.5rem; overflow-x: auto; }
.tab {
    padding: .65rem 1.1rem; border: 0; background: none; cursor: pointer; white-space: nowrap;
    font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--ink-soft);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ---------------------------------------------------------------- pagination */
.pagination { display: flex; flex-wrap: wrap; gap: .3rem; justify-content: center; margin: 2rem 0 0; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 .6rem;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; color: var(--ink); font-size: .9rem; font-weight: 600;
}
.pagination a:hover { background: var(--brand-light); text-decoration: none; }
.pagination .is-current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled { color: #b9c3bd; background: var(--bg-soft); }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, .78); margin-top: 3rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3rem 1rem 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: .85rem; }
.footer-brand .brand-text small { color: rgba(255, 255, 255, .6); }
.footer-brand p { font-size: .88rem; }
.footer-column h3 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin-bottom: .5rem; font-size: .88rem; }
.footer-column a { color: rgba(255, 255, 255, .78); }
.footer-column a:hover { color: #fff; }
.footer-hours { font-size: .82rem; margin-top: .85rem; color: rgba(255, 255, 255, .6); }
.social-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social-links a {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
    padding: .25rem .6rem; border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px;
}

.footer-payments { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0; font-size: .84rem; }
.footer-payments .container { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.pay-chip {
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 3px; padding: .18rem .55rem; font-size: .76rem; color: #fff;
}

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0; font-size: .82rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; align-items: center; }
.footer-bottom p { margin: 0; }
.footer-credit { display: inline-block; margin-top: .2rem; color: rgba(255, 255, 255, .55); font-size: .78rem; }
.footer-credit strong { color: rgba(255, 255, 255, .8); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------- empty state */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state h3 { color: var(--ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-sidebar { grid-template-columns: minmax(0, 1fr); }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-row-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1260px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
        flex-direction: column; align-items: stretch; gap: 0; padding: .75rem 1rem 1rem;
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }
    .main-nav.is-open { display: flex; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav > ul > li { flex: 0 0 auto; }
    .main-nav > ul > li > a { padding: .7rem 0; border-bottom: 1px solid var(--line); white-space: normal; }
    .main-nav .dropdown-menu {
        position: static; box-shadow: none; border: 0;
        border-left: 2px solid var(--line); margin: 0 0 .5rem .75rem;
    }
    .main-nav .dropdown-menu a { padding: .6rem .6rem .6rem .9rem; font-size: .85rem; }
    .main-nav > ul > li.has-dropdown > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
    .main-nav > ul > li > a { min-height: 44px; display: flex; align-items: center; }
    .nav-actions { flex-wrap: wrap; padding-top: .75rem; }
    .header-inner { position: relative; }
    body.nav-open { overflow: hidden; }
}

@media (max-width: 860px) {
    .hero h1 { font-size: 2.25rem; }
    .hero-inner { padding: 3.5rem 0 4.5rem; }
}

@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4, .grid-sidebar, .form-row, .form-row-3, .form-row-4 { grid-template-columns: minmax(0, 1fr); }
    .topbar-inner { flex-direction: column; gap: .25rem; padding: .4rem 1rem; }
    .topbar-contact, .topbar-right { gap: .75rem; flex-wrap: wrap; justify-content: center; }
    .dropdown-menu { min-width: 100%; }
    .dropdown-menu a, .dropdown-item a { min-height: 44px; align-items: center; }
    .footer-top { grid-template-columns: minmax(0, 1fr); }
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
    .search-panel { margin-top: -2rem; }
}

@media print {
    .site-header, .site-footer, .search-panel, .btn, .pagination { display: none !important; }
    body { font-size: 12px; }
    .card, .panel { box-shadow: none; border-color: #ccc; }
}
