/* Area Search — styles. Site palette: blue #0061a9, orange #ff5a00, text #524c61 */
@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

:root {
    --color-blue: #2487ce;
    --color-red: #cc0000;
    --old-price: #999;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Heebo', 'Assistant', 'Segoe UI', Arial, sans-serif;
    color: #524c61;
    background: #f5f5f5;
    font-size: 15px;
    line-height: 1.45;
}

.container { max-width: 1320px; margin: 0 auto; padding: 0 14px; }

a { color: #0061a9; text-decoration: none; }

/* ---------------------------------------------------------------- header */
.site-header { background: #fff; border-bottom: 1px solid #e5e5e5; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.logo img {  }
.header-phone { color: #0061a9; font-weight: 700; font-size: 18px; direction: ltr; }

/* ---------------------------------------------------------------- site header
   The legacy .header/.top_menu markup is styled by style.css, but that stylesheet
   expected the search form INSIDE .header. We keep our own search hero below it,
   so neutralize the float/margin and give the bar a solid white background so it
   sits cleanly above the hero instead of floating transparently over it. */
.header {
    margin: 0 !important;
    float: none;
    /* width: 100%;
    
    background: #fff;
    position: relative;
    z-index: 5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08); */
}
.header::after { content: ''; display: block; clear: both; }

/* ---------------------------------------------------------------- search */
.search-hero {
    background: #0061a9 center/cover no-repeat;
    padding: 22px 0;
    position: relative;
}
.search-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0, 55, 100, .45); }
.search-hero .container { position: relative; }

.search-form {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
    background: rgba(255, 255, 255, .8);
    padding: 25px; border-radius: 10px;
}

/* collapsed one-line search summary — mobile only (hidden on desktop) */
.mobile-search-summary { display: none; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 150px; }
.field.small { flex: 0 1 90px; }
.field label { font-size: 12px; font-weight: 600; color: #6b6478; }
.field select, .field input {
    height: 50px; padding: 0 10px;
    border: 1px solid #d4d1db; border-radius: 6px;
    font: inherit; color: inherit; background: #fff; width: 100%;
}

/* ---- guests picker: one field + popover with +/- steppers ---- */
.field.guests { flex: 1 1 170px; }
.guests-picker { position: relative; }
.guests-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    width: 100%; height: 50px; padding: 0 10px;
    border: 1px solid #d4d1db; border-radius: 6px; background: #fff;
    font: inherit; color: inherit; cursor: pointer; text-align: start;
}
.guests-toggle .fa-caret-down { color: #8a8496; }
.guests-summary { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guests-pop {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0;
    width: 290px; max-width: 86vw;
    background: #fff; border: 1px solid #e2dfe8; border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    padding: 4px 14px 14px; z-index: 1000;
}
.guests-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid #f0eef4;
}
.guests-row:last-of-type { border-bottom: 0; }
.guests-cat { display: flex; flex-direction: column; }
.guests-cat-name { font-weight: 600; color: #2f2a3b; }
.guests-cat-age { font-size: 12px; color: #8a8496; }
.guests-stepper { display: flex; align-items: center; gap: 12px; }
.guests-dec, .guests-inc {
    width: 32px; height: 32px; flex: none; border-radius: 50%;
    border: 1px solid #0061a9; background: #fff; color: #0061a9;
    font-size: 18px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.guests-dec:hover:not(:disabled), .guests-inc:hover:not(:disabled) { background: #e8f1fb; }
.guests-dec:disabled, .guests-inc:disabled { border-color: #d4d1db; color: #cfcbd6; cursor: default; }
.guests-val { min-width: 20px; text-align: center; font-weight: 700; font-size: 16px; }
.guests-hint {
    margin-top: 12px; padding: 8px 10px;
    background: #fff4ec; color: #c2410c;
    border: 1px solid #ffd8bf; border-radius: 6px;
    font-size: 12.5px; font-weight: 600; line-height: 1.4;
}
.guests-done {
    margin-top: 12px; width: 100%; height: 42px;
    border: 1px solid #0061a9; border-radius: 6px;
    background: #fff; color: #0061a9; font: inherit; font-weight: 700; cursor: pointer;
}
.guests-done:hover { background: #0061a9; color: #fff; }

.search-btn {
    height: 50px; padding: 0 34px;
    background: #ff5a00; color: #fff; font-weight: 700; font-size: 16px;
    border: 0; border-radius: 6px; cursor: pointer;
    transition: background .15s;
    position: relative;
}
.search-btn:hover { background: #e65100; }

/* submit loading state: text hides, spinner takes its place */
.search-btn.loading { color: transparent; pointer-events: none; }
.search-btn.loading::after {
    content: '';
    position: absolute; top: 50%; left: 50%;
    width: 20px; height: 20px; margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.offer-board-discount {
    display: flex;
    gap: 10px;
    line-height: 1;
    flex-wrap: nowrap;
    max-width: 200px;
    flex-direction: row;
    align-items: center;
}
/* old results dim while the new search is loading */
.results-head.is-loading { opacity: .4; transition: opacity .2s; }

/* legacy t-datepicker inside the form */
.field.dates { flex: 2 1 280px; }
.field.dates .t-datepicker {
    display: flex;
    overflow: visible;
    gap: 13px;
}
.field.dates .t-check-in, .field.dates .t-check-out { flex: 1; }

/* ---------------------------------------------------------------- results head */
.results-wrap { padding: 18px 14px 40px; }

.results-head {
    display: flex; flex-wrap: wrap; gap: 12px;
    align-items: flex-end; justify-content: space-between;
    margin-bottom: 10px;
}
.results-summary h1 { font-size: 24px; color: #2f2a3b; }
.summary-line { display: flex; gap: 6px; flex-wrap: wrap; font-size: 14px; color: #6b6478; margin-top: 2px; }
.vat-note { font-size: 12px; color: #8a8496; margin-top: 2px; }

.sort-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.sort-btn {
    padding: 8px 14px; border: 1px solid #d4d1db; border-radius: 20px;
    background: #fff; color: #524c61; font: inherit; font-size: 13px; cursor: pointer;
}
.sort-btn.active { background: #0061a9; border-color: #0061a9; color: #fff; }

/* currency picker (English results only) — shaped like a sort pill */
.currency-picker {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 6px 4px 12px; border: 1px solid #d4d1db; border-radius: 20px;
    background: #fff; font-size: 13px; color: #524c61; cursor: pointer;
}
.currency-picker-label { color: #8a8496; }
.currency-picker select {
    border: 0; background: transparent; font: inherit; color: #2c2838;
    font-weight: 700; cursor: pointer; padding: 4px 6px; outline-offset: 2px;
}
/* a converted figure is an estimate, not the sum the hotel charges */
.price.is-converted { border-bottom: 1px dotted #b9b4c4; }

/* provider status chips */
.provider-status { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; min-height: 24px; }
.chip {
    font-size: 11px; padding: 3px 10px; border-radius: 12px;
    background: #eceaf1; color: #8a8496; position: relative;
}
.chip.loading { padding-inline-start: 22px; }
.chip.loading::before {
    content: ''; position: absolute; inset-inline-start: 6px; top: 50%;
    width: 10px; height: 10px; margin-top: -5px;
    border: 2px solid #0061a9; border-top-color: transparent; border-radius: 50%;
    animation: spin .7s linear infinite;
}
.chip.done { background: #e2f2e5; color: #2c7a3d; }
.chip.failed { background: #fbe4e4; color: #b23030; text-decoration: line-through; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- back to top */
.back-to-top {
    position: fixed; bottom: 75px; inset-inline-end: 20px; z-index: 1500;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: #0061a9; color: #fff; cursor: pointer;
    font-size: 18px; line-height: 1;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .3);
    opacity: 0; transform: translateY(10px);
    transition: opacity .2s, transform .2s, background .15s;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: #004e88; }

/* ---------------------------------------------------------------- map view */
.sort-btn.map-toggle { border-color: #0061a9; color: #0061a9; font-weight: 700; }
.sort-btn.map-toggle.active { background: #0061a9; color: #fff; }

.results-body { display: block; }
.results-col { display: block; }
#area-map { display: none; }

/* hotel name filter (above the list) — shown only in map mode */
.hotel-filter {
    display: none; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #d4d1db; border-radius: 8px;
    padding: 0 12px; margin-bottom: 12px; height: 44px;
    max-width: 420px;
}
.hotel-filter .fa-search { color: #8a8496; }
.hotel-filter input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: #2f2a3b;
}
.hotel-filter-clear {
    border: 0; background: #eceaf1; color: #6b6478; cursor: pointer;
    width: 24px; height: 24px; border-radius: 50%; font-size: 12px; line-height: 1;
}
.hotel-filter-clear:hover { background: #ddd9e6; }

/* desktop split: big map (left) + compact list (right).
   row-reverse so in this RTL page the map (first child) lands on the LEFT. */
body.map-mode .results-body {
    display: flex; flex-direction: row-reverse; gap: 14px;
    height: calc(100vh - 40px);
    position: sticky; top: 10px;
}
body.map-mode #area-map {
    display: block; flex: 1 1 64%;
    border-radius: 10px; overflow: hidden;
    border: 1px solid #e5e5e5;
}
body.map-mode .results-col {
    flex: 1 1 36%; display: flex; flex-direction: column; min-height: 0;
}
body.map-mode .hotel-filter { display: flex; max-width: none; margin-bottom: 10px; flex-shrink: 0; }
body.map-mode #results {
    flex: 1; overflow-y: auto; gap: 10px;
    padding-inline-end: 4px;
}
.map-exit { display: none; }

/* price pin marker (Trivago-style pill) */
.price-pin { background: none; border: 0; }
.price-pin .pin-price {
    display: inline-block; white-space: nowrap;
    background: #fff; color: #0061a9; font-weight: 800; font-size: 13px;
    padding: 4px 9px; border-radius: 14px;
    border: 1px solid #0061a9;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    transform: translate(-50%, -50%);
}
.leaflet-marker-icon:hover .pin-price,
.price-pin.hi .pin-price { background: #0061a9; color: #fff; z-index: 500; }

/* map popup mini-card */
.map-popup { width: 190px; text-align: start; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; }
.mp-name { font-weight: 700; font-size: 14px; color: #2f2a3b; margin: 6px 0 2px; }
.mp-price { font-size: 13px; color: #524c61; margin-bottom: 6px; }
.mp-btn { display: inline-block; background: #0061a9; color: #fff; font-weight: 700; font-size: 13px; padding: 6px 16px; border-radius: 6px; }

/* compact right-column list item */
.map-list-item {
    display: flex; gap: 10px; cursor: pointer;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
    overflow: hidden; transition: border-color .12s, box-shadow .12s;
}
.map-list-item.active { border-color: #0061a9; box-shadow: 0 2px 10px rgba(0, 97, 169, .25); }
.mli-img { position: relative; flex: 0 0 110px; height: 100px; }
.mli-img img { width: 100%; height: 100%; object-fit: cover; }
.mli-score {
    position: absolute; top: 5px; inset-inline-end: 5px;
    background: #0061a9; color: #fff; font-weight: 700; font-size: 12px;
    padding: 2px 7px; border-radius: 5px;
}
.mli-body { flex: 1; min-width: 0; padding: 8px 10px; display: flex; flex-direction: column; }
.mli-name { font-weight: 700; font-size: 14px; color: #2f2a3b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mli-city { font-size: 12px; color: #8a8496; }
.mli-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mli-price { font-size: 12px; color: #524c61; }
.mli-price b { font-family: 'Anton', sans-serif; font-weight: 400; color: var(--color-blue); font-size: 18px; }
.mli-btn { background: #0061a9; color: #fff; font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 6px; white-space: nowrap; }

/* ---------------------------------------------------------------- cards */
.results { display: flex; flex-direction: column; gap: 14px; }
.map-active .results {
    display: inline-block;
}
.map-list-item {
    margin: 0 0 5px 0;
}
.map-active .leaflet-container a {
    color: #fff;
}
.offer-head {
    display: flex;
    gap: 5px;
    flex-wrap: wrap; 
}
.hotel-card {
    display: flex; flex-wrap: wrap; gap: 0;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(20, 20, 40, .06);
}
.hotel-card.is-promoted { border-color: #ff5a00; box-shadow: 0 2px 8px rgba(255, 90, 0, .25); }

/* deep-linked hotel (?promoted=hhid) that came back with no availability at all */
.hotel-card.unavailable-card { border: 2px solid #cc0000; }
.no-avail-banner {
    display: inline-block;
    background: #fdecea; color: #cc0000; font-weight: 700; font-size: 14px;
    padding: 8px 14px; border-radius: 6px; margin-top: 6px;
}

/* admin-only: hotel removed from the interface (exclude_hotels_from_interfaces) */
.hotel-card.hotel_is_exclude_logged_in {
    flex-wrap: wrap;
    border: 2px dashed #cc0000;
    opacity: .85;
    position: relative;
}
.excluded-banner {
    flex: 1 1 100%;
    background: #cc0000; color: #fff;
    font-size: 13px; font-weight: 700;
    padding: 7px 14px;
}

/* admin-only: hotel answered both a G4/Dan tourist call and its local-₪
   counterpart (see area.js TOURIST_DUAL_PAIRS) — unexpected, needs a look */
.admin-note-banner {
    flex: 1 1 100%;
    background: #fff4ec; color: #c2410c;
    border-bottom: 1px solid #ffd8bf;
    font-size: 13px; font-weight: 700;
    padding: 7px 14px;
}

.card-img { position: relative; flex: 0 0 320px; min-height: 190px; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.reviews-score {
    position: absolute; top: 8px; inset-inline-end: 8px;
    background: #0061a9; color: #fff; font-weight: 700;
    padding: 4px 9px; border-radius: 6px; font-size: 14px;
}

/* stacked badges on the image (all-inclusive, admin priority) */
.img-badges {
    position: absolute; top: 8px; inset-inline-start: 8px; z-index: 3;
    display: flex; flex-direction: column; gap: 5px; align-items: flex-start;
}
.ai-ribbon {
    background: #2c7a3d; color: #fff; font-weight: 700;
    padding: 4px 12px; border-radius: 6px; font-size: 13px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}
/* admin-only editorial priority ribbon */
.priority-ribbon {
    background: #6b3fa0; color: #fff; font-weight: 700;
    padding: 4px 12px; border-radius: 6px; font-size: 13px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
}

/* hotel name over the image — mobile only */
.img-hotel-name {
    display: none;
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    font-size: 1.3rem;
    z-index: 1;
    padding: 40px 15px 15px;
    font-family: var(--font);
    font-weight: 900;
    text-align: right;
    color: #fff;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8)) !important;
    background: none;
    top: auto;
    line-height: 1;
}

/* min-width:0 is critical: without it a long no-wrap rate note inflates the
   column and pushes the price/book button out of the card */
.card-body { flex: 1; min-width: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.hotel-name { font-size: 19px; color: #2f2a3b; }
.hotel-name a { color: inherit; font-size: 2rem !important; }
.hotel-name a:hover { color: #0061a9; }
.hotel-city { font-size: 13px; color: #8a8496; }
.hotel-promo { font-size: 13px; color: #ff5a00; font-weight: 600; }
.offer-discount {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

.hotel-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; padding: 2px 9px; border-radius: 10px; font-weight: 600; }
.badge.ai { background: #fff1e8; color: #e65100; }
.badge.cancel { background: #e2f2e5; color: #2c7a3d; }
.badge.miluim { background: #e8f1fb; color: #0061a9; }

/* offer rows */
.offers { display: flex; flex-direction: column; margin-top: 4px; }
.offers.offers-hidden { display: none; }
.offer-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 10px; border-top: 1px solid #f0eef4;
    color: inherit; transition: background .12s;
}
.offer-row:hover { background: #f7f9fc; }
.offer-row.is-deal { background: #fffaf3; }
.offer-row.is-deal:hover { background: #fff3e2; }

/* admin-only: room excluded from the interface (_hotel_excluded_room_codes).
   Reaches the client only for logged-in admins; visitors never receive it. */
.offer-row.offer-excluded {
    border: 2px solid #cc0000;
    background: #fff5f5;
    flex-wrap: wrap;
}
.offer-row.offer-excluded:hover { background: #ffecec; }
.offer-excluded-note {
    flex: 1 1 100%;
    background: #cc0000; color: #fff;
    font-size: 12px; font-weight: 700;
    text-align: center; padding: 3px 8px;
    border-radius: 3px; margin-bottom: 6px;
}

.offer-main { flex: 1; min-width: 0; overflow: hidden; }
.offer-desc { font-size: 13.5px; }
.offer-desc b { color: #2f2a3b; }
.offer-deal-name { font-size: 12.5px; color: #b06a00; margin-top: 2px; }
.offer-deal-name.credit small { color: #8a8496; }

/* smart-keyword ribbons (legacy smartkeydictionary) */
.kw-ribbons { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 4px; }
.kw-ribbon {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    color: #ff6000; border: 1px solid #ff6000; border-radius: 3px;
    padding: 1px 7px;
    text-transform: uppercase;
    background: #fff7f2;
}

/* synthetic Friday-dinner offer ribbon */
.friday-ribbon {
    display: inline-block; margin-top: 4px;
    background: #ff8a00; color: #fff; font-weight: 700; font-size: 11px;
    padding: 2px 10px; border-radius: 4px;
}

/* rate description (cancellation terms etc.) — read-more behavior */
.offer-note {
    font-size: 12px; color: #8a8496; margin-top: 3px;
    cursor: pointer; line-height: 1.4;
}
.offer-note.collapsed {
    overflow: hidden; 
    text-overflow: ellipsis;
    max-width: 100%;
}
.ltr .t-day-check-in, .ltr .t-day-check-out,
.ltr .t-month-check-in, .ltr .t-month-check-out,
.ltr .t-year-check-out, .ltr .t-year-check-in{
    float: left;
}
.ltr .t-month-check-in, .ltr .t-month-check-out{
    padding: 0 5px 0 0;
}
.offer-note.collapsed::after { content: ''; }
.offer-note:hover { color: #524c61; }

.provider-tag {
    display: inline-block; font-size: 11px; font-weight: 700;
    color: #0061a9;
}
.provider-tag.p-groupsale, .provider-tag.p-hot { color: #e65100; }

.offer-price { display: flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
/* board basis moved next to the price — allow long labels (e.g. Friday) to wrap */
.offer-board { white-space: normal; text-align: left; }
.offer-board b { color: #2f2a3b; font-size: 13.5px; }
/* package price — same look as the legacy .tot_price .peopleonroomprice_2 */
.price {
    font-family: 'Anton', 'Heebo', sans-serif;
    font-weight: normal;
    color: var(--color-blue);
    font-size: 2rem;
    line-height: 1;
}
.price-cur { font-size: 1rem; }
.price-from { font-size: 12px; color: #8a8496; }
.orig-price { font-size: 16px; color: var(--old-price); }
.discount-badge {
    background: #cc0000; color: #fff; font-size: 12px; font-weight: 700;
    padding: 3px 5px; border-radius: 5px;
    line-height: 1;
    direction: ltr;
}
.book-btn {
    background: #0061a9; color: #fff; font-size: 13px; font-weight: 700;
    padding: 6px 16px; border-radius: 6px;
    text-align: center; line-height: 1.25;
}
.book-btn small {
    display: block;
    font-size: 10px; font-weight: 400; opacity: .9;
}
.offer-row:hover .book-btn { background: #004e88; }
.offer-row.is-deal .book-btn { background: #ff5a00; }

/* "more rooms" link — bottom of the offers area, arrow after the text
   (RTL renders it on the left of the label). No box border: only the label
   (.mrl-text) is underlined — the icon stays clean. */
.offers.offers-footer { margin-top: 6px; align-items: flex-end; }
.more-rooms-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: auto;
    max-width: 170px;
    padding: 2px 0;
    font-size: 13.5px;
    font-weight: 600;
    color: #524c61;
    transition: color .12s;
    text-decoration: none;
}
.more-rooms-link .mrl-text { border-bottom: 1px solid #524c61; }
.more-rooms-link:hover { color: #2f2a3b; }
.more-rooms-link:hover .mrl-text { border-color: #2f2a3b; }
.more-rooms-link .fa { font-size: 12px; }

.more-offers-btn {
    margin-top: 6px; align-self: flex-start;
    background: none; border: none; color: #0061a9; font: inherit; font-size: 13px;
    cursor: pointer; text-decoration: underline; padding: 2px 4px;
}

/* ---------------------------------------------------------------- admin */
.admin-panel {
    position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 900;
    display: flex; flex-direction: column; gap: 8px;
}
.admin-btn {
    padding: 10px 16px; border: 0; border-radius: 24px;
    font: inherit; font-size: 13px; font-weight: 700; color: #fff; cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.admin-btn.purge { background: #cc0000; }
.admin-btn.purge:hover { background: #a30000; }
.admin-btn.debug { background: #2f2a3b; }
.admin-btn.debug:hover { background: #1d1926; }
.admin-btn.analytics { background: #2c7a3d; text-decoration: none; display: inline-block; text-align: center; }
.admin-btn.analytics:hover { background: #21622f; }

.debug-modal { position: fixed; inset: 0; z-index: 1000; }
.debug-backdrop { position: absolute; inset: 0; background: rgba(15, 12, 25, .55); }
.debug-dialog {
    position: absolute; inset: 4vh 4vw;
    background: #fff; border-radius: 12px;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.debug-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 18px; border-bottom: 1px solid #e5e5e5; background: #f7f7fa;
}
.debug-close {
    border: 0; background: none; font-size: 18px; cursor: pointer; color: #524c61;
    padding: 4px 8px;
}
.debug-refresh {
    border: 1px solid #d4d1db; background: #fff; color: #0061a9;
    font: inherit; font-size: 13px; padding: 4px 14px; border-radius: 14px; cursor: pointer;
    margin-inline-end: 8px;
}
.debug-refresh:hover { background: #e8f1fb; }
.debug-body { flex: 1; overflow: auto; padding: 14px 18px; }
.debug-loading { text-align: center; color: #8a8496; padding: 30px; }

.debug-provider { border: 1px solid #e5e5e5; border-radius: 8px; margin-bottom: 12px; }
.debug-provider summary {
    padding: 10px 14px; cursor: pointer; font-weight: 700; color: #0061a9;
    background: #f7f9fc; border-radius: 8px;
}
.debug-provider summary small { color: #8a8496; font-weight: 400; margin-inline-start: 8px; direction: ltr; unicode-bidi: embed; }
.debug-entry { padding: 10px 14px; }
.debug-endpoint { margin-bottom: 8px; font-size: 13px; }
.debug-endpoint code {
    background: #f0eef4; padding: 2px 8px; border-radius: 4px;
    direction: ltr; unicode-bidi: embed; word-break: break-all;
}
.debug-meta { color: #8a8496; font-size: 12px; }
.debug-section { margin-bottom: 10px; }
.debug-section-head {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 700; color: #6b6478; margin-bottom: 4px;
}
.debug-section pre {
    background: #2f2a3b; color: #d8f0dc; font-size: 12px;
    padding: 10px 12px; border-radius: 6px;
    max-height: 280px; overflow: auto;
    direction: ltr; text-align: left; white-space: pre-wrap; word-break: break-all;
}
.copy-btn {
    border: 1px solid #d4d1db; background: #fff; color: #0061a9;
    font: inherit; font-size: 12px; padding: 3px 12px; border-radius: 12px; cursor: pointer;
}
.copy-btn:hover { background: #e8f1fb; }

/* alerts */
.alert { padding: 16px; border-radius: 8px; text-align: center; font-size: 15px; }
.alert.info { background: #e8f1fb; color: #0061a9; }
.alert.error { background: #fbe4e4; color: #b23030; }

/* ---------------------------------------------------------------- skeletons */
.hotel-card.skeleton { min-height: 190px; align-items: stretch; }
.sk-img { flex: 0 0 265px; background: #eceaf1; }
.sk-body { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sk-line { height: 14px; border-radius: 4px; background: #eceaf1; }
.sk-line.w60 { width: 60%; } .sk-line.w40 { width: 40%; } .sk-line.w80 { width: 80%; }
.sk-price { flex: 0 0 120px; margin: 18px; border-radius: 6px; background: #eceaf1; }
.skeleton .sk-img, .skeleton .sk-line, .skeleton .sk-price {
    animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ------------------------------------------------ split-rooms section
   Supplementary block below the real results, for large occupancies.
   Reuses .hotel-card / .offer-row styling; only the wrapper is new. */
.split-results {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 3px solid #ffd8bf;
}
.split-head { margin-bottom: 14px; }
.split-head h2 {
    font-size: 20px; color: #ff5a00; display: flex; align-items: center; gap: 8px;
}
.split-head h2::before {
    content: '\f0c9'; font-family: FontAwesome; font-size: 16px; color: #ff5a00;
}
.split-intro { font-size: 14px; color: #6b6478; margin-top: 4px; }
.split-status { font-size: 14px; color: #8a8496; padding: 8px 0 14px; }
.split-list { display: flex; flex-direction: column; gap: 14px; }

/* one block per room inside a split hotel card */
.split-room { margin-top: 10px; }
.split-room:first-of-type { margin-top: 4px; }
.split-room-head {
    font-size: 13px; font-weight: 700; color: #2f2a3b;
    padding: 4px 0 2px; border-top: 1px dashed #eceaf1;
}
.split-room:first-of-type .split-room-head { border-top: 0; }
.split-more-toggle {
    background: none; border: 0; color: #0061a9; cursor: pointer;
    font: inherit; font-size: 12px; font-weight: 600; padding: 6px 2px;
}
.split-more-toggle:hover { text-decoration: underline; }
.split-more-boards { border-top: 1px solid #f0eef4; }

/* ---------------------------------------------------------------- footer */
.site-footer {
    background: #2f2a3b; color: #b0aabb;
    text-align: center; padding: 18px 0; margin-top: 30px; font-size: 13px;
}

/* ---------------------------------------------------------------- mobile */
/* aligned with the site's own mobile switch (mobile_header is fixed below 800px) */
@media (max-width: 799px) {
    body { font-size: 16px; }
    /* the legacy .mobile_header is position:fixed but has no `top`, so it drifts
       with the flow. Pin it to the viewport top, then pad the body to clear it. */
    .mobile_header { top: 0; }
    body.area-page { padding-top: 70px; }
    .hotel-card { flex-direction: column; }
    .card-img { flex: none; height: 200px; }
    .sk-img { flex: none; height: 140px; }
    .results-head { flex-direction: column; align-items: stretch; }
    .offer-row { flex-wrap: wrap; }
    .offer-price { width: 100%; justify-content: flex-end; }
    .search-form .field { flex: 1 1 100%; }
    .field.small { flex: 1 1 28%; }
    .search-btn { width: 100%; }

    /* ---- collapsed mobile search bar ---- */
    .search-hero { padding: 10px 0; }
    /* stick the (collapsed) search right below the fixed 70px header on scroll */
    .search-hero.has-summary {
        position: sticky; top: 70px; z-index: 900;
    }
    /* when a search summary exists, the full form is collapsed by default */
    .search-hero.has-summary .search-form { display: none; }
    .search-hero.has-summary.form-open .search-form { display: flex; margin-top: 8px; }

    .mobile-search-summary {
        display: flex; align-items: center; gap: 10px; width: 100%;
        background: #fff; border: 0; border-radius: 10px;
        padding: 12px 14px; cursor: pointer; text-align: start;
        font: inherit; color: #2f2a3b;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    }
    .mss-icon { color: #ff5a00; font-size: 18px; flex-shrink: 0; }
    .mss-text {
        flex: 1; min-width: 0; font-weight: 700; font-size: 15px;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .mss-edit {
        flex-shrink: 0; font-size: 13px; font-weight: 600; color: #0061a9;
        background: #e8f1fb; padding: 4px 10px; border-radius: 14px;
    }
    /* expanded state: highlight the bar as the collapse handle */
    .search-hero.form-open .mobile-search-summary { box-shadow: 0 0 0 2px #ff5a00 inset; }
    .search-hero.form-open .mss-edit::before { content: '\f00d'; font-family: FontAwesome; font-weight: normal; margin-inline-end: 4px; }

    /* the hotel name (and city) move onto the image */
    .img-hotel-name { display: block; }
    .hotel-name { display: none; }
    .img-hotel-city { display: block; font-size: 14px; font-weight: 400; opacity: .9; margin-top: 2px; }
    .card-body > .hotel-city { display: none; } /* city now shown on the image */

    /* bigger, readable text */
    .hotel-city { font-size: 15px; }
    .hotel-promo { font-size: 15px; }
    .offer-desc { font-size: 16px; }
    .offer-note { font-size: 14px; }
    .offer-deal-name { font-size: 14px; }
    .badge { font-size: 13px; }
    .price { font-size: 2rem; }
    .orig-price { font-size: 15px; }
    .discount-badge { font-size: 13px; }
    .book-btn { font-size: 15px; padding: 8px 20px; }
    .book-btn small { font-size: 11.5px; }
    .more-offers-btn { font-size: 15px; }

    /* ---- mobile map view: full-screen map only ---- */
    body.map-mode .results-body {
        display: block; position: fixed; inset: 0; z-index: 2000;
        height: 100%; top: 0; margin: 0;
    }
    body.map-mode #area-map {
        display: block; width: 100%; height: 100%;
        border: 0; border-radius: 0;
    }
    body.map-mode .results-col { display: none; }
    body.map-mode .map-exit {
        display: inline-flex; align-items: center; gap: 6px;
        position: fixed; top: 12px; inset-inline-start: 12px; z-index: 2100;
        background: #cc0000; color: #fff; border: 0; border-radius: 22px;
        font: inherit; font-size: 15px; font-weight: 700; padding: 10px 18px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, .3); cursor: pointer;
    }
    .offer-discount {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }
    .offer-board-discount {
        display: flex;
        gap: 10px;
        line-height: 1;
        flex-wrap: nowrap;
        max-width: 200px;
        flex-direction: column;
    }
}
