/* ================================================================
   Yorkshire Coast Caravan Hub — coastal buy/sell theme
   ================================================================ */
:root {
    --sea-deep: #0a5c8a;
    --sea: #1f8fca;
    --sea-light: #7fc7e8;
    --sand: #fbeecb;
    --sand-deep: #ecd39c;
    --green: #4e9d2d;
    --green-dark: #3f8323;
    --sun: #f5a623;
    --coral: #f2941c;      /* orange accent (list / advertise) */
    --coral-dark: #dd7f0c;
    --navy: #0a4f7a;
    --ink: #17313f;
    --muted: #5a7480;
    --cloud: #f1f8fc;
    --white: #ffffff;
    --success: #2e9e6b;
    --danger: #d6455d;
    --warn: #e0932b;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(10, 79, 122, 0.13);
    --shadow-sm: 0 4px 14px rgba(10, 79, 122, 0.1);
}

* { box-sizing: border-box; }

.notification-badge { display: inline-block; min-width: 1.3rem; margin-left: 0.2rem; padding: 0.05rem 0.38rem; border-radius: 999px; background: var(--danger); color: #fff; font-size: 0.75rem; font-weight: 800; line-height: 1.4; text-align: center; vertical-align: middle; }
.notification-badge[hidden] { display: none; }
.card-type-tag.rental-pending { background: #ffedc2; color: #7a4b00; }
.card-type-tag.rental-booked { background: #f9dce1; color: #8d2435; }
.card-type-tag.rental-available { background: #d8f2e3; color: #145b36; }
.rental-response-form { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.availability-update { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; gap: 0.8rem; }
.availability-legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin: 0.8rem 0; font-size: 0.9rem; }
.availability-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.availability-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; display: inline-block; }
.availability-dot.available { background: #38a169; }
.availability-dot.unavailable { background: #d6455d; }
.availability-dot.pending { background: #e0932b; }
.availability-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.availability-month { min-width: 0; padding: 1rem; border: 1px solid rgba(31, 143, 202, 0.15); border-radius: 12px; background: #fff; }
.availability-month h2, .availability-month h4 { margin: 0 0 0.7rem; text-align: center; }
.availability-grid { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 3px; text-align: center; }
.availability-grid th { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.availability-grid td { height: 2.2rem; padding: 0; border-radius: 7px; font-size: 0.85rem; }
.availability-grid .calendar-available { background: #d8f2e3; color: #145b36; }
.availability-grid .calendar-unavailable { background: #f9dce1; color: #8d2435; }
.availability-grid .calendar-pending { background: #ffedc2; color: #7a4b00; }
.availability-grid .calendar-past { color: #9aa8ad; background: #f1f4f5; }
.availability-grid .calendar-empty { background: transparent; }
.calendar-day { display: block; width: 100%; min-height: 2.2rem; padding: 0; border: 0; border-radius: 7px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.calendar-day:hover, .calendar-day:focus-visible { outline: 2px solid var(--sea-deep); outline-offset: 1px; }
.calendar-day.is-selected { box-shadow: inset 0 0 0 2px var(--navy); font-weight: 800; }
.availability-grid td.is-in-range { box-shadow: inset 0 0 0 2px var(--sea); }
.availability-grid .calendar-past .calendar-day { cursor: default; }
.calendar-selection { min-height: 1.5rem; margin: 0.75rem 0; font-weight: 700; }
.booking-disclaimer { padding: 0.8rem; border-left: 4px solid var(--warn); border-radius: 6px; background: #fff5dc; font-size: 0.9rem; }
.public-availability-months { grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); max-height: 34rem; overflow: auto; }

body {
    margin: 0;
    font-family: "Nunito", system-ui, sans-serif;
    color: var(--ink);
    background: var(--cloud);
    line-height: 1.6;
}

h1, h2, h3, .brand-text { font-family: "Baloo 2", cursive; line-height: 1.15; }
a { color: var(--sea-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--coral);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 6px 16px rgba(255, 122, 89, 0.35);
}
.btn:hover { background: var(--coral-dark); transform: translateY(-2px); text-decoration: none; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }
.btn-secondary { background: var(--sea); box-shadow: 0 6px 16px rgba(31, 143, 202, 0.3); }
.btn-secondary:hover { background: var(--sea-deep); }
.btn-green { background: var(--green); box-shadow: 0 6px 16px rgba(78, 157, 45, 0.32); }
.btn-green:hover { background: var(--green-dark); }
.btn-blue { background: var(--sea); box-shadow: 0 6px 16px rgba(31, 143, 202, 0.3); }
.btn-blue:hover { background: var(--sea-deep); }
.btn-ghost { background: transparent; color: var(--sea-deep); box-shadow: none; border: 2px solid var(--sea-light); }
.btn-ghost:hover { background: var(--sea-light); color: var(--navy); }
.btn-danger { background: var(--danger); box-shadow: none; }
.btn-block { width: 100%; text-align: center; }

/* ---------- Seaside touches ---------- */
.seaside-scene { position: relative; overflow: hidden; background: #fff; }
.seaside-scene > img { display: block; width: 100%; height: auto; }
.seaside-wave { position: absolute; bottom: -5%; left: -5%; width: 110%; height: 16%; background: radial-gradient(ellipse at 50% 100%, #b9e2ef 65%, transparent 67%) 0 0 / 90px 100% repeat-x; animation: seaside-tide 6s ease-in-out infinite alternate; }
@keyframes seaside-tide { to { transform: translateX(35px) translateY(-3px); } }
.hero-carousel { overflow: hidden; }
.seagull-flight { position: absolute; top: 14%; left: 0; width: 100%; pointer-events: none; z-index: 2; animation: seagull-crossing 45s linear 8s infinite backwards; }
.seagull-flight img { display: block; }
@keyframes seagull-crossing {
    0% { transform: translateX(-90px) translateY(0); opacity: 0; }
    1% { opacity: 1; }
    14% { transform: translateX(50%) translateY(-12px); opacity: 1; }
    26%, 100% { transform: translateX(100%) translateY(4px); opacity: 0; }
}
.empty-caravan { display: block; margin: 0 auto 1rem; transform: scaleX(-1); }
.fav-pop .fav-heart { display: inline-block; animation: favourite-pop 0.4s ease-out; }
@keyframes favourite-pop { 50% { transform: scale(1.4) rotate(-8deg); } }
.whimsy-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; width: max-content; max-width: calc(100% - 32px); padding: 0.8rem 1.2rem; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 6px 20px #0002; opacity: 0; pointer-events: none; }
.whimsy-toast.is-visible { opacity: 1; }
.adventure-loading[hidden] { display: none; }
.adventure-loading { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 110; width: min(340px, calc(100% - 32px)); background: #fff; color: var(--navy); padding: 1rem; border: 2px solid var(--sea-light); border-radius: 16px; box-shadow: 0 6px 24px #0002; text-align: center; pointer-events: none; overflow: hidden; }
.adventure-loading img { display: block; animation: adventure-road 2s linear infinite; }
.adventure-loading p { margin: 0.6rem 0 0; border-top: 2px dashed var(--sea); padding-top: 0.6rem; }
@keyframes adventure-road { from { transform: translateX(-90px) scaleX(-1); } to { transform: translateX(340px) scaleX(-1); } }
@media (prefers-reduced-motion: reduce) {
    .seaside-wave, .seagull-flight, .fav-pop .fav-heart, .adventure-loading img { animation: none; }
    .seagull-flight { display: none; }
    .adventure-loading img { margin: auto; transform: scaleX(-1); }
}
/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(31, 143, 202, 0.15);
    box-shadow: 0 2px 10px rgba(10, 79, 122, 0.05);
}
.header-inner { width: min(1360px, 96%); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0; }
.header-inner { width: min(1360px, 96%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 0.6rem 0; position: relative; }
.brand { display: flex; align-items: center; gap: 0.5rem; justify-self: center; position: relative; z-index: 1; background: #fff; padding: 0 12px; margin: 0 -12px; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 52px; width: auto; display: block; }

/* Right-hand cluster: greeting + avatar */
.header-right { display: flex; align-items: center; gap: 0.6rem; justify-self: end; width: 100%; min-width: 0; justify-content: flex-end; }
.greeting { font-weight: 700; color: var(--navy); font-size: 0.92rem; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; position: relative; z-index: 1; background: #fff; padding: 10px 0 10px 12px; }
.header-caravan-lane { height: 46px; position: absolute; left: 64px; right: var(--caravan-lane-end, 320px); top: 50%; transform: translateY(-50%); overflow: hidden; pointer-events: none; }
.header-caravan { position: absolute; inset: 0; display: flex; align-items: center; animation: caravan-cruise 18s linear infinite; }
.header-caravan img { display: block; flex: 0 0 84px; transform: scaleX(-1); transform-origin: 58% 80%; animation: caravan-suspension 0.85s ease-in-out infinite; }
.header-caravan:nth-child(2) img { animation-delay: -0.28s; }
.header-caravan:nth-child(3) img { animation-delay: -0.56s; }
.header-caravan:nth-child(2) { animation-delay: -6s; }
.header-caravan:nth-child(3) { animation-delay: -12s; }
@keyframes caravan-cruise {
    from { transform: translateX(-84px); }
    to { transform: translateX(100%); }
}
@keyframes caravan-suspension {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(-0.4deg); }
    35% { transform: scaleX(-1) translateY(-0.8px) rotate(0.5deg); }
    70% { transform: scaleX(-1) translateY(0.4px) rotate(-0.2deg); }
}
@media (max-width: 1000px) {
    .header-caravan-lane { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .header-caravan { animation: none; display: none; }
    .header-caravan img { animation: none; }
    .header-caravan:first-child { display: flex; padding-left: 20%; }
}
.greeting strong { color: var(--sea-deep); }
.greeting-wave { display: inline-block; transform-origin: 70% 70%; animation: wave-hand 2.2s ease-in-out infinite; }
@keyframes wave-hand {
    0%, 60%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(14deg); }
    20%, 40% { transform: rotate(-8deg); }
}
@media (prefers-reduced-motion: reduce) { .greeting-wave { animation: none; } }
.avatar {
    position: relative; z-index: 1;
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1rem; color: #fff;
    background: linear-gradient(135deg, var(--sea) 0%, var(--sea-deep) 100%);
    box-shadow: 0 4px 12px rgba(10, 79, 122, 0.25);
    text-transform: uppercase;
}

/* Burger-triggered dropdown menu (all screen sizes) */
.main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 250px;
    background: var(--white);
    border: 1px solid rgba(31, 143, 202, 0.15);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(10, 79, 122, 0.18);
    padding: 0.5rem;
    z-index: 60;
}
.main-nav.is-open { display: flex; }
.main-nav a { color: var(--navy); font-weight: 700; font-size: 0.92rem; padding: 0.65rem 0.8rem; border-radius: 10px; white-space: nowrap; }
.main-nav a:hover { color: var(--sea); background: rgba(31, 143, 202, 0.08); text-decoration: none; }
.main-nav a.is-active { color: var(--sea); background: rgba(31, 143, 202, 0.1); }
.nav-user { color: var(--muted) !important; font-weight: 600 !important; }
.nav-list-btn { background: var(--coral); color: #fff !important; text-align: center; margin-top: 0.4rem; padding: 0.6rem 0.9rem; border-radius: 999px; box-shadow: 0 6px 16px rgba(242, 148, 28, 0.35); }
.nav-list-btn:hover { background: var(--coral-dark); color: #fff !important; }

/* Hamburger toggle (shown on all screen sizes) */
.nav-toggle {
    display: flex;
    justify-self: start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid rgba(31, 143, 202, 0.25);
    border-radius: 10px;
    cursor: pointer;
}
.nav-toggle span { display: block; height: 3px; width: 100%; background: var(--navy); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Flash ---------- */
.flash-area { margin-top: 1rem; }
.flash { padding: 0.9rem 1.2rem; border-radius: 12px; margin-bottom: 0.6rem; font-weight: 600; }
.flash-success { background: #e4f6ec; color: #1c6b48; }
.flash-danger { background: #fce4e8; color: #a52239; }
.flash-info { background: #e2f4fa; color: #0b5c78; }
.flash-warning { background: #fdf0dd; color: #97640f; }
.listing-offer-countdown { display: inline-block; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: var(--white);
    min-height: clamp(440px, 38vw, 720px);
    display: flex;
    align-items: center;
    padding: 3.5rem 0 4.5rem;
    background:
        linear-gradient(90deg, rgba(10, 79, 122, 0.78) 0%, rgba(10, 79, 122, 0.35) 60%, rgba(10, 79, 122, 0.15) 100%),
        url("../img/site/hero-caravan.jpg") center 25%/cover no-repeat;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0 0 0.7rem; text-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.hero p { font-size: 1.15rem; max-width: 560px; margin: 0 0 1.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-carousel { isolation: isolate; background: var(--navy); }
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: center 25%;
    opacity: 0; transition: opacity 1s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-carousel::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(10, 79, 122, 0.78), rgba(10, 79, 122, 0.35) 60%, rgba(10, 79, 122, 0.15));
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* wave divider */
.wave { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; }
.wave svg { width: 100%; height: 70px; display: block; }

/* ---------- Search / filter bar ---------- */
.search-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.4rem;
    margin-top: -3rem;
    position: relative;
    z-index: 5;
    border-top: 4px solid var(--green);
}
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; align-items: end; }
.filter-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.8rem 1rem; }
.filter-bar .field { margin-bottom: 0; }
.filter-bar label { font-size: 0.8rem; margin-bottom: 0.25rem; }
.filter-bar input, .filter-bar select { padding: 0.55rem 0.6rem; font-size: 0.92rem; border-radius: 10px; }
.filter-actions { display: flex; align-items: flex-end; gap: 0.6rem; }
.filter-actions .btn { padding: 0.6rem 1.4rem; }
@media (max-width: 960px) { .filter-bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .filter-bar { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Forms ---------- */
label { font-weight: 700; color: var(--navy); display: block; margin-bottom: 0.35rem; font-size: 0.92rem; }
input, select, textarea {
    width: 100%; padding: 0.7rem 0.85rem;
    border: 2px solid #dbeaf0; border-radius: 12px;
    font-family: inherit; font-size: 1rem; background: var(--white);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--sea);
    box-shadow: 0 0 0 4px rgba(20, 160, 196, 0.15);
}
textarea { resize: vertical; min-height: 120px; }
.field { margin-bottom: 1.1rem; }
.field-error { color: var(--danger); font-size: 0.85rem; margin-top: 0.3rem; }
.show-password { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.85rem; color: var(--muted); font-weight: 500; cursor: pointer; }
.show-password input { width: auto; margin: 0; }
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; }
.checkbox-row input { width: auto; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; }

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 { font-size: 2.2rem; margin: 0 0 0.5rem; color: var(--navy); }
.section-head p { color: var(--muted); margin: 0; }
.section-alt { background: linear-gradient(180deg, #fff, var(--cloud)); }

/* ---------- Caravan cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.caravan-card {
    background: var(--white); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    display: flex; flex-direction: column;
    border: 1px solid #e7f1f7;
}
.caravan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.caravan-card { position: relative; }
.card-img { position: relative; aspect-ratio: 16/11; overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 0.28rem 0.7rem; border-radius: 6px;
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
    color: #fff; box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}
.card-badge.is-featured { background: var(--sun); }
.card-badge.is-new { background: var(--green); }
.card-fav {
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; border: none; padding: 0;
    background: rgba(255,255,255,0.9); color: var(--sea-deep);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    font-size: 1.05rem; box-shadow: var(--shadow-sm); transition: transform 0.12s ease, color 0.12s ease;
}
button.card-fav { font: inherit; line-height: 1; }
.card-fav:hover { transform: scale(1.1); color: var(--danger); }
.card-fav.is-saved { color: var(--danger); }
.fav-form { display: contents; }
.fav-heart { line-height: 1; }
.card-region { position: absolute; bottom: 10px; left: 10px; z-index: 2; background: rgba(10, 79, 122, 0.9); color: #fff; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.76rem; font-weight: 700; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 0.15rem; font-size: 1.12rem; color: var(--navy); }
.card-loc { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.7rem; }
.card-specs { display: flex; gap: 0.8rem; flex-wrap: wrap; color: var(--navy); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.9rem; }
.card-specs span { display: inline-flex; align-items: center; gap: 0.3rem; }
.card-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.8rem; }
.card-price-lg { font-family: "Baloo 2", cursive; font-size: 1.5rem; font-weight: 800; color: var(--sea-deep); }
.card-price-lg small { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.card-type-tag { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; padding: 0.2rem 0.6rem; border-radius: 999px; }
.card-type-tag.sale { background: #eaf7e2; color: var(--green-dark); }
.card-type-tag.rental { background: #e2f1fa; color: var(--sea-deep); }
.card-type-tag.park { background: #efe6fa; color: #5b3c9a; }
.card-foot { margin-top: auto; }

/* ---------- Seller sections (browse) ---------- */
.seller-section { margin-bottom: 2.2rem; }
.seller-section-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1.25rem; color: var(--navy); margin: 0 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid #e7f1f7; }
.seller-section-title span { font-size: 0.85rem; font-weight: 700; color: #fff; background: var(--sea-deep); border-radius: 999px; padding: 0.1rem 0.6rem; }
.park-sold-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 1rem; }

/* ---------- Amenity chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { background: var(--sand); color: #7a5b18; padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.chip-sea { background: var(--sea-light); color: var(--navy); }

/* ---------- Badges ---------- */
.badge { padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; }
.badge-pending { background: #fdf0dd; color: #97640f; }
.badge-approved { background: #e4f6ec; color: #1c6b48; }
.badge-rejected { background: #fce4e8; color: #a52239; }

/* ---------- Feature strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.feature { text-align: center; padding: 1.5rem; }
.feature .ico { font-size: 2.4rem; }
.feature h3 { margin: 0.6rem 0 0.3rem; color: var(--navy); }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Regions ---------- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.region-tile {
    position: relative; border-radius: var(--radius); overflow: hidden; height: 150px;
    display: flex; align-items: flex-end; color: #fff; font-weight: 800; font-size: 1.1rem;
    padding: 1rem; box-shadow: var(--shadow-sm);
    background-size: cover; background-position: center;
}
.region-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(11,58,75,0.75)); }
.region-tile span { position: relative; z-index: 2; }
.region-tile:hover { text-decoration: none; transform: translateY(-4px); }

/* ---------- On-park photo gallery ---------- */
.park-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.park-gallery figure {
    position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); aspect-ratio: 4/3;
}
.park-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.park-gallery figcaption {
    position: absolute; inset: auto 0 0 0; padding: 1.4rem 0.9rem 0.7rem; color: #fff;
    font-weight: 700; font-size: 0.95rem;
    background: linear-gradient(180deg, transparent, rgba(11,58,75,0.8));
}
.park-gallery figure:first-child { grid-column: span 2; aspect-ratio: 16/9; }
@media (max-width: 620px) { .park-gallery figure:first-child { grid-column: auto; aspect-ratio: 4/3; } }

/* ---------- Detail page ---------- */
.detail-hero { aspect-ratio: 16/7; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 2rem; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; }
.detail-main h1 { font-size: 2.4rem; margin: 0 0 0.3rem; color: var(--navy); }
.detail-loc { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.spec-box { background: var(--white); border-radius: 12px; padding: 1rem; text-align: center; box-shadow: var(--shadow-sm); }
.spec-box .num { font-size: 1.6rem; font-weight: 800; color: var(--sea-deep); font-family: "Baloo 2"; }
.spec-box .lbl { color: var(--muted); font-size: 0.85rem; }
.booking-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.6rem; position: sticky; top: 90px; height: fit-content; }
.booking-card .price { font-size: 2rem; font-weight: 800; color: var(--navy); font-family: "Baloo 2"; }
.booking-card .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.booking-box { background: var(--cloud); border-radius: 12px; padding: 1rem; margin-top: 1rem; white-space: pre-wrap; }

/* ---------- Panels / tables ---------- */
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.5rem; margin-bottom: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.2rem; margin-bottom: 2rem; }
.stat { background: var(--white); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); text-align: center; }
.stat .num { font-size: 2.2rem; font-weight: 800; font-family: "Baloo 2"; color: var(--sea-deep); }
.stat .lbl { color: var(--muted); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 0.85rem 0.7rem; border-bottom: 1px solid #eef4f6; }
.table th { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.table tr:hover td { background: #f8fcfd; }
.table-thumb { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 78vh; }
.auth-wrap-centered { grid-template-columns: 1fr; }
.auth-visual {
    background: linear-gradient(180deg, rgba(11,110,143,0.35), rgba(11,110,143,0.55)),
        url("../img/site/caravan-westwood.jpg") center/cover;
    color: #fff; display: flex; flex-direction: column; justify-content: center; padding: 3rem;
}
.auth-visual h2 { font-size: 2.4rem; margin: 0 0 0.6rem; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 3rem 1.5rem; }
.auth-form { width: min(420px, 100%); }
.auth-form h1 { color: var(--navy); margin: 0 0 0.3rem; }
.auth-form .muted { color: var(--muted); margin: 0 0 1.5rem; }
.auth-form .checkbox-row { justify-content: center; margin: 0 0 1rem; }
.auth-form .checkbox-row input { flex: 0 0 auto; padding: 0; }
.totp-setup-page { min-height: 76vh; display: grid; place-items: center; padding: 3rem 1.25rem; background: linear-gradient(145deg, #edf7fb, #f8fbfc 58%, #fff8eb); }
.totp-setup-card { width: min(100%, 520px); padding: clamp(1.4rem, 4vw, 2.25rem); background: var(--white); border: 1px solid #e3edf1; border-radius: 22px; box-shadow: 0 18px 48px rgba(18, 63, 90, 0.12); }
.totp-setup-heading { margin-bottom: 1.5rem; }
.totp-setup-step { display: inline-block; margin-bottom: 0.5rem; color: var(--sea-deep); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.totp-setup-heading h1 { margin: 0 0 0.45rem; color: var(--navy); font-size: clamp(1.65rem, 4vw, 2rem); }
.totp-setup-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.totp-setup-guide { display: grid; gap: 0.65rem; padding: 1rem 1rem 1rem 2.5rem; margin: 0 0 1.25rem; border-radius: 12px; background: #f8fbfc; color: var(--ink); line-height: 1.5; }
.totp-setup-guide li { padding-left: 0.15rem; }
.totp-qr-card { display: grid; justify-items: center; gap: 0.8rem; padding: 1.25rem; border: 1px solid #e6eef1; border-radius: 16px; background: #f8fbfc; text-align: center; }
.totp-qr-card #totp-qr { display: grid; min-height: 256px; min-width: 256px; place-items: center; padding: 8px; border-radius: 10px; background: #fff; }
.totp-qr-card #totp-qr img, .totp-qr-card #totp-qr canvas { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }
.totp-qr-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.totp-manual-key { margin: 1rem 0; border: 1px solid #e6eef1; border-radius: 12px; }
.totp-manual-key summary { padding: 0.8rem 1rem; color: var(--sea-deep); font-weight: 800; cursor: pointer; }
.totp-manual-key p { margin: 0; padding: 0 1rem 0.65rem; color: var(--muted); font-size: 0.9rem; }
.totp-manual-key > code { display: block; margin: 0 1rem 1rem; overflow-wrap: anywhere; font-size: 0.9rem; letter-spacing: 0.08em; }
.totp-verify-form .field { margin-bottom: 1rem; }
.totp-verify-form input[name="code"] { height: 3.2rem; text-align: center; font-size: 1.25rem; font-weight: 800; letter-spacing: 0.24em; }
.totp-remember { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0 0 1.1rem; color: var(--ink); cursor: pointer; }
.totp-remember input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--sea); }
.totp-remember span { display: grid; gap: 0.15rem; }
.totp-remember small { color: var(--muted); font-size: 0.85rem; }
.totp-recovery-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; padding: 0; margin: 1.25rem 0; list-style: none; }
.totp-recovery-list li { padding: 0.75rem; border: 1px solid #e6eef1; border-radius: 9px; background: #f8fbfc; text-align: center; }
.totp-recovery-list code { font-size: 0.95rem; letter-spacing: 0.08em; }

/* ---------- Photo gallery ---------- */
.gallery { margin-bottom: 2rem; }
.gallery-main { margin-bottom: 0.8rem; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.gallery-thumb {
    width: 90px; height: 64px; padding: 0; border: 3px solid transparent;
    border-radius: 10px; overflow: hidden; cursor: pointer; background: none;
    box-shadow: var(--shadow-sm); transition: border-color 0.15s ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.is-active { border-color: var(--sea); }
.gallery-thumb:hover { border-color: var(--sea-light); }

/* ---------- Image manager (upload form) ---------- */
.image-manager { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.image-thumb {
    width: 120px; border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow-sm); background: var(--white);
}
.image-thumb img { width: 120px; height: 84px; object-fit: cover; display: block; }
.image-remove {
    display: flex; align-items: center; gap: 0.35rem; justify-content: center;
    font-size: 0.8rem; font-weight: 700; color: var(--danger);
    padding: 0.35rem; margin: 0; cursor: pointer;
}
.image-remove input { width: auto; }

/* ---------- Page header band ---------- */
.page-band {
    background: linear-gradient(120deg, rgba(11,58,75,0.92), rgba(11,110,143,0.7)),
        url("../img/site/caravan-winter-deck.jpg") center/cover;
    color: #fff; padding: 2.5rem 0; margin-bottom: 2rem;
}
.page-band h1 { margin: 0; font-size: 2.2rem; }
.page-band p { margin: 0.3rem 0 0; opacity: 0.9; }

/* ---------- Layout helpers ---------- */
.two-col { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.filter-panel { position: sticky; top: 90px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .ico { font-size: 3rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mb-1 { margin-bottom: 1rem; }
.text-muted { color: var(--muted); }
.inline-form { display: inline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfe3ea; margin-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding: 3rem 0 2rem; flex-wrap: wrap; }
.footer-about { max-width: 320px; }
.footer-logo { height: 56px; width: auto; background: #fff; padding: 8px 12px; border-radius: 12px; margin-bottom: 0.8rem; }
.footer-about p { margin: 0; color: #b9d4de; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links strong { color: #fff; margin-bottom: 0.2rem; }
.footer-links a { color: #cfe3ea; }
.footer-bottom { text-align: center; padding: 1rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.85rem; }

/* ---------- Results toolbar ---------- */
.results-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.results-toolbar h2 { margin: 0; font-size: 1.5rem; color: var(--navy); }
.results-sort { display: flex; align-items: center; gap: 0.5rem; }
.results-sort label { margin: 0; font-size: 0.88rem; }
.results-sort select { width: auto; padding: 0.45rem 0.7rem; }

/* ---------- Section titles (left aligned) ---------- */
.section-title { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 1.4rem; }
.section-title h2 { margin: 0; font-size: 1.7rem; color: var(--navy); }
.section-title .rule { flex: 1; height: 3px; background: linear-gradient(90deg, var(--sea-light), transparent); border-radius: 3px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; align-items: center; gap: 0.4rem; margin: 2.5rem 0 0; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-weight: 700; background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); }
.pagination a:hover { text-decoration: none; background: var(--sea-light); }
.pagination .is-current { background: var(--green); color: #fff; }

/* ---------- Newsletter strip ---------- */
.newsletter {
    background: linear-gradient(120deg, #fff4dc, #ffe9c2);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 1.8rem 2rem; margin: 3rem 0;
    display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; justify-content: space-between;
    border: 1px solid #f6dda3;
}
.newsletter .nl-text h3 { margin: 0 0 0.25rem; color: var(--navy); font-size: 1.4rem; }
.newsletter .nl-text p { margin: 0; color: #7a5b18; }
.newsletter form { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.newsletter input { width: 260px; }
.nl-note { width: 100%; font-size: 0.8rem; color: #7a5b18; margin: 0.6rem 0 0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; color: var(--muted); font-size: 0.88rem; margin: 1.4rem 0; }
.breadcrumb a { color: var(--sea-deep); }
.breadcrumb span { color: var(--muted); }

/* ---------- Detail: sale header + spec bar ---------- */
.detail-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.detail-topbar h1 { margin: 0 0 0.3rem; }
.detail-price { text-align: right; }
.detail-price .amount { font-family: "Baloo 2", cursive; font-size: 2.2rem; font-weight: 800; color: var(--green); line-height: 1; }
.detail-price .amount small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.detail-price .fav-link { display: inline-flex; align-items: center; gap: 0.35rem; color: var(--sea-deep); font-weight: 700; font-size: 0.88rem; margin-top: 0.3rem; }
.detail-price button.fav-link { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.detail-price .fav-link.is-saved { color: var(--danger); }
.spec-bar { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 1.1rem 1.3rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 2rem; }
.spec-bar .item { display: flex; align-items: center; gap: 0.5rem; }
.spec-bar .item .ic { font-size: 1.3rem; }
.spec-bar .item .v { font-weight: 800; color: var(--navy); font-size: 0.95rem; line-height: 1.1; }
.spec-bar .item .l { color: var(--muted); font-size: 0.78rem; }

/* ---------- Key details ---------- */
.key-details .kd-title { color: var(--sea-deep); margin: 0 0 0.8rem; font-size: 1.15rem; }
.kd-table { width: 100%; border-collapse: collapse; }
.kd-table th, .kd-table td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid #eef4f6; font-size: 0.92rem; vertical-align: top; }
.kd-table th { color: var(--muted); font-weight: 700; width: 45%; }
.kd-table td { color: var(--navy); font-weight: 700; }

/* ---------- Included list ---------- */
.included-box { background: #eef8e6; border: 1px solid #cfe9bd; border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.included-box h3 { margin: 0 0 0.8rem; color: var(--green-dark); }
.included-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem 1.2rem; }
.included-list li { display: flex; align-items: flex-start; gap: 0.5rem; color: var(--ink); font-size: 0.92rem; }
.included-list li::before { content: "✓"; color: var(--green); font-weight: 900; }

/* ---------- Seller card ---------- */
.seller-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; position: sticky; top: 90px; }
.seller-card h3 { margin: 0 0 0.9rem; color: var(--sea-deep); }
.seller-line { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.seller-card .btn { margin-top: 0.4rem; }
.seller-note { color: var(--muted); font-size: 0.8rem; margin: 0.9rem 0 0; text-align: center; }

/* ---------- Advertise banner ---------- */
.advertise-banner {
    position: relative; overflow: hidden; border-radius: var(--radius);
    color: #fff; padding: 2.5rem 2rem; margin: 3rem 0 0;
    background: linear-gradient(90deg, rgba(10,79,122,0.9), rgba(10,79,122,0.45)),
        url("../img/site/park-activities.jpg") center/cover;
}
.advertise-banner h2 { margin: 0 0 0.4rem; font-size: 1.8rem; }
.advertise-banner p { margin: 0 0 1.2rem; max-width: 520px; opacity: 0.95; }

/* ---------- Trust bar ---------- */
.trust-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin: 2.5rem 0; }
.trust-item { display: flex; align-items: center; gap: 0.8rem; background: var(--white); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-sm); }
.trust-item .ic { font-size: 1.8rem; }
.trust-item h4 { margin: 0 0 0.1rem; color: var(--navy); font-size: 1rem; }
.trust-item p { margin: 0; color: var(--muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .detail-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .filter-panel { position: static; }
    .seller-card { position: static; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .grid-2 { grid-template-columns: 1fr; }
    .detail-price { text-align: left; }
    .newsletter input { width: 100%; }
    .newsletter form { width: 100%; }
}

@media (max-width: 560px) {
    .totp-setup-page { min-height: 70vh; padding: 1.5rem 0.8rem; }
    .totp-setup-card { padding: 1.25rem; border-radius: 16px; }
    .totp-qr-card { padding: 0.8rem; }
    .totp-qr-card #totp-qr { min-width: 224px; min-height: 224px; }
    .totp-recovery-list { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
    .totp-recovery-list li { padding: 0.6rem 0.35rem; }
    .greeting strong { display: block; font-size: 0.9rem; }
    .greeting { font-size: 0.8rem; line-height: 1.1; text-align: right; }
}

@media (max-width: 400px) {
    .greeting { display: none; }
}

/* ---------- Share controls ---------- */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.2rem 0; }
.share-bar .share-label { font-weight: 700; color: var(--navy); margin-right: 0.2rem; }
.share-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(31, 143, 202, 0.25);
    background: var(--white);
    color: var(--navy);
    font-weight: 700; font-size: 0.85rem;
    cursor: pointer; text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.share-btn:hover { background: var(--sea); color: #fff; border-color: var(--sea); text-decoration: none; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.4rem; margin: 2rem 0 0.5rem; }
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 143, 202, 0.2);
    background: var(--white);
    color: var(--navy); font-weight: 700; text-decoration: none;
}
.pagination a:hover { background: var(--sea); color: #fff; border-color: var(--sea); text-decoration: none; }
.pagination .is-current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .is-disabled { opacity: 0.45; pointer-events: none; }
.pagination .gap { border: none; background: none; min-width: auto; }

/* ---------- Similar caravans ---------- */
.similar-section { margin-top: 2.5rem; }
.similar-section > h2 { margin-bottom: 1rem; }

/* ---------- Accessibility ---------- */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Star ratings ---------- */
.stars { display: inline-flex; letter-spacing: 1px; }
.stars .star { color: #d7dde1; font-size: 1rem; line-height: 1; }
.stars .star.is-on { color: #f5a623; }
.card-rating { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--muted); }
.detail-rating { margin: 0.3rem 0 0; }
.detail-rating a { color: inherit; display: inline-flex; align-items: center; gap: 0.35rem; }
.detail-rating a:hover { text-decoration: none; }

/* ---------- Reviews ---------- */
.reviews-section { margin-top: 2.5rem; }
.reviews-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.reviews-head h2 { margin: 0; }
.reviews-avg { display: flex; align-items: center; gap: 0.4rem; }
.reviews-avg .stars .star { font-size: 1.2rem; }
.review-form { margin-bottom: 1.5rem; }
.review-list { display: grid; gap: 1rem; }
.review-item-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.review-author { color: var(--navy); }
.review-date { font-size: 0.85rem; }
.review-title { margin: 0.5rem 0 0.2rem; color: var(--navy); }
.review-body { margin: 0.2rem 0 0; white-space: pre-wrap; }

/* Clickable star input (radios laid out in reverse for hover/check cascade) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 1.9rem; color: #d7dde1; cursor: pointer; padding: 0 0.1rem; line-height: 1; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f5a623; }
.star-input input:focus-visible + label { outline: 2px solid var(--sea); border-radius: 4px; }

/* ---------- View toggle (list / map) ---------- */
.view-toggle { display: inline-flex; border: 1px solid rgba(31, 143, 202, 0.25); border-radius: 999px; overflow: hidden; margin-left: 0.6rem; }
.view-toggle a { padding: 0.4rem 0.95rem; font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.view-toggle a:hover { text-decoration: none; background: rgba(31, 143, 202, 0.08); }
.view-toggle a.is-active { background: var(--sea); color: #fff; }

/* ---------- Leaflet map popups ---------- */
.leaflet-popup-content { font-family: inherit; }
.leaflet-popup-content a { color: var(--sea); }

/* ---------- Promote / featured listings ---------- */
.promo-benefits { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.3rem; }
.promo-benefits li { color: var(--navy); font-weight: 600; }
.promo-price-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.promo-price { background: #f4fbfd; border: 1px solid rgba(31, 143, 202, 0.18); border-radius: 14px; padding: 0.9rem 1.2rem; text-align: center; }
.promo-price-amt { font-size: 1.5rem; font-weight: 800; color: var(--green); font-family: 'Baloo 2', sans-serif; }
.promo-price-lbl { font-size: 0.85rem; color: var(--muted); }
.promote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.promote-card-head { display: flex; gap: 0.8rem; align-items: flex-start; margin-bottom: 0.9rem; }
.promote-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.promote-form select { flex: 1; min-width: 150px; }

/* ---------- Pricing plan: statuses, tags, checkout & pricing ---------- */
[hidden] { display: none !important; }
.card-type-tag.dealer { background: #fff1de; color: #9a5a06; }
.badge-awaiting_payment { background: #fff1de; color: #9a5a06; }
.badge-changes_required { background: #fdf0dd; color: #8a4b0b; border: 1px solid #ecc48b; }
.badge-paused { background: #eef1f4; color: #4b5866; }
.badge-sold { background: #e2f1fa; color: var(--sea-deep); }
.badge-expired { background: #f0eef0; color: #6c5a66; }
.checkout-panel { max-width: 720px; margin: 2rem auto; }
.checkout-price { font-size: 2.2rem; font-weight: 900; color: var(--navy); margin: 0.4rem 0 0.8rem; }
.checkout-price .text-muted { font-size: 1rem; font-weight: 600; }
.checkout-notes { padding-left: 1.2rem; margin: 0.8rem 0 1.2rem; }
.checkout-notes li { margin-bottom: 0.35rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; margin: 1rem 0 1.5rem; }
.pricing-card { display: flex; flex-direction: column; margin-bottom: 0; border-top: 4px solid var(--sea); }
.pricing-card h3 { margin-top: 0; }
.pricing-card .btn { margin-top: auto; align-self: flex-start; }
.pricing-card.is-current { border-top-color: var(--green); box-shadow: 0 0 0 2px var(--green), var(--shadow-sm); }
.pricing-amount { font-size: 2rem; font-weight: 900; color: var(--navy); line-height: 1.1; }
.pricing-list { padding-left: 1.1rem; margin: 0.6rem 0 1rem; }
.pricing-list li { margin-bottom: 0.3rem; }

/* ---------- Services (partner features) ---------- */
.service-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.6rem; align-items: center; padding: 1.4rem; }
.service-media { position: relative; }
.service-media img,
.service-media video { display: block; width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: 14px; background: #eef4f7; }
.service-media-placeholder { display: flex; align-items: center; justify-content: center; min-height: 260px; border-radius: 14px; border: 1px dashed rgba(31, 143, 202, 0.4); background: linear-gradient(160deg, #f4fbfd, #e7f3f9); color: var(--muted); font-weight: 600; text-align: center; padding: 1rem; }
.service-body h2 { margin: 0 0 0.3rem; }
.service-tagline { color: var(--sea-deep); font-weight: 700; margin: 0 0 0.8rem; }
.service-highlights { list-style: none; padding: 0; margin: 0.6rem 0 1.1rem; }
.service-highlights li { position: relative; padding-left: 1.5rem; margin-bottom: 0.4rem; }
.service-highlights li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.service-actions { margin-top: 0.4rem; }
.service-disclaimer { margin-top: 1.4rem; }
@media (max-width: 760px) {
    .service-card { grid-template-columns: 1fr; }
}
