/* ================================================
   SERENDIB SAFARI 3D - PAGE SPECIFIC STYLES
   ================================================ */

/* ================================================
   3D CANVAS BACKGROUND
   ================================================ */
.three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    pointer-events: none;
}

/* ================================================
   HERO SECTION
   ================================================ */
.vehicles-hero-3d {
    position: relative;
    padding: 120px 0 100px;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
    overflow: hidden;
    margin-top: calc(var(--header-height) * -1);
    padding-top: calc(var(--header-height) + 100px);
    min-height: 85vh;
}

.hero-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-main-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,

        );
    z-index: 1;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ================================================
   SAFARI HERO 3D
   ================================================ */
.safari-hero-3d {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: 80px 0;
}

.hero-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

.safari-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.safari-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: 20px;
}

.safari-hero-title .title-line {
    display: block;
    animation: slide-up 0.8s var(--ease-bounce) backwards;
}

.safari-hero-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.safari-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    animation: fade-in 1s ease 0.6s backwards;
}


/* Contact form input styling */
.booking-contact-form input:invalid:not(:placeholder-shown),
.booking-contact-form textarea:invalid:not(:placeholder-shown) {
    border-color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.05);
}

.booking-contact-form input:valid:not(:placeholder-shown),
.booking-contact-form textarea:valid:not(:placeholder-shown) {
    border-color: rgba(20, 184, 166, 0.5) !important;
}

.booking-contact-form input:focus,
.booking-contact-form textarea:focus {
    outline: none;
    border-color: var(--teal-dark) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* General calc field styling */
.calc-field-3d input:focus,
.calc-field-3d textarea:focus,
.calc-field-3d select:focus {
    outline: none;
    border-color: var(--teal-dark) !important;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Button disabled state */
.btn-3d-primary:disabled,
.btn-3d-outline:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(50%);
    pointer-events: none;
}

/* Placeholder styling */
.booking-contact-form input::placeholder,
.booking-contact-form textarea::placeholder {
    color: rgba(100, 116, 139, 0.5);
    font-style: italic;
}

/* Error message styling */
.calc-field-3d input:invalid:not(:placeholder-shown)+small,
.calc-field-3d textarea:invalid:not(:placeholder-shown)+small {
    color: #ef4444;
}


/* ================================================
   SEARCH SECTION 3D
   ================================================ */
.search-section-3d {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(92, 80, 17, 0.2) 0%, rgba(133, 177, 174, 0.2) 100%);
}

.search-card-3d {
    padding: 40px;
    background: rgba(157, 236, 227, 0.3);
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.search-card-3d:hover {
    transform: translateY(-5px);
}

.search-title-3d {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 30px;
    text-align: center;
}

.search-form-3d {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.search-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.search-field-3d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-label-3d {
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
    font-size: 14px;
}

.search-select-3d,
.search-input-3d {
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(13, 148, 136, 0.4);
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--slate-dark);
    transition: var(--transition-base);
}

.search-select-3d:hover,
.search-input-3d:hover {
    background: var(--white);
    border-color: var(--ocean-teal);
}

.search-select-3d:focus,
.search-input-3d:focus {
    outline: none;
    border-color: var(--ocean-teal);
    box-shadow: var(--shadow-md);
}

.search-btn-3d {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px 40px;
    font-size: 18px;
}

.btn-icon-3d {
    transition: var(--transition-base);
}

.search-btn-3d:hover .btn-icon-3d {
    transform: translateX(5px);
}

/* ================================================
   PARKS SECTION 3D
   ================================================ */
.parks-section-3d {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.section-header-3d {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title-3d {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--slate-dark);
    margin-bottom: 12px;
}

.section-subtitle-3d {
    color: var(--slate-medium);
    font-size: 16px;
}

.parks-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    opacity: 1;
    transition: opacity 0.3s ease;
}



/* ================================================
   SEASONS SECTION 3D
   ================================================ */
.seasons-section-3d {
    padding: 60px 0;
    background: var(--sand);
}

.seasons-card-3d {
    padding: 40px;
}

.seasons-title-3d {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 30px;
    text-align: center;
}

.seasons-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.season-item-3d {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.season-item-3d:hover {
    background: var(--white);
    transform: translateY(-5px);
}

.season-icon-3d {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.season-item-3d h4 {
    font-size: 18px;
    color: var(--slate-dark);
    margin-bottom: 8px;
}

.season-item-3d p {
    color: var(--slate-medium);
    font-size: 14px;
    margin-bottom: 12px;
}

.season-tag-3d {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-medium);
}

/* ================================================
   CALCULATOR FLOAT 3D (Desktop)
   ================================================ */
.calculator-float-3d {
    position: fixed;
    top: 50%;
    right: 40px;
    transform: translateY(-50%);
    width: 380px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.calculator-float-3d.visible {
    opacity: 1;
    visibility: visible;
}

.calculator-card-3d {
    padding: 30px;
}

.calculator-title-3d {
    font-size: 20px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 20px;
}

.calculator-selection-3d {
    padding: 16px;
    background: var(--sand);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.text-muted-3d {
    color: var(--slate-medium);
    font-size: 14px;
}

.calculator-form-3d {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-field-3d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-field-3d label {
    font-size: 14px;
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
}

.calc-field-3d input {
    padding: 12px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    transition: var(--transition-base);
}

.calc-field-3d input:focus {
    outline: none;
    border-color: var(--ocean-teal);
}

.calc-row-3d {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.calc-addons-3d {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.addon-checkbox-3d {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-base);
}

.addon-checkbox-3d:hover {
    background: var(--white);
}

.addon-checkbox-3d input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.addon-price-3d {
    margin-left: auto;
    font-size: 12px;
    color: var(--slate-medium);
}

.price-breakdown-3d {
    padding: 20px;
    background: var(--sand);
    border-radius: var(--radius-md);
}

.price-row-3d {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.price-row-3d.total {
    padding-top: 16px;
    border-top: 2px solid var(--slate-light);
    font-weight: var(--font-weight-bold);
    font-size: 18px;
    color: var(--jungle-green);
}

.calc-actions-3d {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.calc-notes-3d {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.calc-notes-3d p {
    font-size: 12px;
    color: var(--slate-medium);
    margin-bottom: 8px;
}

/* ================================================
   FAQ SECTION 3D
   ================================================ */
.faq-section-3d {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.faq-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.faq-card-3d {
    padding: 30px;
    transition: var(--transition-base);
}

.faq-card-3d:hover {
    transform: translateY(-5px);
}

.faq-card-3d h3 {
    font-size: 18px;
    color: var(--slate-dark);
    margin-bottom: 12px;
}

.faq-card-3d p {
    color: var(--slate-medium);
    line-height: 1.6;
}

/* ================================================
   CTA SECTION 3D
   ================================================ */
.cta-3d {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

.cta-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    z-index: 0;
}

.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

.cta-content-3d {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title-3d {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--white);
    margin-bottom: 20px;
}

.word-3d {
    display: inline-block;
    animation: word-float 3s ease-in-out infinite;
}

.word-3d:nth-child(2) {
    animation-delay: 0.2s;
}

.word-3d:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes word-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.word-3d.gradient {
    background: linear-gradient(45deg, var(--white), var(--cinnamon-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons-3d {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn-3d-hero {
    position: relative;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: var(--font-weight-bold);
    color: var(--jungle-green);
    background: var(--white);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: var(--transition-base);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-3d-hero.secondary {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-3d-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--ocean-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.btn-3d-hero:hover .btn-bg {
    width: 300px;
    height: 300px;
}

.btn-3d-hero .btn-text {
    position: relative;
    z-index: 2;
}

.cta-features {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-features .feature {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

/* ================================================
   LOADING & NO RESULTS
   ================================================ */
.loading-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.skeleton-card-3d {
    height: 450px;
    background: linear-gradient(90deg,
            var(--sand) 0%,
            #e0e0e0 50%,
            var(--sand) 100%);
    background-size: 200% 100%;
    border-radius: var(--radius-xl);
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.no-results-3d {
    text-align: center;
    padding: 80px 20px;
}

.no-results-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-results-3d h3 {
    font-size: 28px;
    color: var(--slate-dark);
    margin-bottom: 12px;
}

.no-results-3d p {
    color: var(--slate-medium);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.fade-in-up {
    animation: fade-in-up 0.6s ease backwards;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1280px) {
    .calculator-float-3d {
        right: 20px;
        width: 340px;
    }
}

@media (max-width: 1024px) {
    .calculator-float-3d {
        display: none;
    }

    .parks-grid-3d,
    .loading-grid-3d {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }

    .search-grid-3d {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .safari-hero-3d {
        min-height: 40vh;
        padding: 60px 0;
    }

    .search-card-3d {
        padding: 24px;
    }

    .parks-grid-3d,
    .loading-grid-3d {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .seasons-grid-3d {
        grid-template-columns: 1fr;
    }

    .faq-grid-3d {
        grid-template-columns: 1fr;
    }

    .cta-buttons-3d {
        flex-direction: column;
        align-items: center;
    }

    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
}

/* ================================================
   ACCESSIBILITY - REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================================
   MODAL ENHANCEMENTS & UTILITIES (Specific fixes for Safari page)
   ================================================ */

/* Textarea Fix for Safari */
textarea[required] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}