/* =========================
   Campervan Pages Styles
   File location: resources/CSS/campervans.css
   ========================= */

   .van-hero {
    min-height: 72vh;
    background: linear-gradient(rgba(20, 28, 24, 0.35), rgba(20, 28, 24, 0.35)),
        url("../images/johnny camping.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.van-hero-overlay {
    background: rgba(255, 255, 255, 0.12);
    color: white;
    text-align: center;
    padding: 42px 36px;
    border-radius: 20px;
    max-width: 760px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.van-kicker {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.van-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    line-height: 1.05;
    color: white;
}

.van-subtitle {
    font-size: 1.08rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.92);
    max-width: 620px;
    margin: 0 auto;
}

.van-intro {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 32px;
    padding: 80px 50px 40px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

.van-intro-text,
.van-spec-card,
.detail-box,
.feature-card {
    background: #ffffff;
    border: 1px solid #d9ddd8;
    box-shadow: 0 10px 28px rgba(18, 24, 21, 0.06);
}

.van-intro-text {
    padding: 34px;
    border-radius: 24px;
}

.van-intro-text h2,
.van-features h2,
.van-gallery h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 14px;
    color: #1c2420;
}

.van-intro-text p {
    color: #5f6b64;
    font-size: 1rem;
    line-height: 1.8;
}

.included-heading {
    margin-top: 28px;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #1c2420;
}

.gallery-heading {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.6rem;
    color: #1c2420;
}

.van-spec-card {
    padding: 30px;
    border-radius: 24px;
}

.van-spec-card h3 {
    margin-bottom: 14px;
    color: #1c2420;
    font-size: 1.2rem;
}

.van-spec-card ul {
    margin: 0;
    padding-left: 20px;
    color: #5f6b64;
    line-height: 1.8;
}

.van-features {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px 40px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-card {
    color: #1c2420;
    padding: 22px 18px;
    border-radius: 18px;
    text-align: center;
    font-weight: 600;
}

.van-details {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 50px 40px;
}

.detail-box {
    padding: 26px;
    text-align: center;
    border-radius: 18px;
}

.detail-box h3 {
    margin-bottom: 10px;
    color: #1c2420;
}

.detail-box p {
    margin: 0;
    color: #233a31;
    font-weight: 600;
}

.van-gallery {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 50px 40px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.gallery-grid img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 28px rgba(18, 24, 21, 0.08);
}
.gallery-video {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 28px rgba(18, 24, 21, 0.08);
}

.forest-img {
    object-position: center bottom;
    object-fit: cover;
}

.van-cta {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 50px 80px;
    flex-wrap: wrap;
}

.primary-button,
.secondary-button {
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.primary-button {
    background: #233a31;
    color: white;
    box-shadow: 0 8px 20px rgba(18, 24, 21, 0.12);
}

.primary-button:hover {
    background: #304b40;
    transform: translateY(-1px);
}

.secondary-button {
    background: #ffffff;
    color: #1c2420;
    border: 1px solid #d9ddd8;
}

.secondary-button:hover {
    background: #faf8f4;
    transform: translateY(-1px);
}

.site-footer {
    background: #18201c;
    color: white;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 42px 50px;
    margin-top: 30px;
}

.site-footer h3,
.site-footer p {
    color: white;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.site-footer a:hover {
    color: white;
}

/* =========================
   Eddie page styles
   File location: resources/CSS/campervans.css
   ========================= */


.van-hero-eddie {
    background-image:
        linear-gradient(rgba(20, 28, 24, 0.36), rgba(20, 28, 24, 0.36)),
        url("../images/eddie-desert.jpg");
}

/* ===== Johnny Page Overrides ===== */

.van-hero-johnny {
    background-image:
        linear-gradient(rgba(20, 28, 24, 0.36), rgba(20, 28, 24, 0.36)),
        url("../images/johnny mountains.jpg");
        background-position: bottom center
}

/* ===== Chevy Page Overrides ===== */

.van-hero-chevy {
    background-image:
        linear-gradient(rgba(20, 28, 24, 0.36), rgba(20, 28, 24, 0.36)),
        url("../images/chevy-flats-close.JPG");
    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}

/* ─── Booking Section ───────────────────────────── */
.booking-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.booking-container {
    background: #f8f6f1;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.booking-container h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2rem;
    color: #233a31;
    margin-bottom: 8px;
}

.booking-intro {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.booking-step {
    margin-bottom: 35px;
    padding-bottom: 35px;
    border-bottom: 1px solid #e5e0d8;
}

.booking-step:last-child {
    border-bottom: none;
}

.booking-step h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #233a31;
    margin-bottom: 20px;
}

.hidden {
    display: none !important;
}


/* Addons */
.addons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.addon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid #d0c9bc;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.addon-item:hover {
    border-color: #233a31;
}

.addon-item input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.addon-label {
    flex: 1;
    font-size: 0.95rem;
    color: #333;
}

.addon-price {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* ─── Calendar ──────────────────────────────────── */
.calendar-wrap {
    background: white;
    border: 1px solid #d0c9bc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 400px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cal-month-label {
    font-weight: 600;
    font-size: 1.05rem;
    color: #233a31;
}

.cal-nav {
    background: none;
    border: 1px solid #d0c9bc;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    color: #233a31;
    transition: background 0.2s;
}

.cal-nav:hover { background: #f0ebe3; }

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}

.cal-day-name {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.cal-day.empty { background: none; cursor: default; }

.cal-day.past {
    color: #ccc;
    cursor: not-allowed;
}

.cal-day.booked {
    background: rgba(192, 57, 43, 0.15);
    color: #c0392b;
    cursor: pointer;
}

.cal-day.available:hover {
    background: #e0f5e9;
    color: #233a31;
}

.cal-day.selected-start,
.cal-day.selected-end {
    background: #233a31;
    color: white;
    font-weight: 600;
}

.cal-day.in-range {
    background: #d4ede0;
    color: #233a31;
    border-radius: 0;
}

.calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f0ebe3;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #666;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-dot.available { background: #e0f5e9; border: 1px solid #2d7a4f; }
.legend-dot.booked { background: rgba(192,57,43,0.15); border: 1px solid #c0392b; }
.legend-dot.selected { background: #233a31; }

.selected-dates-display { margin: 10px 0; }

.dates-confirmed {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f0faf4;
    border: 1px solid #2d7a4f;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #233a31;
    font-weight: 500;
    flex-wrap: wrap;
}

.clear-dates-btn {
    background: none;
    border: 1px solid #d0c9bc;
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
    transition: all 0.2s;
}

.clear-dates-btn:hover {
    border-color: #c0392b;
    color: #c0392b;
}

.nights-count {
    margin-left: auto;
    background: #233a31;
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.booking-step {
    scroll-margin-top: 100px;
}

.discount-row {
    color: #2d7a4f;
    font-weight: 500;
}

.collision-item {
    grid-column: 1 / -1;
    border-color: #233a31;
    background: #f0faf4;
}

/* Price summary */
.price-summary {
    background: white;
    border: 1px solid #d0c9bc;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: #444;
    border-bottom: 1px solid #f0ebe3;
}

.price-row:last-child {
    border-bottom: none;
}

.price-subtotal {
    font-weight: 600;
    color: #233a31;
    border-top: 1px solid #d0c9bc;
    margin-top: 5px;
    padding-top: 10px;
}

.price-total {
    font-weight: 600;
    font-size: 1.05rem;
    color: #233a31;
    margin-top: 5px;
}

.price-deposit {
    font-weight: 700;
    font-size: 1.1rem;
    color: #233a31;
}

/* Promo */

.promo-input-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: stretch;
}

.promo-input-wrap input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d0c9bc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #233a31;
    background: white;
}

#promo-message {
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 20px;
}

#promo-message.error { color: #c0392b; }
#promo-message.success { color: #2d7a4f; font-weight: 500; }

/* Details form */
.details-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
}

.form-field input {
    padding: 12px;
    border: 1px solid #d0c9bc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    color: #233a31;
    background: white;
}

/* T & C's Modal */

.tc-agreement {
    margin: 20px 0;
    padding: 16px;
    background: #f8f6f1;
    border-radius: 8px;
}

.tc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
}

.tc-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.tc-checkbox a {
    color: #233a31;
    font-weight: 600;
    text-decoration: underline;
}

.check-dates-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.tc-modal-box {
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.tc-content {
    overflow-y: auto;
    flex: 1;
    padding-right: 10px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}

.tc-content h4 {
    color: #233a31;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 8px;
}

.tc-content h4:first-child {
    margin-top: 0;
}

.tc-content p {
    margin-bottom: 10px;
}

.tc-modal-footer {
    padding-top: 15px;
    border-top: 1px solid #e5e0d8;
    margin-top: 15px;
    text-align: right;
}

/* Payment */
.payment-note {
    margin-bottom: 20px;
    color: #444;
    font-size: 0.95rem;
}

#stripe-card-element {
    background: white;
    border: 1px solid #d0c9bc;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}

#stripe-errors {
    margin-bottom: 10px;
}

/* Success */
.booking-success {
    text-align: center;
    padding: 30px;
}

.booking-success h3 {
    font-size: 1.8rem;
    color: #233a31;
    margin-bottom: 12px;
}

.booking-success p {
    color: #555;
    font-size: 1.05rem;
}

/* Responsive */
@media (max-width: 600px) {
    .date-inputs,
    .addons-grid {
        grid-template-columns: 1fr;
    }

    .booking-container {
        padding: 25px 20px;
    }
}


/* ===== Responsiove Styling ==== */

@media (max-width: 1100px) {
    .van-intro {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .van-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .van-intro,
    .site-footer,
    .van-cta {
        flex-direction: column;
    }

    .van-intro,
    .van-features,
    .van-details,
    .van-gallery,
    .van-cta {
        padding-left: 20px;
        padding-right: 20px;
    }

    .feature-grid,
    .van-details,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid img {
        height: 300px;
    }

    .site-footer {
        flex-direction: column;
        padding: 36px 20px;
    }

    .van-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .van-hero {
        min-height: 60vh;
        padding: 32px 16px;
    }

    .van-hero-overlay {
        padding: 28px 20px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        max-width: 280px;
    }
}