/* =====================================================
   Hidden Cove RV Park – Public Stylesheet
   Aesthetic: Natural / Forest Lodge / Refined Outdoor
   Fonts: Playfair Display + Source Serif Pro
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,400&display=swap');

/* =====================================================
   ASTRA THEME RESETS
   These rules use high-specificity selectors to ensure
   Astra's normalise/reset doesn't break our components.
===================================================== */
.hcrv-booking-page *,
.hcrv-status-board-wrap *,
.hcrv-wrap *,
.hcrv-booking-page *::before,
.hcrv-booking-page *::after {
    box-sizing: border-box;
}
/* Astra resets line-height and font on everything — restore ours */
.hcrv-booking-page,
.hcrv-status-board-wrap,
.hcrv-wrap {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.6;
    color: #2c2416;
}
/* Prevent Astra's .entry-content a from colouring our buttons/links oddly */
.hcrv-booking-page a,
.hcrv-status-board-wrap a,
.hcrv-wrap a {
    color: inherit;
    text-decoration: none;
}
/* Astra adds bottom padding to .entry-content — remove inside our blocks */
.entry-content .hcrv-booking-page,
.entry-content .hcrv-status-board-wrap,
.entry-content .hcrv-wrap {
    padding-bottom: 0;
}
/* Astra's .entry-content p adds margin-bottom — prevent inside our cards */
.hcrv-booking-page p,
.hcrv-status-board-wrap p,
.hcrv-wrap p {
    margin-bottom: 0;
}
/* Astra normalises button appearance */
.hcrv-booking-page button,
.hcrv-status-board-wrap button {
    font-family: 'Source Serif 4', Georgia, serif;
    cursor: pointer;
}
/* Astra adds border-bottom to inputs in some child themes */
.hcrv-booking-page input,
.hcrv-booking-page select,
.hcrv-booking-page textarea {
    border: 1.5px solid #ddd5c4;
    border-radius: 6px;
    font-family: 'Source Serif 4', Georgia, serif;
}

:root {
    --hcrv-forest:       #1a3a2a;
    --hcrv-moss:         #2d6a4f;
    --hcrv-sage:         #40916c;
    --hcrv-mint:         #52b788;
    --hcrv-light-sage:   #d8f3dc;
    --hcrv-cream:        #faf8f3;
    --hcrv-bark:         #6b4c2a;
    --hcrv-stone:        #8b8680;
    --hcrv-parchment:    #f5f0e8;
    --hcrv-text:         #2c2416;
    --hcrv-text-muted:   #6b6355;
    --hcrv-border:       #ddd5c4;
    --hcrv-white:        #ffffff;
    --hcrv-error:        #c0392b;
    --hcrv-success:      #27ae60;
    --hcrv-shadow:       0 4px 24px rgba(26,58,42,0.10);
    --hcrv-shadow-lg:    0 8px 40px rgba(26,58,42,0.15);
    --hcrv-radius:       10px;
    --hcrv-radius-sm:    6px;
    --hcrv-font-display: 'Playfair Display', Georgia, serif;
    --hcrv-font-body:    'Source Serif 4', Georgia, serif;
}

/* ── Wrapper ─────────────────────────────────────── */
.hcrv-wrap {
    font-family: var(--hcrv-font-body);
    color: var(--hcrv-text);
    max-width: 900px;
    margin: 0 auto 48px;
    padding: 0 16px;
}

/* ── Section Header ──────────────────────────────── */
.hcrv-form-header {
    text-align: center;
    margin-bottom: 36px;
}
.hcrv-badge {
    display: inline-block;
    background: var(--hcrv-light-sage);
    color: var(--hcrv-forest);
    font-family: var(--hcrv-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.hcrv-form-header h2 {
    font-family: var(--hcrv-font-display);
    font-size: clamp(26px, 4vw, 40px);
    font-weight: 700;
    color: var(--hcrv-forest);
    margin: 0 0 10px;
    line-height: 1.2;
}
.hcrv-form-header p {
    color: var(--hcrv-text-muted);
    font-size: 16px;
    margin: 0;
}
.hcrv-form-header a {
    color: var(--hcrv-moss);
    text-decoration: none;
    border-bottom: 1px solid var(--hcrv-mint);
}

/* ── Form Card ───────────────────────────────────── */
.hcrv-form-card {
    background: var(--hcrv-white);
    border: 1px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius);
    box-shadow: var(--hcrv-shadow);
    overflow: hidden;
}

/* ── Form Steps ──────────────────────────────────── */
.hcrv-form-step {
    display: none;
    padding: 32px;
    animation: hcrvFadeIn 0.3s ease;
}
.hcrv-form-step.active { display: block; }

@keyframes hcrvFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hcrv-step-title {
    font-family: var(--hcrv-font-display);
    font-size: 20px;
    color: var(--hcrv-forest);
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--hcrv-light-sage);
    padding-bottom: 12px;
}
.hcrv-step-num {
    width: 32px; height: 32px;
    background: var(--hcrv-forest);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ── Form Rows & Groups ──────────────────────────── */
.hcrv-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.hcrv-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 200px;
    margin-bottom: 16px;
}
.hcrv-half { flex: 1; min-width: 200px; }

.hcrv-form-group label,
.hcrv-form-group > label {
    font-size: 13px;
    font-weight: 600;
    color: var(--hcrv-forest);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.hcrv-form-group .req { color: var(--hcrv-error); }

.hcrv-form-group input[type="text"],
.hcrv-form-group input[type="email"],
.hcrv-form-group input[type="tel"],
.hcrv-form-group input[type="number"],
.hcrv-form-group input[type="date"],
.hcrv-form-group select,
.hcrv-form-group textarea,
#hcrv-reservation-form-section input[type="text"],
#hcrv-reservation-form-section input[type="email"],
#hcrv-reservation-form-section input[type="tel"],
#hcrv-reservation-form-section input[type="number"],
#hcrv-reservation-form-section input[type="date"],
#hcrv-reservation-form-section select,
#hcrv-reservation-form-section textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius-sm);
    font-family: var(--hcrv-font-body);
    font-size: 15px;
    color: var(--hcrv-text);
    background: var(--hcrv-cream);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}
#hcrv-reservation-form-section input:focus,
#hcrv-reservation-form-section select:focus,
#hcrv-reservation-form-section textarea:focus {
    outline: none;
    border-color: var(--hcrv-moss);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
    background: var(--hcrv-white);
}

/* ── Pricing Preview ─────────────────────────────── */
.hcrv-pricing-preview {
    background: var(--hcrv-parchment);
    border: 1px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius-sm);
    padding: 16px 20px;
    margin: 8px 0 16px;
}
.hcrv-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--hcrv-text-muted);
    padding: 3px 0;
}
.hcrv-price-total {
    border-top: 2px solid var(--hcrv-forest);
    margin-top: 8px;
    padding-top: 8px;
    font-size: 16px;
    color: var(--hcrv-forest);
}
.hcrv-price-total strong { font-size: 20px; }

/* ── Buttons ─────────────────────────────────────── */
.hcrv-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: var(--hcrv-radius-sm);
    font-family: var(--hcrv-font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.hcrv-btn-next, .hcrv-btn-primary {
    background: var(--hcrv-forest);
    color: var(--hcrv-white);
    margin-top: 8px;
}
.hcrv-btn-next:hover, .hcrv-btn-primary:hover {
    background: var(--hcrv-moss);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,42,0.25);
}
.hcrv-btn-back {
    background: transparent;
    color: var(--hcrv-moss);
    border: 1.5px solid var(--hcrv-moss);
}
.hcrv-btn-back:hover {
    background: var(--hcrv-light-sage);
}
.hcrv-btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 16px;
    letter-spacing: 0.03em;
}
.hcrv-form-nav {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    justify-content: space-between;
}

/* ── Stripe Element ──────────────────────────────── */
.hcrv-stripe-wrap {
    margin: 16px 0;
}
.hcrv-stripe-wrap label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--hcrv-forest);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.hcrv-card-element {
    padding: 12px 14px;
    border: 1.5px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius-sm);
    background: var(--hcrv-cream);
    transition: border-color 0.2s;
}
.hcrv-card-element.StripeElement--focus {
    border-color: var(--hcrv-moss);
    box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.hcrv-card-errors {
    color: var(--hcrv-error);
    font-size: 13px;
    margin-top: 6px;
}

/* ── Privacy & Secure Note ───────────────────────── */
.hcrv-privacy-notice {
    font-size: 13px;
    color: var(--hcrv-text-muted);
    margin: 12px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.hcrv-privacy-notice label { display: flex; gap: 8px; cursor: pointer; }
.hcrv-privacy-notice a { color: var(--hcrv-moss); }
.hcrv-secure-note {
    text-align: center;
    font-size: 12px;
    color: var(--hcrv-stone);
    margin: 8px 0 0;
}
.hcrv-secure-note a { color: var(--hcrv-stone); }

/* ── Booking Summary ─────────────────────────────── */
.hcrv-booking-summary {
    background: var(--hcrv-parchment);
    border: 1px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius-sm);
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

/* ── Messages ────────────────────────────────────── */
#hcrv-reservation-messages {
    margin-bottom: 16px;
}
.hcrv-notice {
    padding: 12px 16px;
    border-radius: var(--hcrv-radius-sm);
    font-size: 14px;
    margin-bottom: 8px;
}
.hcrv-notice-error   { background: #fdf0ef; border: 1px solid #f5c6c2; color: var(--hcrv-error); }
.hcrv-notice-success { background: #edfaf1; border: 1px solid #a8d5b5; color: #1d6a38; }

/* ── Confirmation ────────────────────────────────── */
.hcrv-confirmation {
    text-align: center;
    padding: 48px 24px;
}
.hcrv-checkmark {
    width: 72px; height: 72px;
    background: var(--hcrv-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
    animation: hcrvPop 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
}
@keyframes hcrvPop {
    from { transform: scale(0); }
    to   { transform: scale(1); }
}
.hcrv-confirmation h3 {
    font-family: var(--hcrv-font-display);
    font-size: 28px;
    color: var(--hcrv-forest);
    margin: 0 0 12px;
}

/* ══════════════════════════════════════════════════
   SITE MAP
══════════════════════════════════════════════════ */
.hcrv-map-legend {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.hcrv-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--hcrv-text-muted);
}
.hcrv-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: inline-block;
}
.hcrv-dot.available    { background: var(--hcrv-mint); }
.hcrv-dot.occupied     { background: #e55a5a; }
.hcrv-dot.maintenance  { background: #f0a500; }

.hcrv-map-container {
    background: var(--hcrv-white);
    border: 1px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius);
    box-shadow: var(--hcrv-shadow);
    overflow: hidden;
}
.hcrv-map-canvas {
    position: relative;
    width: 100%;
    padding-top: 65%;
    background: linear-gradient(160deg, #e8f5e9 0%, #c8e6c9 40%, #a5d6a7 100%);
    background-image:
        radial-gradient(circle at 80% 90%, rgba(26,58,42,0.12) 0%, transparent 40%),
        radial-gradient(circle at 10% 85%, rgba(26,58,42,0.08) 0%, transparent 30%),
        linear-gradient(160deg, #dcedc8, #c5e1a5, #aed581);
}
.hcrv-map-road {
    position: absolute;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    background: rgba(26,58,42,0.35);
    padding: 2px 8px;
    left: 0;
    right: 0;
    z-index: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Site pins rendered by JS */
.hcrv-site-pin {
    position: absolute;
    width: 60px;
    text-align: center;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.15s;
}
.hcrv-site-pin:hover { transform: translate(-50%, -50%) scale(1.1); }
.hcrv-site-pin-dot {
    width: 42px; height: 24px;
    border-radius: 4px;
    margin: 0 auto 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.hcrv-site-pin-dot.available    { background: var(--hcrv-moss); }
.hcrv-site-pin-dot.occupied     { background: #c0392b; }
.hcrv-site-pin-dot.maintenance  { background: #e67e22; }
.hcrv-site-pin-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--hcrv-forest);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

/* Tooltip */
.hcrv-site-tooltip {
    position: fixed;
    background: var(--hcrv-forest);
    color: #fff;
    border-radius: var(--hcrv-radius-sm);
    padding: 12px 16px;
    font-size: 13px;
    max-width: 220px;
    box-shadow: var(--hcrv-shadow-lg);
    z-index: 9999;
    pointer-events: none;
    line-height: 1.6;
}
.hcrv-tooltip-name {
    font-family: var(--hcrv-font-display);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.hcrv-tooltip-btn {
    display: inline-block;
    margin-top: 10px;
    background: var(--hcrv-mint);
    color: var(--hcrv-forest);
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    pointer-events: all;
    text-decoration: none;
}

/* ══════════════════════════════════════════════════
   AMENITIES
══════════════════════════════════════════════════ */
.hcrv-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}
.hcrv-amenity-card {
    background: var(--hcrv-white);
    border: 1px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: var(--hcrv-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hcrv-amenity-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hcrv-shadow-lg);
}
.hcrv-amenity-icon {
    font-size: 36px;
    margin-bottom: 10px;
    line-height: 1;
}
.hcrv-amenity-card h4 {
    font-family: var(--hcrv-font-display);
    font-size: 16px;
    color: var(--hcrv-forest);
    margin: 0 0 8px;
}
.hcrv-amenity-card p {
    font-size: 13px;
    color: var(--hcrv-text-muted);
    margin: 0;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════
   RATES
══════════════════════════════════════════════════ */
.hcrv-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}
.hcrv-rate-card {
    background: var(--hcrv-white);
    border: 1px solid var(--hcrv-border);
    border-radius: var(--hcrv-radius);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--hcrv-shadow);
    position: relative;
}
.hcrv-rate-card.hcrv-rate-featured {
    background: var(--hcrv-forest);
    border-color: var(--hcrv-forest);
    color: #fff;
    transform: scale(1.04);
}
.hcrv-rate-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--hcrv-mint);
    color: var(--hcrv-forest);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.hcrv-rate-period {
    font-family: var(--hcrv-font-display);
    font-size: 18px;
    font-weight: 700;
    color: inherit;
    margin-bottom: 4px;
}
.hcrv-rate-card.hcrv-rate-featured .hcrv-rate-period { color: #fff; }
.hcrv-rate-from { font-size: 12px; color: var(--hcrv-stone); margin-bottom: 4px; }
.hcrv-rate-card.hcrv-rate-featured .hcrv-rate-from { color: rgba(255,255,255,0.6); }
.hcrv-rate-price {
    font-size: 38px;
    font-weight: 700;
    color: var(--hcrv-forest);
    line-height: 1;
    margin-bottom: 4px;
}
.hcrv-rate-card.hcrv-rate-featured .hcrv-rate-price { color: var(--hcrv-mint); }
.hcrv-rate-unit { font-size: 13px; color: var(--hcrv-text-muted); }
.hcrv-rate-card.hcrv-rate-featured .hcrv-rate-unit { color: rgba(255,255,255,0.7); }
.hcrv-rates-note {
    font-size: 13px;
    color: var(--hcrv-text-muted);
    text-align: center;
    line-height: 1.6;
    margin: 0;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 600px) {
    .hcrv-form-step { padding: 20px; }
    .hcrv-form-row  { flex-direction: column; }
    .hcrv-half      { min-width: 0; }
    .hcrv-rate-card.hcrv-rate-featured { transform: none; }
    .hcrv-form-nav  { flex-direction: column; }
}

/* ══════════════════════════════════════════════════
   BOOKING PAGE — Calendar-First Layout
   Aesthetic: Forest Lodge · Playfair + Source Serif
══════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────── */
.hcrv-booking-page {
    font-family: var(--hcrv-font-body);
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* ── Hero banner ────────────────────────────────── */
.hcrv-booking-hero {
    background: linear-gradient(135deg, var(--hcrv-forest) 0%, #2d6a4f 60%, #40916c 100%);
    border-radius: 0;
    padding: 48px 40px 36px;
    margin: 0;
    position: relative;
    overflow: hidden;
}
.hcrv-booking-hero::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.hcrv-booking-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: 30%;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
}
.hcrv-booking-hero-inner { position: relative; z-index: 1; }
.hcrv-booking-title {
    font-family: var(--hcrv-font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #fff;
    margin: 10px 0 8px;
    line-height: 1.15;
}
.hcrv-booking-subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 16px;
    margin: 0;
}
.hcrv-booking-meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    position: relative;
    z-index: 1;
}
.hcrv-meta-pill {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.9);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 13px;
    backdrop-filter: blur(4px);
}
.hcrv-meta-pill a { color: rgba(255,255,255,0.9); text-decoration: none; border-bottom: 1px dashed rgba(255,255,255,0.4); }

/* ── Two-column layout ──────────────────────────── */
.hcrv-booking-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 28px;
    align-items: start;
    max-width: 1160px;
    margin: 0 auto;
    padding: 32px 24px 0;
    box-sizing: border-box;
}
/* Form column sits at top, aligned with calendar card */
.hcrv-form-col {
    align-self: start;
    margin-top: 0;
    padding-top: 0;
}
.hcrv-form-col .hcrv-form-card {
    margin-top: 0;
}
@media (max-width: 880px) {
    .hcrv-booking-layout { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════
   CALENDAR CARD
═══════════════════════════════════════════════════ */
.hcrv-cal-card {
    background: var(--hcrv-white);
    border: 1px solid var(--hcrv-border);
    border-radius: 14px;
    box-shadow: var(--hcrv-shadow);
    overflow: hidden;
}

/* Calendar header */
.hcrv-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    background: var(--hcrv-forest);
}
.hcrv-cal-month-label {
    font-family: var(--hcrv-font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
}
.hcrv-cal-nav {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.hcrv-cal-nav:hover { background: rgba(255,255,255,0.22); }

/* Legend */
.hcrv-cal-legend {
    display: flex;
    gap: 16px;
    padding: 10px 20px;
    background: var(--hcrv-parchment);
    border-bottom: 1px solid var(--hcrv-border);
    flex-wrap: wrap;
}
.hcrv-cal-legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--hcrv-text-muted);
    font-weight: 600;
}
.hcrv-cal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.hcrv-dot-free    { background: #52b788; }
.hcrv-dot-partial { background: #f4a261; }
.hcrv-dot-full    { background: #e55a5a; }
.hcrv-dot-today   { background: var(--hcrv-forest); border: 2px solid var(--hcrv-forest); }

/* Day-of-week row */
.hcrv-cal-dow-row {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    padding: 8px 12px 4px;
}
.hcrv-cal-dow-row span {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--hcrv-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 0;
}

/* Calendar grid */
.hcrv-cal-grid {
    display: grid;
    grid-template-columns: repeat(7,1fr);
    gap: 3px;
    padding: 8px 12px 16px;
    min-height: 280px;
}
.hcrv-cal-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: var(--hcrv-text-muted);
    font-size: 14px;
}
.hcrv-spinner {
    width: 28px; height: 28px;
    border: 3px solid var(--hcrv-light-sage);
    border-top-color: var(--hcrv-moss);
    border-radius: 50%;
    animation: hcrvSpin 0.7s linear infinite;
}
@keyframes hcrvSpin { to { transform: rotate(360deg); } }

/* Individual day cell */
.hcrv-cal-day {
    aspect-ratio: 1;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background 0.12s, transform 0.1s, box-shadow 0.1s;
    min-width: 0;
    user-select: none;
}
.hcrv-cal-day:hover:not(.hcrv-cal-day-empty):not(.hcrv-cal-day-past) {
    background: var(--hcrv-light-sage);
    transform: scale(1.06);
    box-shadow: 0 3px 10px rgba(26,58,42,0.15);
    z-index: 2;
}
.hcrv-cal-day-empty { cursor: default; }
.hcrv-cal-day-past  { opacity: 0.35; cursor: default; pointer-events: none; }

.hcrv-cal-day-num {
    font-size: 13px;
    font-weight: 600;
    color: var(--hcrv-text);
    line-height: 1;
    margin-top: 3px;
}
.hcrv-cal-day-today .hcrv-cal-day-num {
    background: var(--hcrv-forest);
    color: #fff;
    width: 22px; height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Availability dot strip at bottom of cell */
.hcrv-cal-day-dots {
    display: flex;
    gap: 2px;
    margin-top: auto;
    padding-bottom: 3px;
    flex-wrap: wrap;
    justify-content: center;
}
.hcrv-cal-site-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hcrv-cal-site-dot.dot-free       { background: #52b788; }
.hcrv-cal-site-dot.dot-booked     { background: #e55a5a; }
.hcrv-cal-site-dot.dot-checkinout { background: #f4a261; }

/* Selection states */
.hcrv-cal-day-checkin,
.hcrv-cal-day-checkout {
    background: var(--hcrv-forest) !important;
}
.hcrv-cal-day-checkin .hcrv-cal-day-num,
.hcrv-cal-day-checkout .hcrv-cal-day-num {
    color: #fff;
}
.hcrv-cal-day-inrange {
    background: var(--hcrv-light-sage);
    border-radius: 0;
}
.hcrv-cal-day-inrange .hcrv-cal-day-num { color: var(--hcrv-forest); }
.hcrv-cal-day-checkin  { border-radius: 8px 0 0 8px !important; }
.hcrv-cal-day-checkout { border-radius: 0 8px 8px 0 !important; }

/* ═══════════════════════════════════════════════════
   QUICK-VIEW PANEL
═══════════════════════════════════════════════════ */
.hcrv-quickview-panel {
    margin-top: 12px;
    background: var(--hcrv-white);
    border: 1px solid var(--hcrv-border);
    border-radius: 14px;
    box-shadow: var(--hcrv-shadow-lg);
    overflow: hidden;
    animation: hcrvFadeIn 0.22s ease;
}
.hcrv-qv-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 20px 14px;
    background: var(--hcrv-forest);
    color: #fff;
}
.hcrv-qv-date {
    font-family: var(--hcrv-font-display);
    font-size: 20px;
    font-weight: 700;
}
.hcrv-qv-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    margin-top: 3px;
}
.hcrv-qv-close {
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 30px; height: 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s;
}
.hcrv-qv-close:hover { background: rgba(255,255,255,0.25); }

/* Hourly timeline */
.hcrv-qv-timeline-wrap {
    padding: 16px 20px 8px;
    border-bottom: 1px solid var(--hcrv-border);
}
.hcrv-qv-timeline-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--hcrv-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.hcrv-qv-timeline {
    display: flex;
    height: 28px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--hcrv-light-sage);
    gap: 1px;
}
.hcrv-qv-hour-block {
    flex: 1;
    position: relative;
    cursor: default;
    transition: opacity 0.1s;
}
.hcrv-qv-hour-block:hover { opacity: 0.8; }
.hcrv-qv-hour-block.hour-free     { background: #52b788; }
.hcrv-qv-hour-block.hour-partial  { background: #f4a261; }
.hcrv-qv-hour-block.hour-full     { background: #e55a5a; }
.hcrv-qv-hour-block.hour-turnover { background: #a8d5b5; background-image: repeating-linear-gradient(45deg, transparent, transparent 3px, rgba(255,255,255,0.3) 3px, rgba(255,255,255,0.3) 6px); }
.hcrv-qv-timeline-hours {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--hcrv-stone);
    margin-top: 3px;
    padding: 0 2px;
}

/* Site availability list */
.hcrv-qv-sites {
    padding: 14px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
}
.hcrv-qv-site-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--hcrv-cream);
    border: 1px solid var(--hcrv-border);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.hcrv-qv-site-row:hover { border-color: var(--hcrv-moss); background: var(--hcrv-white); box-shadow: 0 2px 8px rgba(26,58,42,0.1); }
.hcrv-qv-site-row.qv-site-booked { opacity: 0.55; cursor: default; }
.hcrv-qv-site-status-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hcrv-qv-site-info { flex: 1; min-width: 0; }
.hcrv-qv-site-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--hcrv-forest);
}
.hcrv-qv-site-detail {
    font-size: 12px;
    color: var(--hcrv-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.hcrv-qv-site-rate {
    font-weight: 700;
    font-size: 14px;
    color: var(--hcrv-moss);
    flex-shrink: 0;
}
.hcrv-qv-book-btn {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
}

/* Range bar */
.hcrv-range-bar {
    margin-top: 12px;
    animation: hcrvFadeIn 0.2s ease;
}
.hcrv-range-bar-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--hcrv-forest);
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}
.hcrv-range-icon { font-size: 18px; flex-shrink: 0; }
#hcrv-range-text { flex: 1; }
.hcrv-range-clear {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
}
.hcrv-range-clear:hover { background: rgba(255,255,255,0.25); }

/* ═══════════════════════════════════════════════════
   BOOKING FORM (right column)
═══════════════════════════════════════════════════ */
.hcrv-booking-form-card { position: sticky; top: 20px; }

/* Step indicator dots */
.hcrv-steps-indicator {
    display: flex;
    align-items: center;
    padding: 16px 24px 0;
    gap: 0;
}
.hcrv-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    position: relative;
    z-index: 1;
}
.hcrv-step-dot span {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--hcrv-border);
    color: var(--hcrv-stone);
    font-size: 13px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.hcrv-step-dot small {
    font-size: 10px;
    color: var(--hcrv-stone);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}
.hcrv-step-dot.active span {
    background: var(--hcrv-forest);
    color: #fff;
}
.hcrv-step-dot.done span {
    background: var(--hcrv-moss);
    color: #fff;
}
.hcrv-step-line {
    flex: 1;
    height: 2px;
    background: var(--hcrv-border);
    margin: 0 4px;
    margin-bottom: 16px;
    transition: background 0.2s;
}
.hcrv-step-line.done { background: var(--hcrv-moss); }

/* Date display boxes */
.hcrv-date-display-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    background: var(--hcrv-parchment);
    border: 1px solid var(--hcrv-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.hcrv-date-box {
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 6px;
    padding: 6px 4px;
}
.hcrv-date-box:hover { background: var(--hcrv-light-sage); }
.hcrv-date-box.has-date { cursor: default; }
.hcrv-date-box.has-date:hover { background: transparent; }
.hcrv-date-box-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--hcrv-text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 3px;
}
.hcrv-date-box-val {
    font-size: 13px;
    font-weight: 600;
    color: var(--hcrv-forest);
}
.hcrv-date-box-val.placeholder { color: var(--hcrv-stone); font-weight: 400; font-size: 12px; }
.hcrv-date-arrow {
    color: var(--hcrv-stone);
    font-size: 18px;
    flex-shrink: 0;
}

.hcrv-btn-full { width: 100%; justify-content: center; }

/* ══════════════════════════════════════════════════
   LIVE LOT STATUS BOARD
   Airport departures/arrivals aesthetic:
   dark header, glowing status rows, monospace data
══════════════════════════════════════════════════ */

.hcrv-status-board-wrap {
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--hcrv-font-body);
}

/* ── Board header ────────────────────────────────── */
.hcrv-status-board-header {
    background: var(--hcrv-forest);
    border-radius: 0;
    padding: 24px 40px 16px;
}
.hcrv-status-board-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.hcrv-status-board-title {
    font-family: var(--hcrv-font-display);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.hcrv-status-board-subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

/* Live clock */
.hcrv-status-board-clock-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 8px 14px;
    flex-shrink: 0;
}
.hcrv-live-dot {
    width: 9px; height: 9px;
    background: #52b788;
    border-radius: 50%;
    animation: hcrvPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes hcrvPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}
.hcrv-status-clock {
    font-family: 'Courier New', Courier, monospace;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.08em;
}

/* Legend row */
.hcrv-status-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hcrv-sl-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.03em;
}
.hcrv-sl-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.hcrv-sl-open  .hcrv-sl-dot { background: #4fc3a1; }
.hcrv-sl-green .hcrv-sl-dot { background: #52b788; }
.hcrv-sl-amber .hcrv-sl-dot { background: #f4a261; }
.hcrv-sl-red   .hcrv-sl-dot { background: #e55a5a; }
.hcrv-sl-gray  .hcrv-sl-dot { background: #8b8680; }

/* ── Board body ─────────────────────────────────── */
.hcrv-status-board {
    background: #0d1f17;
    border-left: 1px solid rgba(255,255,255,0.06);
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
}
.hcrv-status-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}
.hcrv-status-loading .hcrv-spinner {
    border-color: rgba(255,255,255,0.1);
    border-top-color: #52b788;
}

/* Board column headers */
.hcrv-status-col-headers {
    display: grid;
    grid-template-columns: 130px 1fr 160px 200px 180px 140px;
    gap: 0;
    padding: 8px 20px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.hcrv-status-col-headers span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}

/* ── Individual lot row ─────────────────────────── */
.hcrv-lot-row {
    display: grid;
    grid-template-columns: 130px 1fr 160px 200px 180px 140px;
    gap: 0;
    padding: 0 20px;
    min-height: 68px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}
.hcrv-lot-row:last-child { border-bottom: none; }
.hcrv-lot-row:hover { background: rgba(255,255,255,0.03); }

/* Left accent bar */
.hcrv-lot-row::before {
    content: '';
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 4px;
    border-radius: 0 3px 3px 0;
    transition: background 0.3s;
}
.hcrv-lot-row.row-open      ::before,
.hcrv-lot-row.row-open::before      { background: #4fc3a1; }
.hcrv-lot-row.row-checked-in::before { background: #52b788; }
.hcrv-lot-row.row-expiring::before  { background: #f4a261; }
.hcrv-lot-row.row-overdue::before,
.hcrv-lot-row.row-expired::before   { background: #e55a5a; }
.hcrv-lot-row.row-maintenance::before { background: #8b8680; }

/* Subtle glow behind amber/red rows */
.hcrv-lot-row.row-expiring {
    background: rgba(244,162,97,0.04);
}
.hcrv-lot-row.row-overdue,
.hcrv-lot-row.row-expired {
    background: rgba(229,90,90,0.05);
    animation: hcrvRowFlicker 3s ease-in-out infinite;
}
@keyframes hcrvRowFlicker {
    0%,100% { background: rgba(229,90,90,0.05); }
    50%      { background: rgba(229,90,90,0.10); }
}

/* ── Cell types ─────────────────────────────────── */
/* Col 1: Lot name + type */
.hcrv-lot-name-cell {}
.hcrv-lot-name {
    font-family: var(--hcrv-font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.hcrv-lot-type {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 2px;
}

/* Col 2: Status badge */
.hcrv-lot-status-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}
.hcrv-lot-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    white-space: nowrap;
}
.badge-open {
    background: rgba(79,195,161,0.15);
    border: 1px solid rgba(79,195,161,0.35);
    color: #4fc3a1;
}
.badge-checked-in {
    background: rgba(82,183,136,0.15);
    border: 1px solid rgba(82,183,136,0.35);
    color: #52b788;
}
.badge-expiring {
    background: rgba(244,162,97,0.15);
    border: 1px solid rgba(244,162,97,0.4);
    color: #f4a261;
}
.badge-overdue,
.badge-expired {
    background: rgba(229,90,90,0.15);
    border: 1px solid rgba(229,90,90,0.4);
    color: #e55a5a;
}
.badge-maintenance {
    background: rgba(139,134,128,0.15);
    border: 1px solid rgba(139,134,128,0.3);
    color: #8b8680;
}
.hcrv-badge-pulse {
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.badge-open       .hcrv-badge-pulse { background:#4fc3a1; animation: hcrvPulse 2s infinite; }
.badge-checked-in .hcrv-badge-pulse { background:#52b788; animation: hcrvPulse 2.5s infinite; }
.badge-expiring   .hcrv-badge-pulse { background:#f4a261; animation: hcrvPulse 1.2s infinite; }
.badge-overdue    .hcrv-badge-pulse,
.badge-expired    .hcrv-badge-pulse { background:#e55a5a; animation: hcrvPulse 0.8s infinite; }

/* Col 3: Guest name */
.hcrv-lot-guest-cell {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    font-weight: 600;
}
.hcrv-lot-guest-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    margin-top: 2px;
}

/* Col 4: Dates */
.hcrv-lot-dates-cell {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    font-family: 'Courier New', monospace;
}
.hcrv-lot-dates-cell strong {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
}

/* Col 5: Countdown / timer */
.hcrv-lot-countdown-cell {}
.hcrv-countdown-timer {
    font-family: 'Courier New', Courier, monospace;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
}
.hcrv-countdown-timer.timer-green  { color: #52b788; }
.hcrv-countdown-timer.timer-amber  { color: #f4a261; }
.hcrv-countdown-timer.timer-red    { color: #e55a5a; }
.hcrv-countdown-timer.timer-open   { color: #4fc3a1; font-size: 15px; }
.hcrv-countdown-label {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Col 6: Detail note */
.hcrv-lot-detail-cell {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    line-height: 1.5;
}
.hcrv-lot-detail-cell.detail-warn  { color: #f4a261; }
.hcrv-lot-detail-cell.detail-alert { color: #e55a5a; }

/* ── Progress bar beneath each row ─────────────── */
.hcrv-lot-progress-bar {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: rgba(255,255,255,0.04);
    overflow: hidden;
}
.hcrv-lot-progress-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s linear;
}
.row-checked-in  .hcrv-lot-progress-fill { background: #52b788; }
.row-expiring    .hcrv-lot-progress-fill { background: #f4a261; }
.row-overdue     .hcrv-lot-progress-fill,
.row-expired     .hcrv-lot-progress-fill { background: #e55a5a; }

/* ── Board footer ────────────────────────────────── */
.hcrv-status-board-footer {
    background: var(--hcrv-forest);
    border-radius: 0;
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
#hcrv-status-last-updated {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.hcrv-status-refresh-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: 0.04em;
}
.hcrv-status-refresh-btn:hover { background: rgba(255,255,255,0.18); }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 900px) {
    .hcrv-lot-row,
    .hcrv-status-col-headers {
        grid-template-columns: 110px 1fr 140px 1fr;
    }
    /* Hide dates and detail on small screens */
    .hcrv-lot-row         > *:nth-child(4),
    .hcrv-lot-row         > *:nth-child(6),
    .hcrv-status-col-headers > *:nth-child(4),
    .hcrv-status-col-headers > *:nth-child(6) { display: none; }
}
@media (max-width: 600px) {
    .hcrv-lot-row,
    .hcrv-status-col-headers {
        grid-template-columns: 100px 1fr 130px;
    }
    .hcrv-lot-row         > *:nth-child(3),
    .hcrv-lot-row         > *:nth-child(5),
    .hcrv-status-col-headers > *:nth-child(3),
    .hcrv-status-col-headers > *:nth-child(5) { display: none; }
    .hcrv-status-board-title { font-size: 18px; }
    .hcrv-status-clock { font-size: 15px; }
}
