/* ==========================================================
   Hello Philippines - Siquijor Edition
   Colorful, image-forward theme
   ========================================================== */

:root {
    --hp-primary:    #0072CE;   /* Philippine ocean blue */
    --hp-accent:     #FCD116;   /* Philippine gold */
    --hp-secondary:  #CE1126;   /* Philippine red */
    --hp-teal:       #00A896;
    --hp-coral:      #FF6B6B;
    --hp-sunset:     #FF8C42;
    --hp-purple:     #7B4B94;
    --hp-dark:       #0F172A;
    --hp-soft:       #F5F7FB;
    --hp-muted:      #6B7280;
}

html, body { height: 100%; }

body {
    font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: var(--hp-dark);
    background: var(--hp-soft);
}

/* ==========================================================
   Header
   ========================================================== */
.hp-navbar {
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .06);
    padding: .75rem 0;
}

.hp-brand {
    font-weight: 800;
    letter-spacing: -.5px;
    font-size: 1.4rem;
    color: var(--hp-primary) !important;
    display: flex; align-items: center;
}
.hp-brand .brand-logo {
    height: 105px; width: 105px;
    object-fit: contain;
    margin-right: 12px;
    border-radius: 12px;
}
.hp-brand .brand-text {
    line-height: 1;
}
.province-switch { display: inline-block; }

.province-badge {
    background: linear-gradient(90deg, var(--hp-accent), var(--hp-sunset));
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 999px;
    padding: .35rem .9rem;
    font-size: .85rem;
    box-shadow: 0 4px 12px rgba(255,140,66,.35);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease;
}
.province-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,140,66,.45);
}
.province-badge:focus { outline: none; }

.province-popup {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 150px;
    height: 300px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .22);
    padding: 10px;
    z-index: 1080;
    display: none;
    flex-direction: column;
    overflow: hidden;
}
.province-popup.show { display: flex; }
.province-popup::before {
    content: '';
    position: absolute;
    top: -6px; right: 22px;
    width: 12px; height: 12px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 6px rgba(15, 23, 42, .06);
}
.province-popup-header {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    padding: 2px 4px 8px;
    flex: 0 0 auto;
}
.province-popup-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    padding-right: 2px;
    flex: 1 1 auto;
}
.province-popup-inner::-webkit-scrollbar { width: 5px; }
.province-popup-inner::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.province-item {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: .82rem;
    padding: .55rem .7rem;
    text-align: left;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    box-shadow: 0 2px 6px rgba(15, 23, 42, .12);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.province-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, .2);
    filter: brightness(1.08);
}
.hp-navbar .nav-link {
    color: #334155;
    font-weight: 500;
    margin: 0 .35rem;
}
.hp-navbar .nav-link:hover { color: var(--hp-primary); }

.btn-hp-primary {
    background: linear-gradient(135deg, var(--hp-primary), #00A6E0);
    border: none; color: #fff;
    border-radius: 999px;
    padding: .55rem 1.3rem;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0,114,206,.3);
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn-hp-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0,114,206,.4);
    color: #fff;
}

.btn-hp-outline {
    border: 2px solid var(--hp-primary);
    color: var(--hp-primary);
    border-radius: 999px;
    padding: .4rem 1.1rem;
    font-weight: 600;
    background: transparent;
}
.btn-hp-outline:hover { background: var(--hp-primary); color: #fff; }

.btn-hp-sunset {
    background: linear-gradient(135deg, var(--hp-coral), var(--hp-sunset));
    border: none; color: #fff;
    border-radius: 999px;
    padding: .55rem 1.3rem;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(255,107,107,.35);
}
.btn-hp-sunset:hover { color: #fff; transform: translateY(-1px); }

/* ---------- Header nav action buttons (rectangular, no wrap) ---------- */
.hp-nav-actions .hp-btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-weight: 600;
    font-size: .88rem;
    padding: .5rem 1rem;
    border-radius: 10px;
    line-height: 1.2;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.hp-nav-actions .hp-btn-nav-outline {
    background: #fff;
    color: var(--hp-primary);
    border: 1.5px solid var(--hp-primary);
}
.hp-nav-actions .hp-btn-nav-outline:hover {
    background: var(--hp-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,114,206,.25);
}
.hp-nav-actions .hp-btn-nav-primary {
    background: linear-gradient(135deg, var(--hp-primary), #00A6E0);
    color: #fff;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 12px rgba(0,114,206,.28);
}
.hp-nav-actions .hp-btn-nav-primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,114,206,.38);
}

/* ---------- Nav cart button + badge ---------- */
.hp-btn-cart {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #fff;
    border: 1.5px solid var(--hp-primary);
    color: var(--hp-primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease, color .12s ease;
    margin-right: 14px;   /* extra space between cart icon and the Sign in / List buttons */
}
.hp-btn-cart:hover {
    background: var(--hp-primary);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 114, 206, .3);
}
.hp-cart-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 20px; height: 20px;
    border-radius: 999px;
    background: #cbd5e1;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
    line-height: 1;
    transition: background .15s ease, transform .15s ease;
}
.hp-cart-badge.has-items {
    background: var(--hp-secondary);
    transform: scale(1.05);
}

/* ---------- Cart modal items ---------- */
.cart-item {
    display: grid;
    grid-template-columns: 68px 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #F8FAFC;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,.05);
    margin-bottom: 10px;
}
.cart-item-thumb {
    width: 68px; height: 68px;
    border-radius: 10px;
    background-size: cover; background-position: center;
    background-color: #E5F0FF;
}
.cart-item-body { min-width: 0; }
.cart-item-title {
    font-weight: 700; color: var(--hp-dark);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cart-item-store, .cart-item-price { margin-top: 2px; }
.cart-item-qty {
    display: inline-flex; align-items: center; gap: 4px;
    background: #fff;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 8px;
    padding: 2px 4px;
}
.cart-qty-btn {
    border: none;
    background: transparent;
    color: var(--hp-primary);
    font-weight: 800;
    width: 24px; height: 24px;
    cursor: pointer;
    border-radius: 4px;
}
.cart-qty-btn:hover { background: #E5F0FF; }
.cart-qty-value { min-width: 22px; text-align: center; font-weight: 700; }
.cart-item-line {
    color: var(--hp-primary);
    min-width: 90px;
    text-align: right;
}
.cart-item-remove {
    border: none; background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color .12s ease, background .12s ease;
}
.cart-item-remove:hover { color: #fff; background: var(--hp-secondary); }
.cart-total-value {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--hp-primary);
}

@media (max-width: 575px) {
    .cart-item { grid-template-columns: 60px 1fr; grid-template-rows: auto auto auto; }
    .cart-item-thumb { grid-row: span 3; width: 60px; height: 60px; }
    .cart-item-qty, .cart-item-line, .cart-item-remove {
        grid-column: 2;
        justify-self: start;
    }
    .cart-item-line { color: var(--hp-primary); }
}

/* ---------- Cart: delivery address + payment method sections ---------- */
.cart-section-box {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .9rem 1.1rem;
    margin-top: .75rem;
}
.cart-section-title {
    font-size: .78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .65rem;
}
.cart-addr-card {
    border: 1px solid #e2e8f0;
    border-radius: .45rem;
    padding: .55rem .85rem;
    font-size: .83rem;
    background: #f8fafc;
}
.cart-addr-card.cart-addr-default {
    border-color: var(--hp-accent, #0ea5e9);
    background: #f0f9ff;
}
.cart-pay-opt {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem .75rem;
    border: 1px solid #e2e8f0;
    border-radius: .45rem;
    cursor: pointer;
    margin-bottom: .4rem;
    font-size: .875rem;
    transition: border-color .15s;
}
.cart-pay-opt:last-child { margin-bottom: 0; }
.cart-pay-opt:not(.cart-pay-opt-disabled):hover { border-color: var(--hp-accent, #0ea5e9); }
.cart-pay-opt-disabled { opacity: .5; cursor: not-allowed; }
.cart-pay-opt input[type=radio] { accent-color: var(--hp-accent, #0ea5e9); flex-shrink: 0; }
.cart-pay-badge { margin-left: auto; }

/* ---------- Product detail: qty selector + specs grid ---------- */
.qty-selector {
    display: inline-flex; align-items: center;
    background: #fff;
    border: 1.5px solid rgba(15,23,42,.12);
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 auto;
}
.qty-selector .qty-btn {
    border: none; background: transparent;
    color: var(--hp-primary);
    font-weight: 800;
    font-size: 1.15rem;
    width: 34px; height: 44px;
    cursor: pointer;
}
.qty-selector .qty-btn:hover { background: #E5F0FF; }
.qty-selector .qty-input {
    width: 44px; height: 44px;
    border: none;
    text-align: center;
    font-weight: 700;
    color: var(--hp-dark);
    background: transparent;
    padding: 0;
}

.prod-specs-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0;
}
.prod-specs-grid dt {
    font-weight: 700;
    color: #64748b;
    font-size: .88rem;
    padding: 6px 0;
}
.prod-specs-grid dd {
    margin: 0;
    padding: 6px 0;
    color: var(--hp-dark);
    border-bottom: 1px dashed rgba(15,23,42,.08);
}
.prod-specs-grid dt {
    border-bottom: 1px dashed rgba(15,23,42,.08);
}

/* Add-to-cart "added" state */
#btnAddToCart.added,
.mp-add-cart.added,
.home-prod-add.added {
    background: var(--hp-teal) !important;
    border-color: var(--hp-teal) !important;
    box-shadow: 0 4px 12px rgba(0, 168, 150, .3);
    color: #fff !important;
}

/* Compact qty selector used on marketplace listing cards */
.qty-selector.qty-selector-sm { border-width: 1px; border-radius: 8px; }
.qty-selector.qty-selector-sm .qty-btn {
    width: 26px; height: 32px;
    font-size: 1rem;
}
.qty-selector.qty-selector-sm .qty-input {
    width: 30px; height: 32px;
    font-size: .85rem;
}

/* Small "Details" text link on marketplace cards */
.mp-details-link {
    font-size: .78rem;
    font-weight: 700;
    color: var(--hp-muted);
    text-decoration: none;
    display: inline-flex; align-items: center; gap: 3px;
    transition: color .12s ease;
}
.mp-details-link:hover { color: var(--hp-primary); }

/* ==========================================================
   Hero with background image
   ========================================================== */
.hp-hero {
    position: relative;
    min-height: 620px;
    background-image:
        linear-gradient(135deg, rgba(0,114,206,.55) 0%, rgba(0,168,150,.4) 50%, rgba(255,140,66,.55) 100%),
        url('https://picsum.photos/seed/siquijor-hero-paliton/1800/900');
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
}
.hp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15,23,42,.5) 100%);
    pointer-events: none;
}
.hp-hero .hero-inner { position: relative; z-index: 2; padding: 5rem 0 4rem; }

.hp-hero h1 {
    font-weight: 800;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: -1.2px;
    text-shadow: 0 3px 20px rgba(0,0,0,.35);
}
.hp-hero .lead {
    color: rgba(255,255,255,.92);
    text-shadow: 0 2px 12px rgba(0,0,0,.35);
    font-size: 1.15rem;
}
.hp-hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(6px);
    padding: .4rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .05em;
    font-size: .85rem;
    border: 1px solid rgba(255,255,255,.35);
}

.hp-search-card {
    background: #fff;
    color: var(--hp-dark);
    border-radius: 22px;
    padding: 1.1rem;
    box-shadow: 0 20px 45px rgba(15,23,42,.25);
}
.hp-search-card .form-control,
.hp-search-card .form-select { border-radius: 12px; }

.hero-stats {
    background: rgba(255,255,255,.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 20px;
    padding: 1.2rem;
    color: #fff;
}
.hero-stats .stat-num { font-weight: 800; font-size: 1.8rem; }
.hero-stats .stat-lbl { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }

/* ==========================================================
   Trending strip
   ========================================================== */
.trending-strip {
    background: #fff;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(15,23,42,.06);
}
.trending-scroll {
    display: flex; gap: 1rem; overflow-x: auto;
    padding: .25rem .25rem 1rem;
    scrollbar-width: thin;
}
.trending-scroll::-webkit-scrollbar { height: 6px; }
.trending-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.trending-chip {
    flex: 0 0 220px;
    height: 130px;
    border-radius: 16px;
    background-size: cover; background-position: center;
    position: relative;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15,23,42,.1);
    transition: transform .18s ease;
}
.trending-chip:hover { transform: translateY(-3px); color: #fff; }
.trending-chip::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.72) 100%);
}
.trending-chip .chip-label {
    position: absolute; left: 12px; bottom: 10px; z-index: 2;
    font-weight: 700; font-size: .95rem;
    text-shadow: 0 2px 6px rgba(0,0,0,.5);
}

/* ==========================================================
   Section headings
   ========================================================== */
.section-heading {
    font-weight: 800;
    letter-spacing: -.5px;
}
.section-eyebrow {
    color: var(--hp-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
}

/* ==========================================================
   Colorful pillar cards (with imagery)
   ========================================================== */
.pillar-card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    height: 320px;
    color: #fff;
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 1.5rem;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 10px 25px rgba(15,23,42,.12);
}
.pillar-card::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.75) 100%);
}
.pillar-card > * { position: relative; z-index: 2; }
.pillar-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(15,23,42,.22); }

.pillar-card.tint-blue::before   { background: linear-gradient(180deg, rgba(0,114,206,.15) 0%, rgba(0,114,206,.85) 100%); }
.pillar-card.tint-sunset::before { background: linear-gradient(180deg, rgba(255,140,66,.15) 0%, rgba(206,17,38,.85) 100%); }
.pillar-card.tint-teal::before   { background: linear-gradient(180deg, rgba(0,168,150,.15) 0%, rgba(0,168,150,.9) 100%); }

.pillar-card .pillar-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px;
    background: rgba(255,255,255,.22);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 14px;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: .75rem;
}
.pillar-card h5 { font-weight: 800; margin-bottom: .35rem; }
.pillar-card p { opacity: .95; margin-bottom: 1rem; }

/* ==========================================================
   Bento mosaic (featured destinations)
   ========================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
}
.bento-tile {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background-size: cover; background-position: center;
    box-shadow: 0 8px 20px rgba(15,23,42,.14);
    transition: transform .2s ease;
    cursor: pointer;
}
.bento-tile:hover { transform: scale(1.02); color: #fff; }
.bento-tile:focus-visible {
    outline: 3px solid var(--hp-primary);
    outline-offset: 2px;
}
.bento-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(0,0,0,0) 30%,
        rgba(0,0,0,.55) 65%,
        rgba(0,0,0,.92) 100%);
}
.bento-tile .tile-body {
    position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
}
.bento-tile .tile-body h6 {
    font-weight: 800;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 6px rgba(0,0,0,.6);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.bento-tile .tile-body small {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: rgba(255,255,255,.95);
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
    line-height: 1.25;
    font-size: .78rem;
}

/* Small tiles have less room — keep the write-up to 1 line so the
   name doesn't get pushed off. Hero + wide tiles allow 2 lines. */
.bento-tile:not(.wide):not(.tall) .tile-body small {
    -webkit-line-clamp: 1;
}

.bento-tile.tall { grid-row: span 2; }
.bento-tile.wide { grid-column: span 2; }

/* small category tag chip on tiles */
.bento-tile .tile-tag {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    background: rgba(255,255,255,.92);
    color: var(--hp-dark);
    font-size: .72rem; font-weight: 700;
    padding: .25rem .6rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* google-map pin on tiles */
.bento-tile .tile-map-pin {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92);
    color: var(--hp-secondary);
    border-radius: 999px;
    font-size: .95rem;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
    transition: transform .12s ease, background .12s ease, color .12s ease;
}
.bento-tile .tile-map-pin:hover {
    background: var(--hp-secondary);
    color: #fff;
    transform: scale(1.05);
}

/* ---------- Featured-destination modal ---------- */
.featured-modal-cover {
    height: 260px;
    background-size: cover;
    background-position: center;
    background-color: #E5F0FF;
}
.featured-modal-close {
    position: absolute !important;
    top: 12px; right: 12px;
    background: rgba(255,255,255,.9) !important;
    border-radius: 999px;
    padding: .55rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
    z-index: 5;
}
.featured-modal-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.featured-modal-strip .fm-thumb {
    display: block;
    height: 90px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 3px 8px rgba(15,23,42,.12);
    transition: transform .12s ease;
}
.featured-modal-strip .fm-thumb:hover { transform: scale(1.04); }

@media (max-width: 767px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .bento-tile.wide { grid-column: span 2; }
    .bento-tile.tall { grid-row: span 1; }
}

/* ==========================================================
   Listing cards (image-forward)
   ========================================================== */
.listing-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(15,23,42,.05);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex; flex-direction: column;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,.12);
}
.listing-card .card-media {
    position: relative;
    height: 190px;
    background-size: cover; background-position: center;
    background-color: #E5F0FF;
}
.listing-card .card-media .media-badge {
    position: absolute; top: 12px; left: 12px;
    background: rgba(255,255,255,.95);
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    color: var(--hp-dark);
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.listing-card .card-media .media-featured {
    position: absolute; top: 12px; right: 12px;
    background: linear-gradient(135deg, var(--hp-accent), var(--hp-sunset));
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .72rem; font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(255,140,66,.4);
}
.listing-card .card-body-inner { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }

.chip {
    display: inline-block;
    background: #F1F5F9;
    color: #334155;
    border-radius: 999px;
    padding: .18rem .65rem;
    font-size: .72rem;
    font-weight: 600;
    margin-right: .25rem;
}
.price-tag {
    color: var(--hp-primary);
    font-weight: 700;
}

/* ==========================================================
   Colorful section bands
   ========================================================== */
.band-sunset {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0E0 100%);
}
.band-teal {
    background: linear-gradient(135deg, #E0F7F4 0%, #E5F0FF 100%);
}
.band-gold {
    background: linear-gradient(135deg, #FFFCF2 0%, #FFF6CC 100%);
}
.band-cta {
    background:
        linear-gradient(135deg, rgba(0,114,206,.85) 0%, rgba(0,168,150,.85) 100%),
        url('https://picsum.photos/seed/siquijor-cta-boats/1600/500');
    background-size: cover; background-position: center;
    color: #fff;
    padding: 4rem 0;
    border-radius: 24px;
}

/* ==========================================================
   Postcards gallery mosaic
   ========================================================== */
.postcards {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 140px;
    gap: 10px;
}
.postcards .card-p {
    border-radius: 14px;
    overflow: hidden;
    background-size: cover; background-position: center;
    position: relative;
    box-shadow: 0 6px 16px rgba(15,23,42,.1);
    transition: transform .18s ease;
}
.postcards .card-p:hover { transform: scale(1.03); }
.postcards .card-p.big-1 { grid-column: span 2; grid-row: span 2; }
.postcards .card-p.big-2 { grid-column: span 2; }
.postcards .card-p.tall  { grid-row: span 2; }

@media (max-width: 767px) {
    .postcards { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
    .postcards .card-p.big-1,
    .postcards .card-p.big-2,
    .postcards .card-p.tall { grid-column: span 1; grid-row: span 1; }
}

/* ==========================================================
   Explore Postcards sub-page
   ========================================================== */
.explore-hero {
    background:
        radial-gradient(900px 400px at 10% -10%, rgba(0,168,150,.20), transparent 60%),
        radial-gradient(900px 400px at 90% 0%, rgba(0,114,206,.22), transparent 55%),
        linear-gradient(180deg, #EAF4FF 0%, #F5F7FB 100%);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(15,23,42,.05);
}
.explore-hero h1 {
    font-weight: 800;
    letter-spacing: -.8px;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
    color: var(--hp-dark);
}
.explore-hero .eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.9);
    padding: .35rem .9rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .8rem;
    color: var(--hp-teal);
    text-transform: uppercase;
}

/* Wide wrapper for the Explore Postcards page: uses close to the full
   viewport width instead of Bootstrap's default 1320px container cap. */
.explore-wide {
    max-width: 1720px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}
@media (min-width: 1600px) {
    .explore-wide { padding-left: 32px; padding-right: 32px; }
}

.explore-2col {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.explore-2col .explore-left,
.explore-2col .explore-mid {
    flex: 0 0 100%;
    min-width: 0;
}
@media (min-width: 992px) {
    .explore-2col .explore-left { flex: 0 0 calc(40% - 8px); }
    .explore-2col .explore-mid  { flex: 0 0 calc(60% - 8px); }
}

.explore-panel {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .06);
    border: 1px solid rgba(15, 23, 42, .04);
    height: 100%;
    display: flex; flex-direction: column;
}
.explore-panel-title {
    padding: .85rem 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, .05);
    font-weight: 700;
    font-size: .95rem;
    color: var(--hp-dark);
    display: flex; align-items: center;
}
.explore-panel-body {
    padding: .75rem;
    overflow-y: auto;
    flex: 1 1 auto;
}
@media (min-width: 992px) {
    /* Left column becomes a flex column so the current-user card keeps its
       natural size while the contributors panel expands to fill the rest,
       matching the middle column's height (both end on the same line). */
    .explore-2col .explore-left {
        display: flex;
        flex-direction: column;
    }
    #currentUserPanel {
        flex: 0 0 auto;
    }
    .explore-2col .explore-left > .explore-panel:not(#currentUserPanel) {
        flex: 1 1 auto;
        min-height: 0;   /* allow the body's overflow-y:auto to actually scroll */
    }
}

/* Current-user card (left, above contributors, only when signed in) */
/* Shrink to content height instead of filling the column like the
   contributors panel does. */
#currentUserPanel {
    height: auto;
    flex: 0 0 auto;
}
#currentUserPanel .explore-panel-body {
    flex: 0 0 auto;
    overflow: visible;
}
#currentUserPanel .explore-panel-title {
    background: linear-gradient(135deg, #E5F0FF, #F5FAFF);
    border-bottom: 1px solid rgba(0, 114, 206, .12);
}
.explore-cu-avatar {
    width: 84px; height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, .18);
    background: #f1f5f9;
}
#currentUserPanel #cuName {
    font-weight: 800;
    font-size: .95rem;
    color: var(--hp-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1 1 auto;
}
#currentUserPanel #cuEmail {
    font-size: .78rem;
    word-break: break-all;
}
#btnCuSignOut {
    color: #64748b !important;
    padding: 0 !important;
}
#btnCuSignOut:hover { color: var(--hp-secondary) !important; }

/* Row of link + stats under the Upload photos button */
.cu-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: .78rem;
    flex-wrap: wrap;
    gap: 6px;
}
.cu-link {
    color: var(--hp-primary);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0, 114, 206, .35);
}
.cu-link:hover {
    color: #005BAA;
    border-bottom-color: currentColor;
}
.cu-stats {
    color: #64748b;
    display: inline-flex;
    align-items: center;
}
.cu-stats .cu-stat-uploaded { color: var(--hp-teal); font-weight: 600; }
.cu-stats .cu-stat-pending  { color: #b45309;      font-weight: 600; }
.cu-stats i { margin-right: 3px; }

/* Contributor pills (left) */
.explore-contributor {
    display: flex; align-items: center; gap: 8px;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 12px;
    padding: .45rem .5rem;
    margin-bottom: .4rem;
    text-align: left;
    cursor: pointer;
    transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.explore-contributor:hover {
    border-color: var(--hp-primary);
    background: #F5FAFF;
}
.explore-contributor.active {
    border-color: var(--hp-primary);
    background: linear-gradient(135deg, #E5F0FF, #F5FAFF);
    box-shadow: 0 2px 8px rgba(0, 114, 206, .18);
}
.explore-contrib-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 36px;
    background: #f1f5f9;
}
.explore-contrib-info {
    min-width: 0;
    flex: 1 1 auto;
}
.explore-contrib-name {
    font-weight: 700;
    font-size: .78rem;
    color: var(--hp-dark);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.explore-contrib-meta {
    color: var(--hp-muted);
    font-size: .68rem;
    margin-top: 2px;
}

/* Middle photo caption + views under thumbnail */
.explore-photo-caption {
    font-size: .78rem;
    color: var(--hp-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.explore-photo-views {
    flex: 0 0 auto;
    font-size: .72rem;
}

/* Top-viewed full-width grid */
.explore-topviewed-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
@media (min-width: 576px)  { .explore-topviewed-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .explore-topviewed-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 992px)  { .explore-topviewed-grid { grid-template-columns: repeat(7, 1fr); } }
@media (min-width: 1200px) { .explore-topviewed-grid { grid-template-columns: repeat(9, 1fr); } }
@media (min-width: 1400px) { .explore-topviewed-grid { grid-template-columns: repeat(10, 1fr); } }
@media (min-width: 1600px) { .explore-topviewed-grid { grid-template-columns: repeat(12, 1fr); } }

.explore-topviewed {
    display: block;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 12px;
    padding: 6px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: transform .12s ease, box-shadow .12s ease;
    text-align: left;
}
.explore-topviewed:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, .14);
}
.explore-topviewed-thumb {
    display: block;
    width: 100%;
    padding-top: 75%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #E5F0FF;
}
.explore-topviewed-meta {
    display: flex; align-items: center; justify-content: space-between;
    gap: 6px;
    margin-top: 6px;
    font-size: .72rem;
    font-weight: 700;
}

/* Views = gray, thumbs = teal accent */
.metric-views {
    color: #64748b;
    display: inline-flex; align-items: center; gap: 4px;
}
.metric-thumbs {
    color: var(--hp-teal);
    display: inline-flex; align-items: center; gap: 4px;
}

/* Middle-column metrics row on contributor photo cards */
.explore-photo-metrics {
    display: flex; align-items: center; gap: 10px;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 700;
}

/* Clickable thumbs-up button in the postcard lightbox */
.btn-thumb-lightbox {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 999px;
    padding: .3rem .7rem;
    font-weight: 700;
    font-size: .8rem;
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer;
    transition: background .12s ease, transform .12s ease, border-color .12s ease;
}
.btn-thumb-lightbox:hover {
    background: rgba(255,255,255,.22);
    transform: translateY(-1px);
}
.btn-thumb-lightbox.thumbed {
    background: var(--hp-teal);
    border-color: var(--hp-teal);
    color: #fff;
    cursor: default;
}
.btn-thumb-lightbox i { font-size: .95rem; }

/* ==========================================================
   Services page - 12% filter sidebar + 88% grid
   ========================================================== */
.services-2col {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.services-2col .services-sidebar,
.services-2col .services-main {
    flex: 0 0 100%;
    min-width: 0;
}
@media (min-width: 992px) {
    .services-2col .services-sidebar { flex: 0 0 calc(17% - 12px); }
    .services-2col .services-main    { flex: 0 0 calc(83% - 8px); }
}

/* Compact card thumbnails on the Services page - 15% shorter than the
   default .listing-card .card-media (190px * 0.85 ~= 161px). */
.services-main .listing-card .card-media {
    height: 161px;
}

/* List-your-business CTA on Services / Tourism / Marketplace listing pages */
.listing-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(0,114,206,.10) 0%, rgba(0,168,150,.10) 100%),
        #ffffff;
    border: 1px solid rgba(0, 114, 206, .18);
    box-shadow: 0 6px 20px rgba(15,23,42,.06);
    flex-wrap: wrap;
}
.listing-cta-copy { flex: 1 1 320px; min-width: 0; }
.listing-cta-copy h4 {
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--hp-dark);
    margin: 0 0 .35rem;
}
.listing-cta-copy p {
    color: var(--hp-muted);
    line-height: 1.5;
}
.listing-cta .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Clickable card title (uses <a> instead of plain text now) */
.svc-title-link {
    color: var(--hp-dark);
    transition: color .12s ease;
}
.svc-title-link:hover { color: var(--hp-primary); }

/* Clickable media area on Services cards */
.listing-card a.card-media { display: block; text-decoration: none; }

/* ==========================================================
   Service detail page
   ========================================================== */
.svc-detail-photo {
    width: 100%;
    padding-top: 62%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-color: #E5F0FF;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
}
.svc-detail-title {
    font-weight: 800;
    letter-spacing: -.5px;
    font-size: clamp(1.5rem, 2.4vw, 2.1rem);
    margin: .35rem 0;
    color: var(--hp-dark);
}
.svc-detail-desc {
    color: #334155;
    line-height: 1.65;
    font-size: 1rem;
}
.svc-price {
    display: inline-block;
    background: linear-gradient(135deg, #E5F0FF, #F5FAFF);
    color: var(--hp-primary);
    font-weight: 800;
    padding: .5rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 114, 206, .2);
}

/* -------- Gallery (main + thumbs) -------- */
.svc-gallery-main {
    width: 100%;
    padding-top: 62%;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-color: #E5F0FF;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
    transition: background-image .18s ease;
}
.svc-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.svc-thumb {
    display: block;
    width: 100%;
    padding: 0;
    padding-top: 66%;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: #E5F0FF;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease;
}
.svc-thumb:hover { transform: translateY(-2px); }
.svc-thumb.active {
    border-color: var(--hp-primary);
    box-shadow: 0 0 0 3px rgba(0, 114, 206, .15);
}

/* -------- Info card sidebar -------- */
.svc-info-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    border: 1px solid rgba(15, 23, 42, .04);
}

/* -------- Section blocks -------- */
.svc-section {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .06);
    margin-top: 1.5rem;
    border: 1px solid rgba(15, 23, 42, .04);
}
.svc-section-title {
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--hp-primary);
    font-size: 1.2rem;
    margin: 0 0 1rem 0;
}
.svc-description {
    color: #334155;
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

/* -------- Location map (Tourism detail) -------- */
.tour-map-wrap {
    position: relative;
    width: 100%;
    padding-top: 45%;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
    background: #E5F0FF;
}
.tour-map-frame {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    border: 0;
}
.tour-map-link {
    color: var(--hp-primary);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted rgba(0,114,206,.4);
}
.tour-map-link:hover {
    color: #005BAA;
    border-bottom-color: currentColor;
}

/* -------- Reviews -------- */
.stars           { color: #f59e0b; letter-spacing: 2px; font-size: 1rem; }
.stars.stars-sm  { font-size: .85rem; letter-spacing: 1px; }
.svc-rating-inline {
    margin: .25rem 0 .25rem;
    display: flex; align-items: center; gap: 8px;
}
.svc-rating-summary {
    display: flex; align-items: center;
    background: linear-gradient(135deg, #FFFCF2, #FFF6CC);
    border: 1px solid rgba(245, 158, 11, .25);
    padding: 1rem 1.25rem;
    border-radius: 14px;
}
.big-rating {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--hp-primary);
    line-height: 1;
}

/* Star input (interactive) */
.star-input {
    font-size: 1.6rem;
    color: #cbd5e1;
    letter-spacing: 4px;
    cursor: pointer;
    user-select: none;
}
.star-input i.bi-star-fill { color: #f59e0b; }
.star-input i { transition: transform .1s ease; }
.star-input i:hover { transform: scale(1.15); }

/* Review list items */
.svc-review-item {
    background: #F8FAFC;
    border: 1px solid rgba(15,23,42,.05);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    margin-bottom: .75rem;
}
.review-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--hp-primary), var(--hp-teal));
    color: #fff;
    font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 36px;
}
.svc-review-body {
    color: #334155;
    line-height: 1.55;
    font-size: .92rem;
}

/* ==========================================================
   Reveal-contact popup (shared: Services grid + Service detail)
   ========================================================== */
.reveal-number-panel {
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #F5FAFF, #E9F8F5);
    border-radius: 12px;
    border: 1px dashed rgba(0, 114, 206, .3);
}
.reveal-number-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hp-muted);
    margin-bottom: 6px;
}
.reveal-number {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--hp-primary);
    letter-spacing: .02em;
}
.reveal-number.masked { color: #94a3b8; }
.reveal-number.revealed { color: var(--hp-teal); }
.reveal-number a.reveal-tel {
    color: var(--hp-teal);
    text-decoration: none;
    border-bottom: 2px solid rgba(0, 168, 150, .3);
}
.reveal-number a.reveal-tel:hover {
    color: #028090;
    border-bottom-color: currentColor;
}

/* Category filter list */
.svc-cat-list { display: flex; flex-direction: column; gap: 4px; }
.svc-cat {
    display: flex; align-items: center; justify-content: space-between;
    padding: .35rem .55rem;
    font-size: .8rem;
    border-radius: 8px;
    color: var(--hp-dark);
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: background .12s ease, border-color .12s ease, color .12s ease;
    gap: 6px;
}
.svc-cat:hover {
    background: #F5FAFF;
    color: var(--hp-primary);
}
.svc-cat.active {
    background: linear-gradient(135deg, #E5F0FF, #F5FAFF);
    border-color: var(--hp-primary);
    color: var(--hp-primary);
    font-weight: 700;
}
.svc-cat .cat-label {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    min-width: 0; flex: 1 1 auto;
}
.svc-cat .cat-count {
    background: rgba(0,0,0,.06);
    color: var(--hp-muted);
    font-weight: 700;
    font-size: .7rem;
    padding: 1px 8px;
    border-radius: 999px;
    flex: 0 0 auto;
}
.svc-cat.active .cat-count {
    background: var(--hp-primary);
    color: #fff;
}

/* ---------- Tourism page: 20% sidebar + 80% grid ---------- */
.tourism-2col,
.market-2col {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.tourism-2col .tourism-sidebar,
.tourism-2col .tourism-main,
.market-2col  .market-sidebar,
.market-2col  .market-main {
    flex: 0 0 100%;
    min-width: 0;
}
@media (min-width: 992px) {
    .tourism-2col .tourism-sidebar { flex: 0 0 calc(20% - 12px); }
    .tourism-2col .tourism-main    { flex: 0 0 calc(80% - 8px); }
    .market-2col  .market-sidebar  { flex: 0 0 calc(20% - 12px); }
    .market-2col  .market-main     { flex: 0 0 calc(80% - 8px); }
}

/* Match services page's compact card thumbnails everywhere */
.tourism-main .listing-card .card-media,
.market-main  .listing-card .card-media {
    height: 161px;
}

/* Bootstrap pagination override to match brand */
#servicesPager .page-link,
#tourismPager .page-link,
#marketPager .page-link {
    color: var(--hp-primary);
    border-color: rgba(0,114,206,.25);
    border-radius: 8px !important;
    margin: 0 2px;
    font-weight: 600;
}
#servicesPager .page-item.active .page-link,
#tourismPager .page-item.active .page-link,
#marketPager .page-item.active .page-link {
    background: var(--hp-primary);
    border-color: var(--hp-primary);
    color: #fff;
}
#servicesPager .page-item.disabled .page-link,
#tourismPager .page-item.disabled .page-link,
#marketPager .page-item.disabled .page-link {
    color: #cbd5e1;
    background: transparent;
    border-color: rgba(0,0,0,.05);
}

/* ==========================================================
   About page - sections with icon column
   ========================================================== */
.about-section {
    display: flex;
    gap: 20px;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(15,23,42,.06);
}
.about-section:last-child { border-bottom: none; }
.about-icon {
    flex: 0 0 60px;
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #E5F0FF, #E9F8F5);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    color: var(--hp-primary);
}
.about-body { flex: 1 1 auto; min-width: 0; }
.about-body h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--hp-primary);
    margin: 0;
}
.about-subtitle {
    color: var(--hp-teal);
    font-weight: 600;
    font-size: .9rem;
    margin: 2px 0 .6rem;
}
.about-body p { color: #334155; line-height: 1.65; margin: 0; }

/* ==========================================================
   Help Center - thumbnail-style contact cards
   ========================================================== */
.help-group-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--hp-dark);
    margin: 0 0 .75rem;
    display: flex; align-items: center;
}
.help-thumb {
    display: flex; align-items: center;
    padding: 1rem 1rem;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15,23,42,.06);
    text-decoration: none;
    color: var(--hp-dark);
    border: 1px solid rgba(15,23,42,.05);
    transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
    height: 100%;
    gap: 12px;
}
.help-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15,23,42,.14);
    color: var(--hp-dark);
}
.help-thumb-icon {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    background: var(--hp-primary);
}
.help-thumb.help-blue   .help-thumb-icon { background: linear-gradient(135deg, #0072CE, #00A6E0); }
.help-thumb.help-green  .help-thumb-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.help-thumb.help-indigo .help-thumb-icon { background: linear-gradient(135deg, #0084FF, #6E5AF7); }
.help-thumb.help-red    .help-thumb-icon { background: linear-gradient(135deg, #E63946, #F77F00); }

.help-thumb-body { flex: 1 1 auto; min-width: 0; }
.help-thumb-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--hp-muted);
    margin-bottom: 2px;
}
.help-thumb-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--hp-dark);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.help-thumb-cta {
    color: var(--hp-primary);
    font-size: 1.1rem;
    flex: 0 0 auto;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .12s ease, transform .12s ease;
}
.help-thumb:hover .help-thumb-cta {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================
   Contact / Report form wrapper
   ========================================================== */
.contact-form-wrap {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .08);
    max-width: 860px;
    margin: 0 auto;
}
.contact-form-wrap .form-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--hp-dark);
    margin-bottom: .25rem;
}
.contact-success {
    max-width: 500px; margin: 0 auto;
}

/* ==========================================================
   Auth modal (login / register)
   ========================================================== */
#authModal .modal-content {
    border: none;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .28);
}
#authModal .modal-title {
    font-weight: 800;
    letter-spacing: -.3px;
}

.auth-google-wrap {
    display: flex;
    justify-content: center;
    margin: .25rem 0 .5rem;
    min-height: 44px;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
    color: #94a3b8;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    position: absolute; top: 50%; width: 42%;
    height: 1px; background: #e2e8f0;
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-divider span { background: #fff; padding: 0 .6rem; position: relative; }

#authTabs .nav-link {
    color: #64748b;
    font-weight: 600;
    border-radius: 999px;
}
#authTabs .nav-link.active {
    background: var(--hp-primary);
    color: #fff;
}

.auth-error {
    color: var(--hp-secondary);
    font-size: .82rem;
    font-weight: 600;
    min-height: 1.2em;
}

/* Profile-picture file picker + preview thumb */
.reg-profile-picker {
    display: flex;
    align-items: center;
    gap: 10px;
}
.reg-profile-thumb {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9 url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23cbd5e1'>\
<path d='M12 12a5 5 0 100-10 5 5 0 000 10zm0 2c-4.4 0-8 2.7-8 6v2h16v-2c0-3.3-3.6-6-8-6z'/></svg>")
        center / 60% no-repeat;
    flex: 0 0 60px;
    border: 2px solid #e2e8f0;
}
.reg-profile-thumb:not(.shown) { display: inline-block; }
.reg-profile-thumb.shown { background: #fff; }

/* Upload postcard modal preview */
.upload-preview {
    display: none;
    max-width: 100%;
    max-height: 220px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .15);
    background: #f1f5f9;
}
.upload-preview.shown { display: block; }

/* ==========================================================
   Legal pages (Terms, Privacy, Cookies)
   ========================================================== */
.legal-hero {
    background:
        radial-gradient(900px 400px at 10% -10%, rgba(0,168,150,.15), transparent 60%),
        radial-gradient(900px 400px at 90% 0%, rgba(252,209,22,.18), transparent 55%),
        linear-gradient(180deg, #EAF4FF 0%, #F5F7FB 100%);
    padding: 3.5rem 0 2.5rem;
    border-bottom: 1px solid rgba(15,23,42,.05);
}
.legal-hero h1 {
    font-weight: 800;
    letter-spacing: -.8px;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    margin: .5rem 0 .35rem;
}
.legal-hero .legal-eyebrow {
    display: inline-block;
    background: rgba(255,255,255,.9);
    padding: .3rem .8rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .08em;
    font-size: .75rem;
    color: var(--hp-teal);
    text-transform: uppercase;
}
.legal-hero .legal-updated {
    color: var(--hp-muted);
    margin: 0;
    font-size: .9rem;
}

.legal-body {
    max-width: 820px;
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    line-height: 1.7;
    color: #1e293b;
}
.legal-body .lead {
    font-size: 1.05rem;
    color: var(--hp-muted);
    margin-bottom: 2rem;
}
.legal-body h2 {
    font-weight: 800;
    font-size: 1.35rem;
    margin: 2.2rem 0 .75rem;
    color: var(--hp-primary);
    letter-spacing: -.3px;
}
.legal-body h3 {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 1.5rem 0 .5rem;
    color: var(--hp-dark);
}
.legal-body p, .legal-body ul, .legal-body ol {
    margin-bottom: 1rem;
    color: #334155;
}
.legal-body ul, .legal-body ol { padding-left: 1.25rem; }
.legal-body a {
    color: var(--hp-primary);
    text-decoration: none;
    border-bottom: 1px dotted rgba(0,114,206,.4);
}
.legal-body a:hover {
    color: #005BAA;
    border-bottom-color: currentColor;
}

/* ==========================================================
   Community postcard cards
   ========================================================== */
.postcard-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, .08);
    transition: transform .18s ease, box-shadow .18s ease;
    height: 100%;
    display: flex; flex-direction: column;
}
.postcard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
}
.postcard-card .postcard-photo {
    display: block;
    height: 190px;
    background-size: cover;
    background-position: center;
    background-color: #E5F0FF;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease;
}
.postcard-card .postcard-photo:hover { filter: brightness(1.05); }
.postcard-card .postcard-photo:focus-visible {
    outline: 3px solid var(--hp-primary);
    outline-offset: -3px;
}

/* ---------- Postcard lightbox ---------- */
.postcard-lightbox {
    background: #0F172A;
    color: #fff;
    position: relative;
}
.postcard-lightbox-close {
    position: absolute !important;
    top: 12px; right: 12px;
    background: rgba(255,255,255,.9) !important;
    border-radius: 999px;
    padding: .55rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
    z-index: 5;
}
.postcard-lightbox-photo {
    width: 100%;
    height: 60vh;
    max-height: 640px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #0F172A;
}
.postcard-lightbox-body {
    padding: 1rem 1.25rem 1.25rem;
    background: #0F172A;
}
.postcard-lightbox-body .postcard-avatar {
    width: 40px; height: 40px;
    border: 2px solid rgba(255,255,255,.3);
}
.postcard-lightbox-body #pcLightName    { color: #ffffff !important; }
.postcard-lightbox-body #pcLightCaption { color: #f1f5f9 !important; font-size: .95rem; }
.postcard-lightbox-body #pcLightMeta    { color: #94a3b8 !important; }
.postcard-card .postcard-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: #fff;
}
.postcard-card .postcard-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 34px;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .15);
    background: #f1f5f9;
}
.postcard-card .postcard-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--hp-dark);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

/* ==========================================================
   Footer
   ========================================================== */
.hp-footer {
    background: #0F172A;
    color: #CBD5E1;
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.hp-footer h6 {
    color: #fff; font-weight: 700; margin-bottom: 1rem;
    letter-spacing: .05em; text-transform: uppercase; font-size: .85rem;
}
.hp-footer a { color: #CBD5E1; text-decoration: none; }
.hp-footer a:hover { color: var(--hp-accent); }
.hp-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2rem; padding-top: 1rem;
    color: #94A3B8; font-size: .875rem;
}

/* ==========================================================
   Loading skeleton
   ========================================================== */
.hp-loading {
    text-align: center;
    padding: 2rem 0;
    color: var(--hp-muted);
}
.hp-loading .spinner-border { color: var(--hp-primary); }

/* ==========================================================
   Helpers
   ========================================================== */
.rounded-2xl { border-radius: 20px !important; }
.shadow-soft { box-shadow: 0 10px 25px rgba(15,23,42,.06) !important; }
.text-white-80 { color: rgba(255,255,255,.85) !important; }

/* ==========================================================
   Global close-button visibility fix
   ----------------------------------------------------------
   Bootstrap's .btn-close is a background-SVG X that turns
   near-invisible over photo / dark modal headers (see the
   Cambugahay Falls popup). Replace it with a high-contrast
   circular button that shows an explicit × on any background.
   ========================================================== */
.btn-close,
.modal .btn-close {
    background-image: none !important;   /* wipe Bootstrap's SVG */
    width: 34px !important;
    height: 34px !important;
    padding: 0 !important;
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.96) !important;
    border: 1px solid rgba(15, 23, 42, 0.12) !important;
    border-radius: 50% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #0F172A !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    font-weight: 500 !important;
    transition: background-color .12s ease, transform .12s ease;
}
.btn-close::before {
    content: '\00D7';                    /* × universally renders as an X */
    display: block;
    color: inherit;
}
.btn-close:hover {
    background-color: #FEE2E2 !important;
    color: #B91C1C !important;
    transform: scale(1.05);
}
.btn-close:focus-visible {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
}
/* Neutralise .btn-close-white — our replacement is already visible on dark. */
.btn-close-white {
    background-color: rgba(255, 255, 255, 0.96) !important;
    color: #0F172A !important;
    filter: none !important;
}

/* ---------- Tourism Booking Modal ---------- */
.bkm-main-photo {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}
.bkm-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.bkm-thumb {
    width: 52px;
    height: 40px;
    border-radius: 6px;
    border: 2px solid transparent;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: border-color .15s;
}
.bkm-thumb.active,
.bkm-thumb:hover { border-color: var(--hp-primary); }

.bkm-participant-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
}
