/* assets/css/offers.css — Special Offers (includes/offers.php). Linked on every public page from header.php.
   Cards: orange strip on the photo, countdown on the location line, was/now price.
   Detail pages: compact offer list. Enquiry popup: offer chip + "Continue on WhatsApp". */

/* ============ 1. Cards ============ */
/* Orange strip across the bottom of the photo: tag · offer name · book-by */
.off-strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #C34A22; color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; }
.off-strip svg { flex: none; width: 14px; height: 14px; }
.off-strip b { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.off-strip .dot { opacity: .6; }
.off-strip .rest { overflow: hidden; text-overflow: ellipsis; opacity: .95; }
.hcard-photo { position: relative; }

/* Location line with the countdown on the right (only when the offer has countdown switched on) */
.off-locrow { order: -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.deal-card .off-locrow .stay-loc, .deal-card .off-locrow .hotel-loc, .off-locrow .hcard-eyebrow { order: 0; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.off-count { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 700; color: #B02020; white-space: nowrap; }
.off-count svg { width: 13px; height: 13px; }

/* Price: was (struck) → now, plus a green "Save" pill */
.off-price { margin-top: auto; margin-bottom: 16px; }
.off-price .lbl { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6B7488; margin-bottom: 3px; }
.off-price .was { font-size: 0.92rem; color: #8A93A6; text-decoration: line-through; text-decoration-color: rgba(195,74,34,0.7); margin-right: 6px; }
.off-price .now { font-size: 1.55rem; font-weight: 700; color: #0D1730; }
.off-price .now small { font-size: 0.86rem; font-weight: 500; color: #6B7488; }
.off-price .row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.off-save { display: inline-block; padding: 3px 8px; border-radius: 6px; background: #E8F6EC; color: #1E7B3C; font-size: 0.74rem; font-weight: 700; }
.off-price .ask { font-size: 1.15rem; font-weight: 700; color: #0D1730; }
.off-price .ask small { display: block; font-size: 0.78rem; font-weight: 500; color: #6B7488; margin-top: 2px; }

/* ============ 2. Offers on the property page — compact list, one row per offer ============ */
.pd-offers { margin: 4px 0 30px; }
.pd-offers-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #C34A22; }
.pd-offers-head svg { width: 16px; height: 16px; }
.pd-offer-item { position: relative; border: 1.5px solid #F3C9B8; border-radius: 16px; background: #FFF8F5; overflow: hidden; margin-bottom: 10px; }
.pd-offer-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #C34A22; }
.pd-offer-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 20px; align-items: center; padding: 14px 18px 14px 22px; }
.pd-offer-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 5px; }
.pd-offer-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; background: #C34A22; color: #fff; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.pd-offer-tag svg { width: 12px; height: 12px; }
.pd-offer-name { font-size: 1.02rem; font-weight: 700; color: #0D1730; }
.pd-offer-incl { font-size: 0.86rem; color: #4A5568; line-height: 1.45; margin-bottom: 6px; }
.pd-offer-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.78rem; color: #5B6475; }
.pd-offer-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pd-offer-meta svg { width: 13px; height: 13px; color: #1B7FAD; }
.pd-offer-meta b { color: #0D1730; font-weight: 600; }
.pd-offer-meta .off-count svg { color: #B02020; }
.pd-offer-price { text-align: right; white-space: nowrap; }
.pd-offer-price .was { font-size: 0.85rem; color: #8A93A6; text-decoration: line-through; }
.pd-offer-price .now { font-size: 1.4rem; font-weight: 700; color: #0D1730; line-height: 1.2; }
.pd-offer-price .now small { font-size: 0.78rem; font-weight: 500; color: #6B7488; }
.pd-offer-price .off-save { margin-top: 3px; font-size: 0.7rem; }
.pd-offer-cta { display: flex; flex-direction: column; gap: 7px; min-width: 150px; }
.pd-offer-claim { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 14px; border: 0; border-radius: 10px; background: #C34A22; color: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .15s; }
.pd-offer-claim:hover { background: #A93D1B; }
.pd-offer-claim svg { width: 16px; height: 16px; }
.pd-offer-toggle { border: 0; background: none; padding: 2px; font: inherit; font-size: 0.8rem; font-weight: 600; color: #1B7FAD; cursor: pointer; }
.pd-offer-toggle::after { content: ' +'; }
.pd-offer-item.open .pd-offer-toggle::after { content: ' −'; }
.pd-offer-details { display: none; grid-template-columns: 1fr 1fr; gap: 6px 28px; padding: 12px 18px 14px 22px; border-top: 1px dashed #F0CDBF; background: rgba(255,255,255,0.65); font-size: 0.82rem; color: #4A5568; }
.pd-offer-item.open .pd-offer-details { display: grid; }
.pd-offer-details h4 { margin: 0 0 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: #6B7488; }
.pd-offer-details ul { margin: 0; padding-left: 17px; line-height: 1.55; }
.pd-offer-details .wa { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #128C7E; font-weight: 700; text-decoration: none; }
.pd-offer-details .wa svg { width: 16px; height: 16px; }

/* Price fact in the facts strip */
.off-fact-was { display: block; color: #8A93A6; text-decoration: line-through; font-weight: 500; font-size: 0.86em; }
.off-fact-now { color: #C34A22; }
.off-count em { font-style: normal; font-variant-numeric: tabular-nums; }
.pd-offer-details .wa svg { color: #128C7E; }

/* Offer chip inside the enquiry popup */
.deal-modal-offer { display: flex; align-items: center; gap: 8px; margin: -12px 0 18px; padding: 10px 12px; border-radius: 10px; background: #FFF3EE; color: #9A3412; font-size: 0.86rem; font-weight: 600; }
.deal-modal-offer svg { width: 16px; height: 16px; color: #C34A22; flex: none; }

/* After a successful enquiry: continue the conversation on WhatsApp */
.deal-modal-wa { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; border-radius: 10px; background: #25D366; color: #fff; font-weight: 700; font-size: 0.92rem; text-decoration: none; }
.deal-modal-wa.show { display: flex; }
.deal-modal-wa:hover { background: #1EBE5A; color: #fff; }
.deal-modal-wa svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
    .pd-offer-row { grid-template-columns: minmax(0, 1fr) auto; }
    .pd-offer-cta { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    .pd-offer-cta .pd-offer-claim { flex: 1; }
}
@media (max-width: 560px) {
    .pd-offer-row { grid-template-columns: 1fr; gap: 12px; padding: 14px 14px 14px 18px; }
    .pd-offer-price { text-align: left; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
    .pd-offer-cta { flex-direction: column; align-items: stretch; }
    .pd-offer-details { grid-template-columns: 1fr; padding: 12px 14px 14px 18px; }
}
.deal-modal-offer[hidden] { display: none; }


/* ==========================================================================
   Phase 2 — offer card (.ofc) used on the Deals hub and the homepage
   "Limited-Time Offers" row, plus the hub's filter bar.
   ========================================================================== */
/* ---------- Shared offer card (.ofc) — same on the hub and the homepage row ---------- */
.ofc { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #E8EAF0; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 28px rgba(13,23,48,0.07); color: #0D1730; text-decoration: none; transition: transform .25s ease-out, box-shadow .25s ease-out; }
.ofc:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(13,23,48,0.12); }
.ofc-photo { display: block; position: relative; aspect-ratio: 16 / 10; background: #13224A center / cover no-repeat; }
.ofc-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,23,48,0) 55%, rgba(13,23,48,0.35) 100%); }
.ofc-type { position: absolute; top: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.94); color: #0D1730; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.ofc-type svg { width: 13px; height: 13px; }
.ofc-hot { position: absolute; top: 12px; right: 12px; z-index: 3; padding: 5px 10px; border-radius: 999px; background: #B02020; color: #fff; font-size: 0.7rem; font-weight: 700; }
.ofc-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.ofc-offer { font-size: 0.78rem; font-weight: 700; color: #C34A22; letter-spacing: 0.02em; margin-bottom: 4px; }
.ofc-name a { color: inherit; text-decoration: none; }
.ofc-name { font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ofc .off-locrow { margin-bottom: 10px; }
.ofc-loc { font-size: 0.8rem; color: #6B7488; display: inline-flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ofc-loc svg { width: 13px; height: 13px; flex: none; }
.ofc-incl { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.ofc-incl span { font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; background: #F4F5F8; color: #3A4358; }
.ofc .off-price { margin-top: auto; margin-bottom: 14px; }
.ofc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ofc-actions a, .ofc-actions button { text-decoration: none;
    display: inline-flex; align-items: center; justify-content: center; height: 42px; border-radius: 999px; font-size: 0.86rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.ofc-view { border: 1px solid #D6DAE3; color: #0D1730; background: #fff; }
.ofc-claim { border: 0; background: #C34A22; color: #fff; }
.ofc-claim:hover { background: #A83D1A; }

/* ---------- Homepage row ---------- */
.ofr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.ofr-head h2 { margin: 0 0 6px; }
.ofr-head p { margin: 0; color: #6B7488; }
.ofr-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #C34A22; margin-bottom: 8px; }
.ofr-eyebrow svg { width: 14px; height: 14px; }
.ofr-right { display: flex; align-items: center; gap: 14px; flex: none; }
.ofr-all { font-weight: 600; color: #1B7FAD; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.ofr-all svg { width: 16px; height: 16px; }
.ofr-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 10px; }
.ofr-track::-webkit-scrollbar { display: none; }
.ofr-track .ofc { flex: 0 0 340px; scroll-snap-align: start; }
@media (max-width: 640px) { .ofr-track .ofc { flex-basis: 82vw; } .ofr-head { flex-direction: column; align-items: flex-start; } }

/* ---------- Deals hub ---------- */
.hub-hero { background: #FDF1EC; padding: 54px 0 40px; text-align: center; }
.hub-hero h1 { margin: 0 0 10px; font-size: clamp(2rem, 4vw, 2.8rem); }
.hub-hero p { margin: 8px auto 0; max-width: 620px; color: #4A5468; }
.hub-stats { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.hub-stats span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid #F0D9CF; font-size: 0.82rem; font-weight: 600; color: #0D1730; }
.hub-stats svg { width: 14px; height: 14px; color: #C34A22; }

.hub-bar { position: sticky; top: 72px; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: blur(8px); border-bottom: 1px solid #EEF0F4; padding: 14px 0; }
.hub-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hub-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: #F1F3F7; }
.hub-tabs button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: 0.88rem; font-weight: 600; color: #4A5468; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.hub-tabs button em { font-style: normal; font-size: 0.72rem; padding: 1px 7px; border-radius: 999px; background: rgba(13,23,48,0.08); }
.hub-tabs button.on { background: #0D1730; color: #fff; }
.hub-tabs button.on em { background: rgba(255,255,255,0.2); }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.hub-chips button { border: 1px solid #D6DAE3; background: #fff; padding: 7px 13px; border-radius: 999px; font: inherit; font-size: 0.82rem; font-weight: 500; color: #3A4358; cursor: pointer; }
.hub-chips button.on { border-color: #C34A22; background: #FBE9E2; color: #C34A22; font-weight: 600; }

.hub-section { padding: 34px 0 60px; }
.hub-count { font-size: 0.9rem; color: #6B7488; margin: 0 0 18px; }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .hub-grid { grid-template-columns: 1fr; }
    .hub-bar { top: 60px; padding: 10px 0; }
    .hub-bar .wrap { gap: 10px; }
    .hub-tabs { display: flex; width: 100%; }
    .hub-tabs button { flex: 1; justify-content: center; padding: 8px 6px; font-size: 0.82rem; gap: 4px; }
    .hub-chips { flex: 1 1 0; min-width: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
    .hub-chips::-webkit-scrollbar { display: none; }
    .hub-chips button { flex: none; }
}
.hub-empty { display: none; text-align: center; padding: 50px 20px; border: 1px dashed #D6DAE3; border-radius: 18px; color: #6B7488; }
.hub-empty b { display: block; color: #0D1730; font-size: 1.05rem; margin-bottom: 6px; }
.hub-empty a { color: #1B7FAD; font-weight: 600; }




/* ==========================================================================
   Phase 3 — shareable offer page (/offers/{slug}, offer.php) + live card countdown
   ========================================================================== */
.op-crumb { padding: 22px 0 14px; font-size: 0.85rem; color: #6B7488; }
.op-crumb a { color: #6B7488; text-decoration: none; }
.op-crumb a:hover { color: #C34A22; }

/* ---------- Top: gallery + offer panel ---------- */
.op-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.op-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: minmax(300px, 1fr) 96px; gap: 8px; min-height: 100%; }
.op-gallery > div { border-radius: 14px; background: #13224A center / cover no-repeat; position: relative; overflow: hidden; }
.op-gallery .main { grid-column: 1 / -1; }
.op-gallery .main .off-strip { padding: 10px 16px; font-size: 0.85rem; }
.op-gallery .ofc-type { top: 14px; left: 14px; }

.op-panel { align-self: start; background: #fff; border: 1px solid #F0D9CF; border-radius: 20px; box-shadow: 0 16px 40px rgba(13,23,48,0.08); padding: 20px 20px 16px; }
.op-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: #C34A22; color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.op-tag svg { width: 14px; height: 14px; }
.op-panel h1 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); line-height: 1.15; margin: 10px 0 4px; }
.op-prop { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 0.86rem; color: #4A5468; margin-bottom: 14px; }
.op-prop a { color: #0D1730; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(13,23,48,0.2); }
.op-prop a:hover { color: #C34A22; border-color: #C34A22; }
.op-prop span { display: inline-flex; align-items: center; gap: 4px; }
.op-prop svg { width: 14px; height: 14px; }

/* countdown boxes */
.op-count { display: flex; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: 14px; border-radius: 12px; background: #FDF1EC; }
.op-count-lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #B02020; line-height: 1.3; margin-right: auto; }
.op-count-lbl small { display: block; font-size: 0.72rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #6B7488; }
.op-count-box { min-width: 44px; text-align: center; padding: 4px 3px; border-radius: 8px; background: #fff; box-shadow: 0 2px 6px rgba(195,74,34,0.12); }
.op-count-box b { display: block; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: #0D1730; line-height: 1.1; }
.op-count-box span { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: #6B7488; }

.op-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 0 0 14px; border-bottom: 1px solid #EEF0F4; margin-bottom: 14px; }
.op-price .was { font-size: 1rem; color: #8A93A6; text-decoration: line-through; text-decoration-color: rgba(195,74,34,0.7); margin-right: 8px; }
.op-price .now { font-size: 1.75rem; font-weight: 800; color: #0D1730; line-height: 1.1; }
.op-price .now small { font-size: 0.95rem; font-weight: 500; color: #6B7488; }
.op-price .off-save { display: inline-block; }

.op-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.op-claim, .op-wa { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; text-decoration: none; }
.op-claim { border: 0; background: #C34A22; color: #fff; box-shadow: 0 8px 20px rgba(195,74,34,0.3); }
.op-claim:hover { background: #A83D1A; }
.op-wa { border: 1.5px solid #25D366; background: #fff; color: #128C7E; }
.op-wa:hover { background: #F0FBF4; }
.op-claim svg, .op-wa svg { width: 18px; height: 18px; }

.op-share { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed #E3E6EC; font-size: 0.82rem; color: #6B7488; }
.op-share span { margin-right: auto; }
.op-share button, .op-share a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; border: 1px solid #D6DAE3; background: #fff; font: inherit; font-size: 0.8rem; font-weight: 600; color: #0D1730; cursor: pointer; text-decoration: none; }
.op-share svg { width: 14px; height: 14px; }
.op-share .copied { border-color: #25D366; color: #128C7E; }

/* ---------- Details ---------- */
.op-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 40px 0 0; }
.op-card { background: #fff; border: 1px solid #E8EAF0; border-radius: 18px; padding: 22px; }
.op-card h2 { font-size: 1.05rem; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.op-card h2 svg { width: 18px; height: 18px; color: #C34A22; }
.op-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.op-card li { display: flex; gap: 10px; font-size: 0.92rem; color: #3A4358; line-height: 1.45; }
.op-card li svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: #25A85A; }
.op-facts li { justify-content: space-between; border-bottom: 1px solid #F1F3F7; padding-bottom: 10px; }
.op-facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.op-facts li span { color: #6B7488; }
.op-facts li b { color: #0D1730; text-align: right; }
.op-terms li { font-size: 0.86rem; }
.op-terms li::before { content: "•"; color: #C34A22; font-weight: 700; }

/* ---------- About the property ---------- */
.op-about { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: center; margin-top: 22px; background: #F7F8FA; border-radius: 22px; padding: 18px; }
.op-about-img { height: 180px; border-radius: 16px; background: #13224A center / cover no-repeat; }
.op-about .op-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #1B7FAD; }
.op-about h3 { margin: 4px 0 8px; font-size: 1.2rem; }
.op-about p { margin: 0 0 12px; color: #4A5468; font-size: 0.92rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.op-about-facts { display: flex; flex-wrap: wrap; gap: 14px; font-size: 0.85rem; color: #3A4358; margin-bottom: 12px; }
.op-about-facts span { display: inline-flex; align-items: center; gap: 5px; }
.op-about-facts svg { width: 15px; height: 15px; color: #6B7488; }
.op-about a.more { font-weight: 600; color: #1B7FAD; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.op-about a.more svg { width: 16px; height: 16px; }

.op-more { padding: 50px 0 70px; }
.op-more h2 { margin: 0 0 6px; }
.op-more > .wrap > p { margin: 0 0 22px; color: #6B7488; }

/* ended state */
.op-ended { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; margin: 6px 0 22px; border-radius: 16px; background: #FFF4D6; border: 1px solid #F3DFA5; }
.op-ended svg { flex: none; width: 22px; height: 22px; color: #8A5A00; margin-top: 2px; }
.op-ended b { display: block; font-size: 1.02rem; color: #0D1730; }
.op-ended span { color: #4A5468; font-size: 0.92rem; }
.op-panel.is-ended .op-tag, .op-panel.is-ended h1, .op-panel.is-ended .op-price { opacity: .55; filter: grayscale(.7); }
.op-panel.is-ended .op-price .now { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(13,23,48,.35); }

/* mobile sticky bar */
.op-bar { display: none; }
@media (max-width: 900px) {
    .op-top { grid-template-columns: 1fr; }
    .op-panel { position: static; padding: 20px 18px 18px; }
    .op-count { flex-wrap: wrap; gap: 8px; }
    .op-count-lbl { flex: 1 1 100%; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 2px; }
    .op-count-lbl small { display: inline; }
    .op-count-box { flex: 1 1 0; min-width: 0; }
    .op-share { flex-wrap: wrap; }
    .op-share span { flex: 1 1 100%; }
    .op-details { grid-template-columns: 1fr; }
    .op-about { grid-template-columns: 1fr; }
    .op-gallery { grid-template-rows: 240px 64px; gap: 6px; min-height: 0; }
    .op-bar { box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #E8EAF0; box-shadow: 0 -8px 24px rgba(13,23,48,0.08); }
    .op-bar .p { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
    .op-bar .p s { font-size: 0.78rem; color: #8A93A6; }
    .op-bar .p b { display: block; font-size: 1.15rem; color: #0D1730; }
    .op-bar .p b small { font-size: 0.75rem; font-weight: 500; color: #6B7488; }
    .op-bar button { flex: none; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #C34A22; color: #fff; font: inherit; font-weight: 700; }
    body.has-op-bar .wa-chat, body.has-op-bar .wa-fab, body.has-op-bar [class*="wa-launch"] { bottom: 84px !important; }
    body.has-op-bar { padding-bottom: 70px; }
}

/* card countdown polish: live timer in the last 48 hours */
.off-count.is-live em { font-style: normal; font-variant-numeric: tabular-nums; }
.off-count.is-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #B02020; animation: op-pulse 1.4s ease-out infinite; }
@keyframes op-pulse { 0% { box-shadow: 0 0 0 0 rgba(176,32,32,.5); } 100% { box-shadow: 0 0 0 8px rgba(176,32,32,0); } }
@media (prefers-reduced-motion: reduce) { .off-count.is-live::before { animation: none; } }


/* gallery with fewer than 5 photos */
.op-gallery-1 { grid-template-rows: minmax(300px, 1fr); }
.op-gallery-2 { grid-template-columns: 1fr; }
.op-gallery-3 { grid-template-columns: repeat(2, 1fr); }
.op-gallery-4 { grid-template-columns: repeat(3, 1fr); }
.op-price .op-ask { font-size: 1.4rem; }
.op-cta-ended { grid-template-columns: 1fr 1fr; }
.op-cta a.op-claim { text-decoration: none; }
.op-wa.op-alt { border-color: #D6DAE3; color: #0D1730; }
.op-wa.op-alt:hover { background: #F7F8FA; }
@media (max-width: 900px) {
    .op-gallery { grid-template-rows: 240px 64px; }
    .op-gallery-1 { grid-template-rows: 240px; }
}

/* Offer page photo slideshow (offer.php only) */
.op-slides { grid-template-columns: 1fr; }
.op-slides.is-single { grid-template-rows: minmax(300px, 1fr); }
.op-stage { position: relative; overflow: hidden; background: #13224A; }
.op-slide { position: absolute; inset: 0; background: #13224A center / cover no-repeat; opacity: 0; transform: scale(1.04); transition: opacity .9s ease, transform 5s ease-out; }
.op-slide.on { opacity: 1; transform: scale(1); }
.op-stage .ofc-type { z-index: 4; }
.op-stage .off-strip { z-index: 4; }
.op-nav { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -32px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.9); color: #0D1730; display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .2s ease; box-shadow: 0 4px 14px rgba(13,23,48,0.2); }
.op-nav svg { width: 20px; height: 20px; }
.op-nav.prev { left: 12px; }
.op-nav.next { right: 12px; }
.op-stage:hover .op-nav, .op-nav:focus-visible { opacity: 1; }
.op-counter { position: absolute; top: 14px; right: 14px; z-index: 4; padding: 4px 10px; border-radius: 999px; background: rgba(13,23,48,0.6); color: #fff; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.op-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; background: none !important; border-radius: 0 !important; }
.op-thumbs::-webkit-scrollbar { display: none; }
.op-thumb { flex: 0 0 calc((100% - 24px) / 4); height: 100%; border: 0; padding: 0; border-radius: 14px; background: #13224A center / cover no-repeat; cursor: pointer; opacity: .55; outline: 3px solid transparent; outline-offset: -3px; transition: opacity .25s ease, outline-color .25s ease; }
.op-thumb:hover { opacity: .85; }
.op-thumb.on { opacity: 1; outline-color: #C34A22; }
@media (max-width: 900px) {
    .op-slides { grid-template-rows: 240px 64px; }
    .op-slides.is-single { grid-template-rows: 240px; }
    .op-thumb { flex-basis: calc((100% - 24px) / 4.5); border-radius: 10px; }
    .op-nav { opacity: 1; width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .op-slide { transition: opacity .2s; transform: none; } }
