/* ==========================================================================
   LookBookAir — destination pages v2 (/destination list + single route pages).
   Loads after site.css, home.css (hero, trust, sections, offer card, FAQ) and inner.css (breadcrumb colours).
   ========================================================================== */

/* ---------- hero: long route titles, breadcrumbs between title and booking panel ---------- */
.lb-body .lb-hero--dest .lb-hero__title {
    max-width: 24ch; margin-bottom: 14px;
    font-size: clamp(1.6rem, min(3.3vw, 6.4vh), 2.6rem); line-height: 1.12;
}
.lb-hero--dest .lb-crumbs { margin: 0 0 clamp(22px, min(3vw, 5vh), 38px); animation: lb-rise .9s var(--ease) .08s both; }
.lb-hero--dest .lb-crumbs .breadcrumb { line-height: 1.2; }

/* ---------- "Book Your Next Trip Today!" strip (uses the home offer card) ---------- */
.lb-dcta { padding-top: 0; }
.lb-body .lb-dcta__title { margin: 0; font: 800 clamp(1.15rem, 2vw, 1.6rem)/1.25 var(--ff-head); letter-spacing: -.02em; color: #fff; }
.lb-dcta .booking-btn { cursor: pointer; }

/* ---------- destination list ---------- */
.lb-dest, .lb-fres {
    margin-top: clamp(8px, 1.4vw, 20px);
    background-image:
        var(--lb-dots), var(--lb-dots), var(--lb-rings),
        radial-gradient(560px 400px at 100% 340px, rgba(255, 102, 0, .06), transparent 100%),
        radial-gradient(600px 400px at 0% calc(100% - 300px), rgba(27, 71, 117, .08), transparent 100%),
        linear-gradient(180deg, #fff 0, var(--bg) 150px, var(--bg) calc(100% - 150px), #fff 100%);
    background-position: right -150px top 40px, left -170px bottom 30px, right -250px top 130px, 0 0, 0 0, 0 0;
    background-size: 480px, 480px, 640px, auto, auto, auto;
}
.lb-dest__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lb-dest__card {
    position: relative; display: flex; align-items: center; gap: 14px; padding: 15px 16px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.lb-dest__card:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: var(--sh-2); }
.lb-dest__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--navy-50); color: var(--navy); transition: background-color .35s var(--ease), color .35s var(--ease); }
.lb-dest__icon .lb-ico { width: 19px; height: 19px; transition: transform .45s var(--ease); }
.lb-dest__card:hover .lb-dest__icon { background: var(--navy); color: #fff; }
.lb-dest__card:hover .lb-dest__icon .lb-ico { transform: translate(2px, -2px) rotate(-8deg); }
.lb-dest__body { flex: 1; min-width: 0; }
.lb-body .lb-dest__route { font: 700 1rem/1.3 var(--ff-head); letter-spacing: -.01em; color: var(--navy); overflow-wrap: anywhere; }
.lb-dest__arrow { color: var(--orange); font-weight: 400; }
.lb-dest__link { display: block; margin-top: 3px; font-size: .84rem; line-height: 1.45; color: var(--muted) !important; text-decoration: none; transition: color .25s var(--ease); }
.lb-dest__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lb-dest__card:hover .lb-dest__link { color: var(--orange-700) !important; }
.lb-dest__go { color: #A9B5C4; transition: transform .35s var(--ease), color .35s var(--ease); }
.lb-dest__card:hover .lb-dest__go { color: var(--orange); transform: translateX(4px); }

/* pagination (Laravel "bootstrap-5" view, styled here because the new layout has no Bootstrap) */
.lb-dest__pager { margin-top: clamp(22px, 2.8vw, 34px); }
.lb-dest__pager nav { display: flex; align-items: center; justify-content: space-between; }
.lb-dest__pager nav > div { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.lb-dest__pager nav > .d-none { display: none; }
.lb-dest__pager p { margin: 0; font-size: .86rem; color: var(--muted); }
.lb-dest__pager p span { font-weight: 600; color: var(--ink); }
.lb-dest__pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.lb-dest__pager nav > .d-sm-none .pagination { width: 100%; justify-content: space-between; }
.lb-dest__pager .page-link {
    display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 12px;
    background: #fff; border: 1px solid var(--line); border-radius: 10px;
    font: 600 .86rem/1 var(--ff-body); color: var(--navy); text-decoration: none;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.lb-dest__pager a.page-link:hover { border-color: var(--navy); transform: translateY(-2px); }
.lb-dest__pager .page-item.active .page-link { background: var(--navy); border-color: var(--navy); color: #fff; }
.lb-dest__pager .page-item.disabled .page-link { background: transparent; color: #A9B5C4; }
@media (min-width: 576px) {
    .lb-dest__pager nav > .d-sm-none { display: none; }
    .lb-dest__pager nav > .d-sm-flex { display: flex; }
}

/* ---------- single route page: flight results ---------- */
/* Everything below styles markup produced by the page's own inline script (JS template #flight-template). */
.lb-fres .flights-search-result-inner, .lb-fres .search-results-wrapper { display: block; width: 100%; margin: 0; padding: 0; }
.lb-fres #search-results { display: grid; gap: 14px; }
.lb-fres #search-results:empty { display: none; }
.lb-fres:has(#search-results:empty) .lb-head { margin-bottom: 0; }

.lb-fres .single-flight-box {
    margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
    transition: box-shadow .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.lb-fres .single-flight-box:hover { transform: translateY(-3px); border-color: transparent; box-shadow: var(--sh-2); }
.lb-fres .flight-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px; }
.lb-fres .flight-box-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); height: 100%; }
.lb-fres .flight-depart, .lb-fres .flight-return { min-width: 0; padding: 16px 20px 18px; }
.lb-fres .flight-return { border-left: 1px dashed var(--line); }

.lb-fres .depart-return-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.lb-body .lb-fres .depart-return-title h2 { font: 700 .8rem/1.3 var(--ff-body); letter-spacing: .01em; color: var(--ink); }
.lb-body .lb-fres .depart-return-title .cabin-class { flex: none; padding: 4px 9px; border-radius: 999px; background: var(--navy-50); font: 600 .7rem/1.2 var(--ff-body); letter-spacing: .04em; text-transform: uppercase; color: var(--navy-600); }
.lb-fres .depart-return-title .cabin-class:empty { display: none; }

.lb-fres .flight-details { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; }
.lb-fres .flight-airline-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; min-width: 0; }
.lb-fres .flight-airline-logo img { width: 34px; height: 34px; border-radius: 8px; object-fit: contain; }
.lb-fres .flight-airline-logo span { font-size: .78rem; font-weight: 600; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.lb-fres .flight-from-to > .fr { display: grid; grid-template-columns: auto minmax(40px, 1fr) auto; gap: 12px; align-items: center; }
.lb-fres .flight-time { font: 800 1.08rem/1.2 var(--ff-head); letter-spacing: -.01em; color: var(--navy); white-space: nowrap; text-align: center; }
.lb-fres .airport-code { margin-top: 2px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-align: center; }
.lb-fres .est-time-type { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.lb-body .lb-fres .est-time-type h5, .lb-body .lb-fres .est-time-type h6 { margin: 0; font-family: var(--ff-body); }
.lb-body .lb-fres .est-time-type .dur { font-size: .74rem; font-weight: 600; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.lb-body .lb-fres .est-time-type .type { font-size: .72rem; font-weight: 700; line-height: 1.2; color: var(--orange-700); white-space: nowrap; }
.lb-fres .est-time-type .sprt { position: relative; width: 100%; height: 7px; }
.lb-fres .est-time-type .sprt span { position: absolute; left: 0; right: 0; top: 3px; height: 0; border-top: 1.5px dashed #C5D0DD; }
.lb-fres .est-time-type .sprt::before, .lb-fres .est-time-type .sprt::after { content: ""; position: absolute; top: 0; width: 7px; height: 7px; border-radius: 50%; background: #fff; border: 1.5px solid var(--navy); z-index: 1; }
.lb-fres .est-time-type .sprt::before { left: 0; }
.lb-fres .est-time-type .sprt::after { right: 0; background: var(--navy); }

.lb-fres .price-box { display: flex; padding: 16px 18px; background: var(--bg); border-left: 1px solid var(--line); text-align: center; }
.lb-fres .price-box > .fr { display: flex; flex-direction: column; justify-content: center; gap: 12px; width: 100%; }
.lb-body .lb-fres .price-box h2 { font: 800 1.4rem/1.1 var(--ff-head); letter-spacing: -.02em; color: var(--navy); }
.lb-fres .price-box span { display: block; margin-top: 3px; font-size: .74rem; font-weight: 500; color: var(--muted); }
.lb-fres .book-flight-now {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 0 16px;
    background: var(--orange); color: #fff; border: 0; border-radius: 10px; cursor: pointer;
    font: 800 .86rem/1 var(--ff-head); letter-spacing: .01em;
    transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lb-fres .book-flight-now:hover { background: #FF7A1F; transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(255, 102, 0, .85); }
.lb-fres .book-flight-now:active { transform: translateY(1px); }

.lb-fres .flights-not-found, .lb-fres .flight-error { padding: 28px 20px; background: #fff; border: 1px dashed #C5D0DD; border-radius: var(--r-lg); text-align: center; color: var(--muted); }
.lb-body .lb-fres .flights-not-found h5 { margin: 0 0 4px; font: 700 1.02rem/1.35 var(--ff-head); color: var(--navy); }

/* helpers the old page got from Bootstrap / flights.css: both stay hidden exactly as before */
.flights-loader.d-none, .flights-loader.hidden { display: none !important; }
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 1000; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); }

/* ---------- responsive ---------- */
@media (max-width: 1023.98px) {
    .lb-dest__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* results: the price column drops under the two legs before they get cramped */
@media (max-width: 1139.98px) {
    .lb-fres .flight-row { grid-template-columns: minmax(0, 1fr); }
    .lb-fres .price-box { border-left: 0; border-top: 1px solid var(--line); padding: 12px 20px; text-align: left; }
    .lb-fres .price-box > .fr { flex-direction: row; align-items: center; justify-content: space-between; }
    .lb-fres .price-box > .fr > div { width: auto; }
    .lb-fres .book-flight-now { width: auto; min-width: 150px; }
}

/* results: the two legs stack */
@media (max-width: 899.98px) {
    .lb-fres .flight-box-inner { grid-template-columns: minmax(0, 1fr); }
    .lb-fres .flight-return { border-left: 0; border-top: 1px dashed var(--line); }
}

@media (max-width: 767.98px) {
    .lb-dest, .lb-fres { background-size: 300px, 300px, 420px, auto, auto, auto; background-position: right -110px top 20px, left -120px bottom 10px, right -200px top 120px, 0 0, 0 0, 0 0; }
    .lb-dcta .lb-offer__actions .lb-btn { width: 100%; }
    .lb-dest__grid { grid-template-columns: 1fr; gap: 10px; }
    .lb-dest__card { padding: 13px 14px; }
    .lb-fres .flight-depart, .lb-fres .flight-return { padding: 14px 16px 16px; }
    .lb-fres .price-box { padding: 12px 16px; }
}

@media (max-width: 419.98px) {
    .lb-fres .flight-details { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .lb-fres .flight-airline-logo { flex-direction: row; align-items: center; gap: 8px; }
    .lb-fres .flight-airline-logo img { width: 28px; height: 28px; }
    .lb-fres .flight-from-to > .fr { gap: 8px; }
    .lb-fres .flight-time { font-size: 1rem; }
    .lb-fres .book-flight-now { min-width: 124px; }
}

@media (prefers-reduced-motion: reduce) {
    .lb-dest__card, .lb-fres .single-flight-box, .lb-fres .book-flight-now { transition: none; }
}
