/* ============================================================================
   BEAST OF AFRICA - RENTALS PAGE STYLESHEET v1.0
   Design System: Forest-Glass, Cormorant/Jost, Environmental Palette
   ============================================================================ */

/* ------ ROOT VARIABLES ------ */
:root {
    --forest: #17352c;
    --deep-forest: #10241d;
    --sand: #c8b28a;
    --mist: #dce6e3;
    --accent-gold: #b8963a;
    --error: #d32f2f;
    --success: #388e3c;
    
    /* Semantic colors */
    --card-bg: rgba(13, 22, 21, 0.78);
    --card-border: rgba(200, 178, 138, 0.12);
    --overlay-dark: rgba(16, 36, 29, 0.85);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
}

/* ------ HERO SECTION ------ */
.rentals-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -100px;
    padding-top: 100px;
}

.rentals-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--deep-forest) 0%, var(--forest) 100%);
}

#rentals-canvas {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
}

.rentals-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.rentals-hero__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.rentals-hero__subtitle {
    font-family: 'Jost', sans-serif;
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--mist);
    opacity: 0.95;
}

.rentals-hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .rentals-hero {
        height: 50vh;
        padding-top: 60px;
    }
    
    .rentals-hero__cta {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ------ CATEGORY TABS ------ */
.rentals-categories {
    padding: var(--spacing-xl) 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.rentals-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.rentals-tab {
    padding: 0.75rem 1rem;
    border: 1px solid var(--card-border);
    background: rgba(200, 178, 138, 0.05);
    color: var(--mist);
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.rentals-tab:hover {
    background: rgba(200, 178, 138, 0.15);
    border-color: var(--sand);
    color: var(--sand);
    transform: translateY(-2px);
}

.rentals-tab.active {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--deep-forest);
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(184, 150, 58, 0.3);
}

.tab-icon {
    font-size: 1.2rem;
    display: inline-block;
}

@media (max-width: 768px) {
    .rentals-categories {
        padding: var(--spacing-lg) 0;
    }
    
    .rentals-tabs {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.25rem;
    }
    
    .rentals-tab {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* ------ RENTALS GRID ------ */
.rentals-grid-section {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(16, 36, 29, 0.5) 0%, rgba(23, 53, 44, 0.3) 100%);
    min-height: 600px;
}

.rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    animation: fadeIn 0.6s ease-out;
}

.rental-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rental-card:hover {
    border-color: var(--sand);
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.rental-card__image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--deep-forest) 100%);
    object-fit: cover;
    display: block;
}

.rental-card__content {
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.rental-card__category {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sand);
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.rental-card__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--mist);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.rental-card__description {
    font-family: 'Jost', sans-serif;
    font-size: 0.9rem;
    color: rgba(220, 230, 227, 0.75);
    margin-bottom: auto;
    line-height: 1.5;
}

.rental-card__pricing {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(200, 178, 138, 0.1);
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.price-label {
    color: rgba(220, 230, 227, 0.65);
    font-family: 'Jost', sans-serif;
}

.price-value {
    color: var(--sand);
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

.rental-card__button {
    margin-top: var(--spacing-md);
    width: 100%;
}

.loading-spinner {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: var(--mist);
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(200, 178, 138, 0.2);
    border-top-color: var(--sand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .rentals-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: var(--spacing-md);
    }
}

/* ------ RENTAL MODAL ------ */
.rental-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rental-modal.active {
    display: flex;
}

.rental-modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: -1;
    animation: fadeIn 0.3s ease-out;
}

.rental-modal__content {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    backdrop-filter: blur(24px);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(200, 178, 138, 0.1);
    border: 1px solid rgba(200, 178, 138, 0.2);
    color: var(--sand);
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(200, 178, 138, 0.25);
    border-color: var(--sand);
    transform: rotate(90deg);
}

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

.modal-image {
    width: 300px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--forest) 0%, var(--deep-forest) 100%);
    flex-shrink: 0;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
}

.modal-details h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--mist);
    margin-bottom: 0.5rem;
}

.modal-details > p {
    color: rgba(220, 230, 227, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.modal-specs {
    margin-bottom: 1.5rem;
}

.spec {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.spec-tag {
    background: rgba(200, 178, 138, 0.12);
    border: 1px solid rgba(200, 178, 138, 0.2);
    color: var(--sand);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-family: 'Jost', sans-serif;
}

.modal-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(200, 178, 138, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(200, 178, 138, 0.1);
}

.price-tier {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tier-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.8rem;
    color: rgba(220, 230, 227, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sand);
}

.price-tier.highlight {
    background: rgba(184, 150, 58, 0.15);
    padding: 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(184, 150, 58, 0.3);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-direction: column;
}

.modal-inquire-btn,
.modal-email-btn {
    width: 100%;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    
    .modal-image {
        width: 100%;
        height: 250px;
    }
    
    .modal-pricing {
        grid-template-columns: 1fr;
    }
}

/* ------ WHY RENT SECTION ------ */
.rentals-why {
    padding: var(--spacing-2xl) 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
}

.rentals-why h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    color: var(--mist);
    margin-bottom: 3rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.why-card {
    padding: var(--spacing-lg);
    background: rgba(13, 22, 21, 0.5);
    border: 1px solid rgba(200, 178, 138, 0.1);
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-card:hover {
    border-color: var(--sand);
    transform: translateY(-4px);
    background: rgba(13, 22, 21, 0.7);
}

.why-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.why-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--sand);
    margin-bottom: 0.5rem;
}

.why-card p {
    color: rgba(220, 230, 227, 0.75);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ------ PACKAGES SECTION ------ */
.rentals-packages {
    padding: var(--spacing-2xl) 0;
}

.rentals-packages h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    color: var(--mist);
    margin-bottom: 3rem;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.package-card {
    position: relative;
    padding: var(--spacing-xl);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    border-color: var(--sand);
    transform: translateY(-8px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.package-card.featured {
    border-color: var(--sand);
    box-shadow: 0 12px 48px rgba(184, 150, 58, 0.2);
    position: relative;
    top: -8px;
}

.package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-gold);
    color: var(--deep-forest);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.package-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--mist);
    margin-bottom: 0.75rem;
    margin-top: 1rem;
}

.package-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--sand);
    margin-bottom: 1.5rem;
}

.package-price span {
    font-size: 0.9rem;
    opacity: 0.8;
}

.package-items {
    list-style: none;
    padding: 0;
    margin-bottom: auto;
}

.package-items li {
    color: rgba(220, 230, 227, 0.85);
    padding: 0.5rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(200, 178, 138, 0.05);
}

.package-items li:last-child {
    border-bottom: none;
}

.package-inquire {
    width: 100%;
    margin-top: 1.5rem;
}

/* ------ GUIDE SECTION ------ */
.rentals-guide {
    padding: var(--spacing-2xl) 0;
    background: linear-gradient(180deg, rgba(16, 36, 29, 0.5) 0%, rgba(23, 53, 44, 0.3) 100%);
}

.rentals-guide h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    color: var(--mist);
    margin-bottom: 3rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.guide-item {
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(24px);
}

.guide-item h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--sand);
    margin-bottom: 0.75rem;
}

.guide-item p {
    color: rgba(220, 230, 227, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.guide-item strong {
    color: var(--mist);
}

/* ------ CONTACT SECTION ------ */
.rentals-contact {
    padding: var(--spacing-2xl) 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

.contact-form-section h2,
.contact-info-section h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--mist);
    margin-bottom: 1.5rem;
}

/* ------ FORM STYLES ------ */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    padding: 0.9rem 1rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--mist);
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(24px);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--sand);
    box-shadow: 0 0 0 3px rgba(200, 178, 138, 0.1);
}

.inquiry-form input::placeholder {
    color: rgba(220, 230, 227, 0.5);
}

.inquiry-form input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) brightness(1.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-actions .btn {
    flex: 1;
}

/* ------ CONTACT INFO ------ */
.contact-method {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    backdrop-filter: blur(24px);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--sand);
    transform: translateY(-2px);
}

.contact-method h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--sand);
    margin-bottom: 0.75rem;
}

.contact-link {
    display: inline-block;
    color: var(--mist);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.2rem;
}

.contact-link:hover {
    color: var(--sand);
    border-bottom-color: var(--sand);
}

.whatsapp-link {
    color: #25d366;
}

.whatsapp-link:hover {
    color: #1fa456;
    border-bottom-color: #25d366;
}

.contact-method p {
    color: rgba(220, 230, 227, 0.75);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* ------ FAQ SECTION ------ */
.rentals-faq {
    padding: var(--spacing-2xl) 0;
    background: var(--card-bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    backdrop-filter: blur(24px);
}

.rentals-faq h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    text-align: center;
    color: var(--mist);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.faq-item details {
    padding: 1.5rem;
    background: rgba(13, 22, 21, 0.5);
    border: 1px solid rgba(200, 178, 138, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-item details:hover {
    border-color: var(--sand);
    background: rgba(13, 22, 21, 0.7);
}

.faq-item summary {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: var(--sand);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.faq-item summary::after {
    content: '▼';
    display: inline-block;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.faq-item details[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    color: rgba(220, 230, 227, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* ------ BUTTONS ------ */
.btn {
    padding: 0.9rem 1.8rem;
    border: none;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--deep-forest);
    box-shadow: 0 4px 16px rgba(184, 150, 58, 0.3);
}

.btn-primary:hover {
    background: #c9a544;
    box-shadow: 0 6px 24px rgba(184, 150, 58, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(200, 178, 138, 0.15);
    color: var(--sand);
    border: 1px solid var(--sand);
}

.btn-secondary:hover {
    background: rgba(200, 178, 138, 0.25);
    border-color: var(--mist);
    color: var(--mist);
}

.btn-outline {
    background: transparent;
    color: var(--sand);
    border: 2px solid var(--sand);
}

.btn-outline:hover {
    background: rgba(200, 178, 138, 0.1);
    border-color: var(--mist);
    color: var(--mist);
}

/* ------ ANIMATIONS ------ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

/* ------ CONTAINER ------ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ------ MOBILE RESPONSIVE ------ */
@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-pricing {
        grid-template-columns: 1fr 1fr;
    }
}

/* ------ SCROLLBAR STYLING ------ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(13, 22, 21, 0.5);
}

::-webkit-scrollbar-thumb {
    background: rgba(200, 178, 138, 0.4);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(200, 178, 138, 0.6);
}