/* =====================================================================================================================================
   MOBILE CATALOG (Israel / Abroad) - phones only (<=760px): the dedicated catalog pages are a natural VERTICAL FEED of compact deal cards (no carousel, no autoplay, no sideways swipe),
   with a compact toolbar and the real result count. Presentation layer over the existing catalog markup: nothing here touches data, links or scripts.
   index.php links this file and sets class "catalog-feed" on <body> in catalog mode only. Every rule starts with "html body.catalog-feed", which beats the page's inline layers;
   !important is used only where those layers pin the same property with !important.
   ===================================================================================================================================== */
@media(max-width:760px){

/* ---------- page identity: same title, tighter ---------- */
html body.catalog-feed .section.catalog-section{padding:12px 4% 28px!important}
html body.catalog-feed .catalog-section .section-head{margin:0 0 10px!important}
html body.catalog-feed .catalog-section .cat-eyebrow{font-size:11.5px;margin:0 0 2px}
html body.catalog-feed .catalog-section .cat-h1{font-size:27px!important;line-height:1.1!important}
html body.catalog-feed .catalog-section .cat-sub{font-size:13px!important;margin-top:3px!important;line-height:1.35!important}

/* ---------- toolbar: ONE compact card (the page renders it as two stacked blocks: area chips, then search + dates - they are joined into one card here) ---------- */
html body.catalog-feed .cat-frame{display:block!important}
html body.catalog-feed .cat-filters{display:block!important;margin:0!important;padding:11px 11px 4px!important;background:#fff;border:1px solid #e1ecea;border-bottom:0;border-radius:18px 18px 0 0;box-shadow:0 12px 26px -20px rgba(7,31,54,.45)}
html body.catalog-feed .cat-controls{display:flex!important;flex-direction:column;gap:9px;margin:0 0 4px!important;padding:6px 11px 12px!important;background:#fff!important;border:1px solid #e1ecea!important;border-top:0!important;border-radius:0 0 18px 18px!important;box-shadow:0 14px 26px -20px rgba(7,31,54,.45)}
html body.catalog-feed .cat-search{order:0;display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0!important;max-width:none!important;width:100%;flex:0 0 auto}
html body.catalog-feed .cat-search input[type=search]{flex:1 1 140px;min-width:0;min-height:44px!important;padding:8px 14px!important;border:1px solid #d6e4e2!important;border-radius:13px!important;background:#f8fbfb!important;font-size:15px!important}
html body.catalog-feed .cat-search button{flex:0 0 auto;min-height:44px!important;padding:0 20px!important;border-radius:13px!important;font-size:15px!important}
html body.catalog-feed .cat-search .cat-clear{flex:0 0 100%;text-align:center;font-size:13px}
html body.catalog-feed .cat-chiprow{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;align-items:center;gap:7px!important;padding:0 11px 7px!important;margin:0 -11px!important;background:none!important;border:0!important;border-radius:0!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
html body.catalog-feed .cat-chiprow::-webkit-scrollbar{display:none}
html body.catalog-feed .cat-chiprow .cat-chiprow-label{position:static!important;flex:0 0 auto;min-width:0;margin:0 !important;padding:0 2px 0 4px!important;border:0!important;background:none!important;font-size:12.5px;color:#0b6b73}
html body.catalog-feed .date-filter{order:2;margin:0!important;flex:none}
html body.catalog-feed .df-chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;gap:7px!important;margin:0 -11px;padding-inline:11px;scrollbar-width:none}
html body.catalog-feed .df-chips::-webkit-scrollbar{display:none}
html body.catalog-feed .catalog-section .df-chip{flex:0 0 auto;min-height:34px!important;padding:5px 13px!important;font-size:13px!important}
html body.catalog-feed .df-status{margin:6px 2px 0!important;font-size:13px;font-weight:800;color:#0b6b73}

/* ---------- the real result count (server-rendered from the displayed results; changes with every filter / search) ---------- */
html body.catalog-feed .cat-count{display:flex;align-items:center;gap:8px;margin:14px 2px 12px!important;font-size:16px!important;font-weight:900!important;color:var(--brand-navy)!important}
html body.catalog-feed .cat-count::before{content:"";flex:none;width:9px;height:9px;border-radius:50%;background:var(--brand-aqua,#1aa6a4);box-shadow:0 0 0 4px rgba(26,166,164,.18)}

/* ---------- the feed: one deal per row, natural vertical scrolling ---------- */
html body.catalog-feed .catalog-section .deal-carousel.catalog-carousel{padding-inline:0!important;overflow:visible!important;max-width:none!important}
html body.catalog-feed .catalog-carousel .carousel-controls,html body.catalog-feed .catalog-carousel .carousel-rail{display:none!important}
html body.catalog-feed .catalog-section .deal-grid.catalog-grid{display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important;gap:18px!important;grid-template-columns:none!important;grid-template-rows:none!important;grid-auto-flow:row!important;grid-auto-columns:auto!important;
  overflow:visible!important;overflow-x:visible!important;scroll-snap-type:none!important;width:auto!important;padding:2px 0 8px!important;margin:0!important}
html body.catalog-feed .catalog-section .deal-grid.catalog-grid .deal.compact-deal-card{width:100%!important;flex:none!important;scroll-snap-align:none!important}

/* ---------- the compact card: wide 16:9 picture, centred title + facts, price and the two actions on one row ---------- */
html body.catalog-feed .catalog-section .deal.compact-deal-card .deal-img{aspect-ratio:16/9!important}
html body.catalog-feed .catalog-section .deal.compact-deal-card .deal-body{padding:13px 15px 15px!important;gap:9px!important}
html body.catalog-feed .catalog-section .compact-deal-title,html body.catalog-feed .catalog-section .compact-title-block .compact-deal-title,html body.catalog-feed .catalog-section .compact-title-block:has(.compact-hotel-name) .compact-deal-title{font-size:18px!important;min-height:0!important}
html body.catalog-feed .catalog-section .premium-card-bottom{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding-top:12px!important}
html body.catalog-feed .catalog-section .compact-deal-price{font-size:22px!important;flex:0 0 auto!important;text-align:start!important;justify-self:auto!important;align-self:center!important}
html body.catalog-feed .catalog-section .compact-deal-actions{flex:0 1 auto!important;justify-content:flex-end!important}
html body.catalog-feed .catalog-section .compact-deal-actions .compact-action{flex:0 0 auto!important;min-width:0;min-height:42px!important;padding:0 14px!important}

/* the benefits text of a SOLD-OUT deal sits on the picture's lower edge: the picture is 16:9 here (56.25cqw tall), not 3:2 */
html body.catalog-feed .catalog-section .deal.compact-deal-card:has(.sold-out-ribbon,.sold-out-badge) .premium-card-hook:not(.is-empty){top:calc(56.25cqw - 40px)!important}

/* the abroad deal-type badge hangs on the picture's lower edge: 16:9 here (56.25cqw), not 3:2 */
html body.catalog-feed .catalog-section .deal.compact-deal-card .deal-type-badge{--bd-imgh:56.25cqw}

/* ---------- zero results: the page's own message, as a calm card ---------- */
html body.catalog-feed .catalog-section .cat-empty{margin:12px 0 22px!important;padding:20px 16px!important;border-radius:18px;background:#fff;border:1px solid #e1ecea;text-align:center}

/* ---------- action row (price | details | WhatsApp): the two buttons are one matched pair ----------
   Same height (42px), same radius, same 1px border weight (the soft-green WhatsApp button used to be borderless and wider, which made it look heavier and pushed it past the card edge on
   360-390px phones); icon + label are one centred unit; the row wraps to a second line only if an unusually long price leaves no room (it never clips). */
html body.catalog-feed .catalog-section .premium-card-bottom{flex-wrap:wrap!important;row-gap:10px!important;gap:8px!important}
html body.catalog-feed .catalog-section .compact-deal-actions{gap:6px!important;flex:0 0 auto!important;margin-inline-start:auto}
html body.catalog-feed .catalog-section .compact-deal-actions .compact-action{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:5px!important;height:42px!important;min-height:42px!important;padding:0 10px!important;border-radius:12px!important;font-size:13px!important;font-weight:800!important;line-height:1!important;white-space:nowrap!important;box-sizing:border-box!important}
html body.catalog-feed .catalog-section .compact-deal-actions .compact-action.details{min-width:66px;border:1px solid #d6dfe4!important}
html body.catalog-feed .catalog-section .compact-deal-actions .compact-action.whatsapp{border:1px solid #bfe3cf!important;background:#e6f6ed!important;color:#0e7a43!important}
html body.catalog-feed .catalog-section .compact-deal-actions .compact-action.whatsapp .wa-symbol{display:inline-flex!important;align-items:center;justify-content:center;flex:none;width:16px!important;height:16px!important}
html body.catalog-feed .catalog-section .compact-deal-actions .compact-action.whatsapp .wa-symbol svg{display:block;width:16px!important;height:16px!important}
@media(max-width:380px){
  html body.catalog-feed .catalog-section .premium-card-bottom{gap:6px!important}
  html body.catalog-feed .catalog-section .compact-deal-actions{gap:5px!important}
  html body.catalog-feed .catalog-section .compact-deal-actions .compact-action{padding:0 8px!important;gap:4px!important;font-size:12.5px!important}
  html body.catalog-feed .catalog-section .compact-deal-actions .compact-action.details{min-width:58px}
}
}
