:root {
    --primary: #1e3f20; /* Deep Forest Green */
    --accent: #e65c00; /* Sunset Orange */
    --accent-hover: #ff7b25;
    --bg-light: #f7f9f7;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --radius: 12px;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

/* Header */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text span {
    color: var(--accent);
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-dark);
    margin-left: 2rem;
    font-weight: 600;
    transition: color 0.3s;
}

.navbar nav a:hover {
    color: var(--accent);
}

@media (max-width: 850px) {
    html {
        scroll-padding-top: 150px;
    }
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }
    .logo {
        justify-content: center;
        gap: 8px;
    }
    .logo img {
        height: 40px !important;
    }
    .logo-text {
        font-size: 1.2rem;
    }
    .navbar nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.8rem 1rem;
    }
    .navbar nav a {
        margin-left: 0;
        font-size: 0.9rem;
    }
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(30, 63, 32, 0.6), rgba(30, 63, 32, 0.7)), url('./hero_bg.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    color: var(--white);
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(230, 92, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(230, 92, 0, 0.4);
}

.btn-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Fleet Section */
.fleet-section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.fleet-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.caravan-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.caravan-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-desc {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 1rem;
}

.price {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
}

.price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-light);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 800px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    position: relative;
    transform: translateY(0) scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-overlay.hidden .modal {
    transform: translateY(20px) scale(0.95);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    z-index: 10;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--text-dark);
}

.modal h3 {
    padding: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-body img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-family: inherit;
}

.options-group {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

.checkbox-label input {
    margin-top: 0.2rem;
    width: auto;
    transform: scale(1.2);
}

.form-group input {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 63, 32, 0.1);
}

.summary-card {
    background: var(--bg-light);
    padding: 1.2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-card hr {
    border: none;
    border-top: 1px dashed #ccc;
    margin: 0.5rem 0;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.full-width {
    width: 100%;
    margin-top: 0.5rem;
}

.success-msg {
    color: #27ae60;
    font-weight: 600;
    text-align: center;
    background: #e8f8f5;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

.hidden {
    display: none !important;
}

footer {
    background: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

/* Gantt Chart Overview */
.gantt-wrapper {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 0 0 8px 8px;
    background: var(--white);
}

.gantt-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.gantt-table th, .gantt-table td {
    border: 1px solid #e2e8f0;
    text-align: center;
    padding: 0.6rem 0.3rem;
    font-size: 0.85rem;
}

.gantt-caravan-cell {
    position: sticky;
    left: 0;
    background: var(--white);
    z-index: 10;
    text-align: left !important;
    font-weight: 600;
    white-space: nowrap;
    padding-left: 1rem !important;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.gantt-table th.gantt-caravan-cell {
    z-index: 11;
    background: var(--bg-light);
}

.gantt-table th.weekend {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
    font-weight: 700;
}

.gantt-table td.weekend {
    background-color: #f1f5f9;
}

.gantt-table td.weekend.free {
    background-color: rgba(39, 174, 96, 0.16) !important;
}

.gantt-table td.booked {
    background-color: rgb(39, 174, 96) !important;
    color: white !important;
    cursor: not-allowed;
}

.gantt-table td.pending {
    background-color: var(--accent) !important;
    color: white !important;
    cursor: help;
}

.gantt-table td.free {
    background-color: rgba(39, 174, 96, 0.08);
}

.gantt-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}

.gantt-controls button {
    background: var(--white);
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    padding: 0.4rem 1.2rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-dark);
    transition: all 0.2s;
}

.gantt-controls button:hover {
    background: var(--primary);
    color: var(--white);
}


/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }
    .modal-body img {
        height: 200px;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Accordion styling for cards */
.accordion-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}
.accordion-container.open {
    grid-template-rows: 1fr;
}
.accordion-inner {
    overflow: hidden;
    padding: 0 1.5rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    white-space: pre-wrap;
    background: #f8f9fa;
}
.accordion-container.open .accordion-inner {
    padding: 1.5rem;
    border-top: 1px solid #eee;
}
.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}
.btn-sm:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: none;
}

/* Terms Section */
.terms-section {
    padding: 6rem 5%;
    background-color: var(--white);
}

.terms-container {
    max-width: 1200px;
    margin: 0 auto;
}

.terms-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.term-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius);
    text-align: left;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.term-card:hover {
    transform: translateY(-5px);
}

.term-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.term-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.2rem;
}

.term-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Lightbox Gallery */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -20px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2010;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--accent);
}

.lightbox-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 1rem 0.5rem;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2010;
    transition: background 0.3s;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.lightbox-prev {
    left: -50px;
}

.lightbox-next {
    right: -50px;
}

.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .lightbox-prev { left: -10px; padding: 0.5rem; }
    .lightbox-next { right: -10px; padding: 0.5rem; }
    .lightbox-close { right: 0px; top: -30px; font-size: 2.5rem; }
    .lightbox-counter { bottom: -30px; }
}
