/* ============================================
   EDITORIAL THEME — Site-wide Styles
   ZTİ Turizm · Editorial Warm Palette
   Single source of truth for ALL pages.
   ============================================ */

:root {
    --editorial-cream:        #fcfbf8;
    --editorial-cream-mid:    #f5f2ec;
    --editorial-cream-dark:   #ede4d3;
    --editorial-brown:        #2a1f14;
    --editorial-brown-light:  #6b5d4e;
    --editorial-brown-lighter:#8a7a6a;
    --editorial-blue:         #0d47a1;
    --editorial-blue-dark:    #051c40;
    --editorial-blue-mid:     #1565c0;
    --editorial-amber:        #E89B2F;
    --editorial-amber-dark:   #c9870e;
    --editorial-field-bg:     #f5f2ec;
    --editorial-field-border: rgba(42,31,20,.15);
    --editorial-field-border-light: rgba(42,31,20,.08);
    --editorial-card-shadow:  0 24px 60px -15px rgba(42,31,20,.18);
    --font-serif: "Lora", Georgia, serif;
    --font-sans:  "Instrument Sans", -apple-system, sans-serif;
    --font-mono:  "JetBrains Mono", monospace;
}

/* ============================================
   RESET & GLOBAL
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    font-family: var(--font-sans);
    background: var(--editorial-cream);
    color: var(--editorial-brown);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 0;
}

body > * { flex-shrink: 0; }
body > footer { margin-top: auto; }

/* ============================================
   TYPOGRAPHY UTILITIES
   ============================================ */

.ed-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--editorial-brown-lighter);
    text-transform: uppercase;
    margin-bottom: 14px;
    display: block;
}

.ed-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -1.2px;
    margin: 0;
    line-height: 1.05;
    color: var(--editorial-brown);
}

.ed-see-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--editorial-brown);
    text-decoration: none;
    border-bottom: 1px solid rgba(42,31,20,.4);
    padding-bottom: 2px;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
}
.ed-see-all:hover { border-color: var(--editorial-blue); color: var(--editorial-blue); }

.ed-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 40px;
}

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
    font-family: var(--font-serif);
    font-size: 52px;
    font-weight: 500;
    color: var(--editorial-brown);
    margin-bottom: 10px;
    letter-spacing: -1.2px;
    line-height: 1.05;
}
.section-header p { color: var(--editorial-brown-light); font-size: 1rem; }

/* ============================================
   GLOBAL FORM ELEMENTS
   ============================================ */

.form-input {
    width: 100%;
    border: 1.5px solid var(--editorial-field-border);
    border-radius: 8px;
    padding: 11px 14px;
    min-height: 45px;
    font-size: 14px;
    color: var(--editorial-brown);
    background: var(--editorial-field-bg);
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: var(--font-sans);
}
.form-input:focus {
    border-color: var(--editorial-blue);
    box-shadow: 0 0 0 3px rgba(13,71,161,.12);
    background: #fff;
}
/* Restore Tailwind pl-*/pr-* utilities that the padding shorthand above overrides */
.form-input.pl-8  { padding-left: 2rem; }
.form-input.pl-10 { padding-left: 2.5rem; }
.form-input.pl-12 { padding-left: 3rem; }
.form-input.pr-8  { padding-right: 2rem; }
.form-input.pr-10 { padding-right: 2.5rem; }

.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--editorial-brown-light);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-family: var(--font-mono);
}
.form-label i { color: var(--editorial-blue); font-size: 13px; }

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--editorial-blue);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    text-decoration: none;
}
.btn-primary:hover { background: var(--editorial-blue-dark); transform: translateY(-1px); }

.btn-sec {
    background: var(--editorial-amber);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background .2s;
    font-family: var(--font-sans);
    box-shadow: 0 4px 12px rgba(232,155,47,.3);
    text-decoration: none;
}
.btn-sec:hover { background: var(--editorial-amber-dark); }

/* ============================================
   BADGES
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   STARS
   ============================================ */

.star-fill  { color: var(--editorial-amber); }
.star-empty { color: rgba(42,31,20,.15); }

/* ============================================
   NAVBAR
   ============================================ */

.navbar-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--editorial-blue);
    letter-spacing: -.5px;
    text-decoration: none;
}
.navbar-logo span { color: var(--editorial-amber); }

.editorial-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(244,237,226,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(42,31,20,.08);
    font-family: var(--font-sans);
}
.editorial-nav-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.editorial-nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.editorial-nav-links { display: flex; gap: 28px; flex: 1; justify-content: center; }
.editorial-nav-link {
    font-size: 14px;
    color: var(--editorial-brown);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: -.1px;
    transition: color .2s;
}
.editorial-nav-link:hover { color: var(--editorial-blue); }
.editorial-nav-right { display: flex; align-items: center; gap: 12px; }
.editorial-nav-icon-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    color: var(--editorial-brown);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 14px;
    transition: color .2s;
    font-family: var(--font-sans);
}
.editorial-nav-icon-btn:hover { color: var(--editorial-blue); }
.editorial-nav-divider { width: 1px; height: 18px; background: rgba(42,31,20,.15); }
.editorial-nav-ghost-btn {
    background: transparent;
    border: 1px solid rgba(42,31,20,.2);
    padding: 8px 16px;
    min-height: 44px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: var(--editorial-brown);
    transition: background .2s;
    font-family: var(--font-sans);
    display: inline-flex;
    align-items: center;
}
.editorial-nav-ghost-btn:hover { background: rgba(42,31,20,.05); }
.editorial-nav-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px 4px 4px;
    background: #fff;
    border-radius: 100px;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}
.editorial-nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 14px;
    background: var(--editorial-blue);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}
.editorial-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
    border: 1px solid rgba(42,31,20,.08);
    z-index: 100;
    padding: 12px 8px;
    min-width: 160px;
    max-width: calc(100vw - 24px);
}
.editorial-dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--editorial-brown);
    font-size: 13px;
    border-radius: 8px;
    transition: all .2s;
}
.editorial-dropdown a:hover { background: rgba(13,71,161,.08); color: var(--editorial-blue); }

.nav-login-tab { transition: all .15s; }
.nav-login-tab.active { background: #fff !important; font-weight: 600 !important; }

/* ============================================
   HERO SECTION (editorial)
   ============================================ */

.editorial-hero {
    position: relative;
    min-height: 520px;
    overflow: visible;
    padding-bottom: 160px;
}
.editorial-hero-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.editorial-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    min-height: 520px;
}
.editorial-hero-vignette {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(42,31,20,.4) 0%,
        rgba(42,31,20,.15) 50%,
        rgba(252,251,248,.6) 85%,
        #fcfbf8 100%);
}
.editorial-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.85);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-bottom: 20px;
}
.editorial-hero-eyebrow-line {
    display: inline-block;
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,.6);
}
.editorial-hero-title {
    font-family: var(--font-serif) !important;
    font-size: 72px !important;
    line-height: 1.0 !important;
    font-weight: 700 !important;
    letter-spacing: -2px !important;
    margin: 0 0 16px !important;
    max-width: 700px;
    text-shadow: 0 2px 20px rgba(0,0,0,.2);
    color: #fff !important;
    transition: opacity 0.15s ease;
}
/* Shared category-hero title sizing (flights/hotels/tours/esim share these via partials/category-hero.blade.php). Page-level rules with .{slug}-landing-wrap prefix override these. */
.category-hero .editorial-hero-title { font-size: 56px !important; line-height: 1.05 !important; letter-spacing: -1px !important; max-width: 760px; }
.editorial-hero-lede {
    font-size: 16px;
    line-height: 1.5;
    max-width: 480px;
    color: rgba(255,255,255,.88);
    font-weight: 400;
    margin-bottom: 0;
    transition: opacity 0.15s ease;
}

/* Legacy fallback — prevents old .hero-bg from showing blue gradient */
.hero-bg { background: transparent !important; }

/* ============================================
   SEARCH WIDGET
   ============================================ */

.search-tabs-wrap {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overflow: hidden;
}
.search-tabs-wrap::-webkit-scrollbar { display: none; }

.search-tab {
    flex: 1;
    padding: 14px 10px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
    color: var(--editorial-brown-light);
    cursor: pointer;
    font-family: var(--font-sans);
    position: relative;
    transition: color .15s;
    white-space: nowrap;
    margin-bottom: -1px;
}
.search-tab.active {
    color: var(--editorial-brown);
    border-bottom: 2px solid var(--editorial-blue);
    background: rgba(42,31,20,.02);
}
.search-tab:hover:not(.active) {
    color: var(--editorial-brown);
    background: rgba(42,31,20,.02);
}

.search-card {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 24px 60px -15px rgba(42,31,20,.25), 0 2px 4px rgba(42,31,20,.06);
    overflow: visible;
}

.s-tab {
    background: var(--editorial-field-bg);
    border: 1.5px solid var(--editorial-field-border);
    border-radius: 3px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--editorial-brown-light);
    cursor: pointer;
    transition: all .2s;
    font-family: var(--font-sans);
}
.s-tab:hover { background: var(--editorial-cream-dark); color: var(--editorial-brown); border-color: rgba(42,31,20,.2); }
.s-tab.active { background: var(--editorial-brown); color: #fff; border-color: var(--editorial-brown); box-shadow: 0 4px 12px rgba(42,31,20,.2); }

.triptype-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s;
    border: 1.5px solid rgba(42,31,20,.12);
    color: var(--editorial-brown-light);
    background: #f5f2ec;
    font-family: var(--font-sans);
}
.triptype-btn:hover {
    border-color: rgba(42,31,20,.25);
    color: var(--editorial-brown);
}
.triptype-btn.active {
    background: #2a1f14;
    color: #fff;
    border-color: #2a1f14;
}

/* Transfer vehicle-type selectable cards */
.home-transfer-veh {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px;
    border: 1.5px solid rgba(42,31,20,.12);
    background: #f5f2ec; color: #6b5d4e;
    font-family: var(--font-sans); text-align: left;
    cursor: pointer; transition: all .15s;
}
.home-transfer-veh i { font-size: 20px; color: var(--editorial-blue); width: 24px; text-align: center; }
.home-transfer-veh p { margin: 0; font-size: 13px; font-weight: 700; color: var(--editorial-brown); }
.home-transfer-veh span { font-size: 11px; color: var(--editorial-brown-lighter); }
.home-transfer-veh:hover { border-color: rgba(42,31,20,.28); }
.home-transfer-veh.active {
    background: #fff; border-color: var(--editorial-brown); color: var(--editorial-brown);
    box-shadow: 0 2px 10px rgba(42,31,20,.08);
}
.home-transfer-veh.active p { color: var(--editorial-brown); }

.pax-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 300px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 16px 48px rgba(0,0,0,.12);
    border: 1px solid var(--editorial-field-border-light);
    z-index: 100;
    padding: 20px;
}

.counter-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1.5px solid var(--editorial-field-border);
    border-radius: 8px;
    padding: 6px 8px;
    background: var(--editorial-field-bg);
}
.counter-btn {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--editorial-blue);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    transition: background .2s;
}
.counter-btn:hover { background: var(--editorial-blue-dark); }
.counter-val {
    min-width: 32px;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--editorial-brown);
}

/* ============================================
   HOME POPULAR ROUTES PANEL
   ============================================ */

#home-popular-panel {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 2px);
    display: none;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(42,31,20,.12);
    box-shadow: 0 10px 40px -10px rgba(0,0,0,.2);
    max-height: 280px;
    overflow-y: auto;
}
#home-popular-panel.open { display: block; }
#home-popular-panel .hpp-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--editorial-brown-lighter);
    padding: 10px 14px 4px;
    border-bottom: 1px solid rgba(42,31,20,.06);
    font-family: var(--font-mono);
}
#home-popular-panel button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    border-bottom: 1px solid rgba(42,31,20,.06);
    background: transparent;
    color: var(--editorial-brown);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background .1s;
    font-family: var(--font-sans);
}
#home-popular-panel button:last-child { border-bottom: none; }
#home-popular-panel button:hover { background: var(--editorial-field-bg); color: var(--editorial-blue); }
#home-popular-panel button .hpp-icon { color: var(--editorial-brown-lighter); font-size: 11px; flex-shrink: 0; }
#home-popular-panel button .hpp-codes { font-size: 12px; color: var(--editorial-brown-lighter); margin-left: auto; padding-left: 8px; font-family: var(--font-mono); }

/* ============================================
   BENEFITS STRIP
   ============================================ */

.benefits-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid rgba(42,31,20,.12);
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}
.benefit-cell {
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid rgba(42,31,20,.1);
}
.benefit-cell:first-child { border-left: none; }
.benefit-icon-wrap {
    width: 40px; height: 40px;
    border-radius: 20px;
    background: var(--editorial-field-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.benefit-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.2px;
    color: var(--editorial-brown);
    line-height: 1.2;
}
.benefit-sub { font-size: 12px; color: var(--editorial-brown-light); margin-top: 3px; }

/* ============================================
   CAMPAIGN REELS
   ============================================ */

.campaign-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    margin: 0 -40px;
    padding: 0 40px 20px;
    cursor: grab;
    user-select: none;
    scroll-snap-type: x mandatory;
}
.campaign-track::-webkit-scrollbar { display: none; }
.campaign-track.dragging { cursor: grabbing; }

.campaign-card {
    flex: 0 0 300px;
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform .2s;
}
.campaign-card:hover { transform: translateY(-3px); }

.campaign-card-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 3px;
    overflow: hidden;
    background: #000;
}
.campaign-card-img-wrap img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.campaign-card-img-wrap .campaign-card-grad {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.55));
}
.campaign-card-badge {
    position: absolute;
    top: 14px; left: 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    padding: 5px 10px;
    border-radius: 2px;
    display: inline-block;
}
.campaign-card-meta { padding: 16px 4px 0; }
.campaign-card-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -.4px;
    margin: 0;
    line-height: 1.2;
    color: var(--editorial-brown);
}
.campaign-card-sub { font-size: 13px; color: #6b5d4e; margin-top: 4px; }

/* ============================================
   EDITORIAL DESTINATION CARDS
   ============================================ */

.ed-dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ed-dest-card {
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(42,31,20,.08);
    background: #fff;
    transition: transform .2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}
.ed-dest-card:hover { transform: translateY(-2px); }
.ed-dest-card:hover .ed-dest-img { transform: scale(1.04); }
.ed-dest-img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.ed-dest-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; display: block; }
.ed-dest-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ed-dest-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ed-dest-city { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--editorial-brown); letter-spacing: -.4px; margin: 0; }
.ed-dest-country { font-size: 12px; color: var(--editorial-brown-lighter); margin-top: 2px; }
.ed-dest-rating { font-size: 13px; color: var(--editorial-brown); display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.ed-dest-details { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--editorial-brown-light); }
.ed-dest-price { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--editorial-blue); letter-spacing: -.4px; display: block; line-height: 1; margin-top: 2px; }
.ed-dest-price-from { font-family: var(--font-mono); font-size: 10px; color: var(--editorial-brown-lighter); letter-spacing: 1px; }
.ed-dest-nights { font-size: 11px; color: var(--editorial-brown-lighter); }
.ed-dest-cta { background: var(--editorial-brown); color: #fff; padding: 8px 14px; border-radius: 2px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ed-dest-footer { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 10px; border-top: 1px solid rgba(42,31,20,.06); margin-top: auto; }

/* ============================================
   PRICE LIST
   ============================================ */

.price-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.price-list-item {
    background: #fff;
    border: 1px solid rgba(42,31,20,.08);
    border-radius: 4px;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    transition: all .18s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.price-list-item:hover { border-color: rgba(42,31,20,.25); transform: translateY(-2px); }
.price-list-item-head { display: flex; justify-content: space-between; align-items: center; }
.price-list-airline { display: flex; align-items: center; gap: 6px; }
.price-list-airline-logo { height: 24px; object-fit: contain; opacity: .7; }
.price-list-one-way { font-size: 11px; background: #f3f6fa; color: #0d47a1; padding: 4px 10px; border-radius: 100px; font-weight: 600; letter-spacing: .2px; }
.price-list-item-body { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.price-list-iata { display: flex; align-items: center; gap: 10px; font-family: var(--font-sans); font-size: 22px; font-weight: 700; color: var(--editorial-brown); letter-spacing: -.3px; }
.price-list-from { font-size: 12px; color: var(--editorial-brown-lighter); margin-top: 6px; letter-spacing: -.1px; }
.price-list-price-block { text-align: right; }
.price-list-price { font-family: var(--font-serif); font-size: 24px; font-weight: 500; color: #0d47a1;; letter-spacing: -.5px; display: block; line-height: 1; }
.price-trend-down { font-size: 11px; color: #3a8552; margin-top: 2px; font-weight: 600; display: block; }
.price-trend-up   { font-size: 11px; color: #c04a3a; margin-top: 2px; font-weight: 600; display: block; }

/* ============================================
   CARDS — Route, Destination, Blog, Hotel, Deal, Promo
   ============================================ */

.route-card {
    display: block;
    background: #fff;
    border: 1px solid rgba(42,31,20,.12);
    border-radius: 8px;
    padding: 20px 22px;
    text-decoration: none;
    transition: all .25s;
}
.route-card:hover {
    border-color: var(--editorial-blue);
    box-shadow: 0 12px 40px -10px rgba(13,71,161,.18);
    transform: translateY(-2px);
}

.dest-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 200px;
    text-decoration: none;
}
.dest-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.dest-card:hover img { transform: scale(1.08); }
.dest-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, transparent 55%);
}
.dest-card .dest-info, .dest-info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 16px 18px;
    z-index: 1;
}

.hotel-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(42,31,20,.12);
    transition: all .3s;
}
.hotel-card:hover { box-shadow: 0 16px 48px -12px rgba(0,0,0,.14); border-color: transparent; }
.hotel-img-wrap { overflow: hidden; height: 220px; }
.hotel-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.hotel-card:hover .hotel-img-wrap img { transform: scale(1.06); }

.deal-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(42,31,20,.12);
    transition: all .3s;
    text-decoration: none;
}
.deal-card:hover {
    box-shadow: 0 16px 48px rgba(13,71,161,.12);
    transform: translateY(-6px);
    border-color: var(--editorial-blue);
}
.deal-card-img { height: 200px; overflow: hidden; }
.deal-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.deal-card:hover .deal-card-img img { transform: scale(1.07); }
.deal-card[data-type="flight"]   { border-top: 4px solid var(--editorial-blue); }
.deal-card[data-type="hotel"]    { border-top: 4px solid #8b5cf6; }
.deal-card[data-type="tour"]     { border-top: 4px solid #10b981; }
.deal-card[data-type="transfer"] { border-top: 4px solid #f59e0b; }
.deal-card[data-type="bus"]      { border-top: 4px solid #14b8a6; }

.home-blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

@media (max-width: 768px) {
    .home-blog-section {
        padding: 0 16px !important;
        margin-top: 48px !important;
    }
    .home-blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-blog-grid .blog-card img {
        height: 120px !important;
    }
    .home-blog-grid .blog-card h3 {
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 5px 0 4px !important;
    }
    .home-blog-grid.m-collapsible.collapsed {
        max-height: 300px !important;
    }
}

.blog-card {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform .2s;
}
.blog-card:hover { transform: translateY(-2px); }
.blog-img-wrap { overflow: hidden; border-radius: 2px; }
.blog-img-wrap img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}
.blog-card:hover .blog-img-wrap img { transform: scale(1.04); }

.promo-card {
    display: block;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    text-decoration: none;
}
.promo-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.15) 60%, transparent);
}
.promo-card .promo-content, .promo-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 1;
    padding: 36px;
}

/* ============================================
   AIRLINES
   ============================================ */

.airline-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 3px;
    border: 1.5px solid var(--editorial-field-border-light);
    background: #fff;
    transition: all .25s;
    opacity: .7;
    filter: grayscale(30%);
}
.airline-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--editorial-blue);
    box-shadow: 0 4px 16px rgba(13,71,161,.1);
}

/* ============================================
   QUICK ACTION CARDS
   ============================================ */

.qa-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-radius: 8px;
    padding: 18px 20px;
    border: 1px solid rgba(42,31,20,.12);
    transition: all .25s;
    text-decoration: none;
}
.qa-card:hover {
    border-color: var(--editorial-blue);
    box-shadow: 0 8px 30px -8px rgba(13,71,161,.2);
    transform: translateY(-2px);
}
.qa-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.qa-card span { font-size: 15px; font-weight: 700; color: var(--editorial-brown); }

/* ============================================
   FAQ
   ============================================ */

.faq-list { border-top: 1px solid rgba(42,31,20,.15); }
.faq-item { border-bottom: 1px solid rgba(42,31,20,.12); padding: 24px 0; cursor: pointer; }
.faq-q-row { display: flex; align-items: center; gap: 24px; }
.faq-num { font-family: var(--font-mono); font-size: 12px; color: var(--editorial-brown-lighter); min-width: 32px; flex-shrink: 0; }
.faq-q { flex: 1; font-family: var(--font-serif); font-size: 20px; font-weight: 500; letter-spacing: -.3px; color: var(--editorial-brown); margin: 0; }
.faq-toggle { font-size: 24px; font-weight: 300; color: var(--editorial-brown); transition: transform .2s; width: 24px; text-align: center; line-height: 1; flex-shrink: 0; }
.faq-toggle.open { transform: rotate(45deg); }
.faq-answer { margin-top: 14px; margin-left: 56px; font-size: 15px; line-height: 1.65; color: var(--editorial-brown-light); max-width: 720px; display: none; }
.faq-answer.open { display: block; }

/* ============================================
   POPULAR ROUTES SEO GRID
   ============================================ */

.pop-routes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(42,31,20,.12);
}
.pop-routes-col { display: flex; flex-direction: column; gap: 4px; }
.pop-routes-head {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1.8px;
    color: var(--editorial-brown-lighter);
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(42,31,20,.08);
}
.pop-routes-link {
    font-size: 14px;
    color: var(--editorial-brown);
    text-decoration: none;
    padding: 7px 0;
    display: block;
    transition: color .15s;
}
.pop-routes-link:hover { color: var(--editorial-blue); }

/* ============================================
   FOOTER
   ============================================ */

.editorial-footer {
    background: var(--editorial-blue-dark);
    color: rgba(255,255,255,.8);
    margin-top: 100px;
    width: 100%;
    font-family: var(--font-sans);
}
.editorial-footer-grid {
    max-width: 1320px;
    margin: 0 auto;
    padding: 80px 40px 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
}
.editorial-footer-col h3 {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    margin-bottom: 18px;
    font-weight: 600;
}
.editorial-footer-col > p { font-size: 14px; line-height: 1.6; margin-bottom: 16px; color: rgba(255,255,255,.8); }
.editorial-footer-col ul { list-style: none; padding: 0; margin: 0; }
.editorial-footer-col li { margin-bottom: 10px; }
.editorial-footer-col a { font-size: 14px; color: rgba(255,255,255,.8); text-decoration: none; transition: color .2s; }
.editorial-footer-col a:hover { color: #fff; }
.editorial-footer-badges { display: flex; gap: 8px; margin-top: 12px; }
.editorial-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,.08);
    border-radius: 6px;
    font-size: 12px;
    color: rgba(255,255,255,.8);
}
.editorial-footer-legal { display: flex; gap: 24px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.6); }
.editorial-footer-legal a { font-size: 12px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.editorial-footer-legal a:hover { color: rgba(255,255,255,.9); }
.editorial-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255,255,255,.5);
}
.editorial-footer-credit { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; }

footer a:hover { color: var(--editorial-amber); }

/* ============================================
   AUTOCOMPLETE v2 (Skyscanner-style, vanilla JS)
   ============================================ */

.ac2-dropdown {
    position: absolute;
    z-index: 9999;
    background: #ffffff;
    border: 1px solid rgba(42,31,20,.12);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(42,31,20,.16), 0 2px 6px rgba(42,31,20,.06);
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    box-sizing: border-box;
    font-family: var(--font-sans, system-ui, sans-serif);
    min-width: 320px;
    max-width: calc(100vw - 16px);
}
.ac2-dropdown.open { display: block; }

.ac2-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(42,31,20,.06);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: #0f172a;
    transition: background .12s;
}
.ac2-dropdown .ac2-row:last-child { border-bottom: 0; }
.ac2-row:hover, .ac2-row.is-active { background: #f1f5f9; }
.ac2-row-icon {
    width: 18px;
    text-align: center;
    color: #475569;
    font-size: 14px;
    flex-shrink: 0;
}
.ac2-row-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ac2-row-main {
    font-size: 14px;
    line-height: 1.25;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ac2-row-main strong { font-weight: 700; color: #0f172a; }
.ac2-row-sub {
    font-size: 12px;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.ac2-empty {
    padding: 18px 14px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

/* Mobile full-screen overlay */
.ac2-mobile-sheet {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #ffffff;
    display: none;
    flex-direction: column;
}
.ac2-mobile-sheet.open { display: flex; }
html.ac2-mobile-open, html.ac2-mobile-open body { overflow: hidden; }
.ac2-mobile-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(15,23,42,.08);
    background: #ffffff;
    position: sticky;
    top: 0;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
.ac2-mobile-back {
    width: 44px; height: 44px;
    border: 0;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px;
    font-size: 18px;
}
.ac2-mobile-back:hover { background: #f1f5f9; }
.ac2-mobile-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.ac2-mobile-search-icon {
    position: absolute;
    left: 12px;
    color: #94a3b8;
    font-size: 14px;
    pointer-events: none;
}
.ac2-mobile-input {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 36px;
    border: 1px solid rgba(15,23,42,.12);
    border-radius: 10px;
    font-size: 16px; /* iOS: ≥16 to prevent zoom */
    background: #f8fafc;
    color: #0f172a;
    outline: none;
}
.ac2-mobile-input:focus { background: #ffffff; border-color: #0d47a1; }
.ac2-mobile-clear {
    position: absolute;
    right: 4px;
    width: 36px; height: 36px;
    border: 0;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
}
.ac2-mobile-clear:hover { color: #475569; background: #f1f5f9; }
.ac2-mobile-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ac2-mobile-list .ac2-row {
    padding: 14px 16px;
    min-height: 56px;
}

/* Popular routes panel (input focus → suggestions) — same skin as ac2-dropdown */
.ac2-popular-panel {
    background: #ffffff;
    border: 1px solid rgba(42,31,20,.12);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(42,31,20,.16), 0 2px 6px rgba(42,31,20,.06);
    overflow: hidden;
    font-family: var(--font-sans, system-ui, sans-serif);
}
.ac2-popular-title {
    padding: 10px 14px 8px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a7a6a;
    border-bottom: 1px solid rgba(42,31,20,.06);
    background: #ffffff;
}
.ac2-popular-list { max-height: 320px; overflow-y: auto; }
.ac2-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(42,31,20,.06);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    color: #0f172a;
    font-size: 14px;
    transition: background .12s;
}
.ac2-popular-item:last-child { border-bottom: 0; }
.ac2-popular-item:hover, .ac2-popular-item.is-active { background: #f1f5f9; }
.ac2-popular-icon {
    width: 18px;
    text-align: center;
    color: #475569;
    font-size: 14px;
    flex-shrink: 0;
}
.ac2-popular-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ac2-popular-codes {
    flex-shrink: 0;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: #64748b;
    letter-spacing: .04em;
}

/* ============================================
   AUTOCOMPLETE (legacy jQuery UI — kept for any non-flight forms still using it)
   ============================================ */

.ui-autocomplete,
.ui-autocomplete.ac-modern-dropdown {
    position: absolute;
    z-index: 9999 !important;
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    background: #ffffff !important;  /* solid surface — !important overrides Tailwind preflight */
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(42,31,20,.18), 0 2px 6px rgba(42,31,20,.08);
    border: 1px solid var(--editorial-field-border, rgba(42,31,20,.15));
    font-family: var(--font-sans);
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
    /* Cap to viewport so the dropdown can never escape — JS also pins width to
       the input via _resizeMenu, but this guards against cached/old JS. */
    box-sizing: border-box;
    max-width: calc(100vw - 16px);
}
/* Custom-rendered rows are display:flex with nowrap children; force them to fit
   the LI width so the ellipsis on .ac-ap-name actually triggers and the natural
   content width doesn't drag the dropdown to viewport-wide. */
.ui-autocomplete .ui-menu-item { width: 100%; box-sizing: border-box; }
.ui-autocomplete .ui-menu-item { list-style: none; padding: 0; margin: 0; background: transparent; }
.ui-autocomplete .ui-menu-item-wrapper {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--editorial-brown, #2a1f14);
    background: transparent;
    border: none !important;
    cursor: pointer;
}
.ui-autocomplete .ui-menu-item-wrapper:hover,
.ui-autocomplete .ui-state-active,
.ui-autocomplete .ui-state-focus,
.ui-widget-content .ui-state-active {
    background: var(--editorial-cream-mid, #f5f2ec) !important;
    color: var(--editorial-brown, #2a1f14) !important;
    border: none !important;
    margin: 0 !important;
}
/* Custom rendered rows (autocomplete.js: ac-city-row / ac-airport-row) */
.ui-autocomplete .ac-city-row,
.ui-autocomplete .ac-airport-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 14px;
    color: var(--editorial-brown, #2a1f14);
    border-bottom: 1px solid rgba(42,31,20,.06);
    background: transparent;
    line-height: 1.3;
}
.ui-autocomplete .ui-menu-item:last-child .ac-city-row,
.ui-autocomplete .ui-menu-item:last-child .ac-airport-row { border-bottom: none; }
.ui-autocomplete .ac-city-row { font-weight: 700; background: var(--editorial-cream, #fcfbf8); }
.ui-autocomplete .ac-city-icon { color: var(--editorial-blue, #0d47a1); font-size: 13px; width: 16px; text-align: center; }
.ui-autocomplete .ac-city-label { flex: 1; min-width: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.ui-autocomplete .ac-ap-icon { color: var(--editorial-brown-lighter, #8a7a6a); font-size: 12px; width: 16px; text-align: center; }
.ui-autocomplete .ac-ap-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ui-autocomplete .ac-ap-code {
    flex-shrink: 0;
    font-family: var(--font-mono, 'JetBrains Mono', monospace);
    font-size: 11px;
    font-weight: 700;
    color: var(--editorial-blue, #0d47a1);
    background: rgba(13,71,161,.08);
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: .04em;
}
.ui-autocomplete .ui-state-active .ac-airport-row,
.ui-autocomplete .ui-state-active .ac-city-row,
.ui-autocomplete .ui-state-focus .ac-airport-row,
.ui-autocomplete .ui-state-focus .ac-city-row { background: transparent; }
.airport-city-header strong {
    padding: 8px 14px;
    color: var(--editorial-brown-lighter);
    display: block;
    background: var(--editorial-field-bg);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    cursor: default;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .editorial-nav-links { display: none; }
    .editorial-nav-inner { gap: 20px; padding: 14px 24px; }
    .editorial-footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; padding: 60px 32px 32px; }
    .ed-dest-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; }
    /* ── Shared service-page hero: fixed 360px height so all search cards align ── */
    /* section.category-hero specificity (0,1,1) beats .editorial-hero (0,1,0) even when both !important */
    section.category-hero {
        min-height: 360px !important;
        max-height: 360px !important;
        overflow: hidden !important;
        padding-bottom: 100px !important;
    }
    /* ── Shared service search card: consistent -100px overlap ── */
    .fl-search-wrap, .ht-search-wrap, .esim-search-wrap,
    .bus-search-wrap, .tr-search-wrap, .tfr-search-wrap, .service-search-wrap {
        width: calc(100% - 24px) !important;
        margin-top: -100px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .editorial-hero-title { font-size: 1.75rem !important; letter-spacing: -.5px !important; line-height: 1.15 !important; }
    .category-hero .editorial-hero-title { font-size: 28px !important; line-height: 1.15 !important; letter-spacing: -.5px !important; }
    .editorial-hero-lede  { font-size: .85rem !important; }
    .editorial-hero       { min-height: 300px !important; padding-bottom: 32px !important; }
    .editorial-hero-img img { min-height: 300px !important; }
    .ed-title             { font-size: 1.75rem !important; }
    .benefits-strip       { grid-template-columns: repeat(2, 1fr) !important; }
    .benefit-cell         { border-left: none !important; border-top: 1px solid rgba(42,31,20,.1) !important; }
    .benefit-cell:first-child, .benefit-cell:nth-child(2) { border-top: none !important; }
    .price-list-grid      { grid-template-columns: repeat(2, 1fr) !important; }
    .pop-routes-grid      { grid-template-columns: repeat(2, 1fr) !important; gap: 20px !important; }
    .faq-q                { font-size: 16px !important; }
    .dest-card            { height: 160px; }

    /* Home: page section side padding tightened so nothing overflows the right edge */
    section[style*="padding:0 40px"], div[style*="padding:0 40px"] { padding-left: 16px !important; padding-right: 16px !important; }

    /* Home 4-column benefits/trust box → 2×2 */
    /* Home search wrapper — tighter width + lifted higher on mobile */
    .home-search-wrap { width: calc(100% - 20px) !important; margin-top: -60px !important; }
    .home-search-wrap .search-card .search-tabs-wrap { padding: 0 4px; }

    /* jQuery UI autocomplete stays inside viewport on mobile */
    .ui-autocomplete {
        max-width: calc(100vw - 24px) !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
    }

    .home-benefits-4col { grid-template-columns: repeat(2, 1fr) !important; }
    .home-benefits-4col > div:nth-child(n+3) { border-top: 1px solid rgba(42,31,20,.1); }
    .home-benefits-4col > div:nth-child(odd)  { border-left: none !important; }
    .home-benefits-4col > div:nth-child(even) { border-left: 1px solid rgba(42,31,20,.1) !important; }

    /* Campaign cards: 2.5 visible on mobile */
    .campaign-track { margin: 0 -16px !important; padding: 0 16px 16px !important; gap: 12px !important; }
    .campaign-card  { flex: 0 0 38% !important; }
    .campaign-card-title { font-size: 16px !important; }
    .campaign-card-sub   { font-size: 12px !important; }

    /* Airlines strip → horizontal carousel with snap */
    .home-airlines-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        border-top: none !important;
        border-bottom: none !important;
        padding: 14px 0 !important;
        gap: 8px;
    }
    .home-airlines-grid::-webkit-scrollbar { display: none; }
    .home-airlines-grid > div {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
        min-width: 110px;
        border-right: none !important;
        border: 1px solid rgba(42,31,20,.08);
        border-radius: 4px;
    }

    /* Collapsible lists on mobile */
    .m-collapsible { position: relative; }
    .m-collapsible.collapsed { max-height: 340px; overflow: hidden; }
    .m-collapsible.collapsed::after {
        content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
        background: linear-gradient(180deg, rgba(252,251,248,0) 0%, #fcfbf8 85%);
        pointer-events: none;
    }
    .m-collapsible-toggle-wrap { display: block !important; text-align: center; margin-top: 16px; }
    .m-collapsible-toggle {
        display: inline-flex !important;
        align-items: center; gap: 8px;
        padding: 10px 20px; border-radius: 100px;
        background: #fff; border: 1.5px solid rgba(42,31,20,.15);
        color: #2a1f14; font-size: 13px; font-weight: 600;
        cursor: pointer; font-family: inherit;
    }
}

/* Hide collapsible toggle on desktop; collapsed max-height also ignored */
.m-collapsible-toggle-wrap { display: none; }
.m-collapsible-toggle { display: none; }

@media (max-width: 640px) {
    .editorial-nav-inner  { padding: 12px 16px; }
    .editorial-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; padding: 40px 20px 24px; }
    .editorial-footer-grid > .editorial-footer-col:first-child { grid-column: 1 / -1; }
    .editorial-footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
    .editorial-hero-title { font-size: 1.5rem !important; line-height: 1.15 !important; }
    .category-hero .editorial-hero-title { font-size: 24px !important; }
    .editorial-hero       { min-height: 260px !important; padding-bottom: 20px !important; }
    .editorial-hero-img img { min-height: 260px !important; }
    .form-input           { min-height: 45px; padding: 10px 12px; font-size: 14px; }
    .form-input.pl-8      { padding-left: 2rem; }
    .form-input.pl-10     { padding-left: 2.5rem; }
    .form-input.pr-10     { padding-right: 2.5rem; }
    .search-tab           { padding: 10px 10px; }
    .airline-item         { padding: 8px 12px; }
    .airline-item img     { height: 32px !important; }
    .price-list-grid      { grid-template-columns: 1fr !important; }
    .campaign-card        { flex: 0 0 44% !important; }
    .section-header h2    { font-size: 1.5rem; }
    .faq-answer           { margin-left: 0 !important; }
}

/* Search-card tabs become icon-only on mobile; active tab expands to show label */
@media (max-width: 768px) {
    .search-tabs-wrap { overflow-x: auto !important; }
    .search-tabs-wrap::-webkit-scrollbar { display: none; }
    .search-tab {
        flex: 0 0 auto !important;
        padding: 12px 14px !important;
        white-space: nowrap;
        font-size: 12px !important;
    }
    .search-tab .search-tab-label { display: none; }
    .search-tab.active .search-tab-label { display: inline; margin-left: 6px; }
    .search-tab i { font-size: 15px !important; }
}

/* Navbar: push right-side controls to the far right on mobile (when desktop links are hidden) */
@media (max-width: 1024px) {
    .editorial-nav-right { margin-left: auto !important; }
    .editorial-nav-logo img { height: 18px !important; }
    .editorial-nav-logo span { font-size: 18px !important; }
}

/* ============================================
   CLS — sabit oran ile load esnasında layout shift azaltma
   NOT: Önceden img'e background veriliyordu; şeffaf logoları bozduğu için kaldırıldı.
   onerror placeholder.svg HtmlSeoEnhancer üzerinden devrede.
   ============================================ */
img[src=""], img:not([src]) {
    visibility: hidden;
}

/* ============================================
   F-001: focus-visible — klavye navigasyonu için görünür halka
   outline:none kurallarını geçersiz kılar; mouse tıklamasını etkilemez
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--editorial-blue, #0D47A1) !important;
    outline-offset: 3px !important;
    border-radius: 3px;
}
/* Form input'lar için halka yerine kutu gölgesi (daha estetik) */
.form-input:focus-visible {
    outline: none !important;
    border-color: var(--editorial-blue, #0D47A1) !important;
    box-shadow: 0 0 0 3px rgba(13,71,161,.18) !important;
}

/* ============================================
   F-002: Nav link touch target — minimum 44px yükseklik
   ============================================ */
.editorial-nav-link {
    padding: 12px 0;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* ============================================
   F-003: Form input font-size — iOS zoom önleme (min 16px)
   ============================================ */
.form-input {
    font-size: 16px;
}
@media (max-width: 768px) {
    .form-input { font-size: 16px; }
}
/* Yaygın kart/grid img wrapper'ları için aspect-ratio (CLS azaltır) */
.fl-airline-grid img,
.home-airlines-grid img { aspect-ratio: 16/9; object-fit: contain; padding: 8px; }
.dest-card img,
.tour-card-grid img,
.ht-card img { aspect-ratio: 4/3; object-fit: cover; }
.esim-blog-grid img { aspect-ratio: 16/9; object-fit: cover; }
