/* AGGRAVO PREMIUM LOGISTICS - MAIN CSS 
    Updated: 2026-04-19 
    Theme: Nature-Blended / Happy Impression
    Patterns: Action Grid, Verification UI, Social Proof, Mobile Optimization
*/

:root {
    /* Nature-Blended Palette */
    --primary: #0ea5e9;
    --nature-teal: #14b8a6;
    --dream-gold: #f59e0b;
    --nature-green: #10b981;
    
    /* Happy/Airy Backgrounds */
    --hero-gradient: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 100%);
    --surface: rgba(255, 255, 255, 0.9);
    --text-main: #1e293b;
    --text-joy: #0369a1;
    --text-light: #64748b;
    --glass-border: rgba(255, 255, 255, 0.3);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f0f9ff; /* Soft sky tint */
    color: var(--text-main);
    line-height: 1.6;
}

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

/* --- HEADER & BRANDING --- */
.premium-header {
    background: white;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-joy);
}

.partner-tag {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.verified-text {
    color: var(--text-main);
}

.verified-text::after {
    content: ' ✓';
    color: var(--nature-green);
    font-weight: 900;
}

.btn-contact-pill {
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-contact-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

/* --- NATURE-JOY HERO SECTION --- */
.hero-section {
    position: relative;
    padding: 160px 0 120px;
    color: white;
    background: var(--hero-gradient);
    overflow: hidden;
}

/* Abstract Nature Overlay */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/aggravo-hero-abstract.webp');
    background-size: cover;
    background-position: center right;
    opacity: 0.25; /* Softened for a happy impression */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, #ffffff, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section .badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    display: inline-block;
}

/* --- ACTION GRID (Klook-Inspired) --- */
.quick-links {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.link-grid {
    background: white;
    border-radius: 20px;
    display: flex;
    justify-content: space-around;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 50, 100, 0.08);
    border: 1px solid #f1f5f9;
}

.link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.link-item:hover { transform: translateY(-8px); }

.icon-circle {
    width: 70px;
    height: 70px;
    background: #f0f9ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.link-item.active .icon-circle {
    background: var(--primary);
    color: white;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.pulse-glow {
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

.link-item span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

/* --- DESTINATION CARDS --- */
.experience-gallery { padding: 80px 0; }

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.subtitle { color: var(--text-joy); font-weight: 600; font-size: 0.95rem; }

.gallery-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.moment-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.moment-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.moment-card:hover img { transform: scale(1.08); }

.count-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    color: var(--text-joy);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 40, 80, 0.7) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: white;
}

/* --- PRODUCT GRID & CARDS --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.product-image-container {
    position: relative;
    height: 220px;
}

.rating-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--dream-gold);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product-info { padding: 25px; }

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.type-label { color: var(--nature-teal); font-weight: 800; font-size: 0.7rem; letter-spacing: 1px; }

.instant-confirm {
    color: var(--nature-green);
    font-weight: 800;
    font-size: 0.7rem;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.price-box small { color: var(--text-light); font-size: 0.8rem; }
.price-box .amount {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--text-joy);
}

/* --- PREMIUM FOOTER --- */
.premium-footer {
    background: white; /* Changed from dark to light for happy impression */
    color: var(--text-light);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid #e2e8f0;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
}

.footer-brand .logo { margin-bottom: 15px; }

.pay-badge {
    background: #f8fafc;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-left: 10px;
    border: 1px solid #e2e8f0;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .link-grid {
        padding: 20px 10px;
        flex-wrap: wrap;
        gap: 20px;
    }
    .icon-circle {
        width: 55px;
        height: 55px;
        font-size: 1.5rem;
    }
    .link-item span { font-size: 0.75rem; }
    .hero-section { padding: 120px 0 80px; }
}

/* --- DISCOVERY SEARCH HUB --- */
.search-discovery-root {
    position: relative;
    width: 100%;
    margin-top: 40px;
    z-index: 100;
}

.search-wrapper {
    background: white;
    padding: 8px 8px 8px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: 0 15px 35px rgba(0, 50, 100, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.25);
}

.search-icon {
    font-size: 1.2rem;
    color: var(--text-light);
}

.dynamic-search-input {
    border: none;
    outline: none;
    padding: 12px 15px;
    flex: 1;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
}

.btn-search-joy {
    background: var(--hero-gradient);
    color: white;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Dropdown Animation Logic */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border: 1px solid #f1f5f9;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-results-dropdown.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.group-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f0f9ff;
}

.mini-thumb {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.item-info strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
}

.item-info small {
    color: var(--nature-teal);
    font-weight: 600;
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .search-wrapper { padding: 5px 5px 5px 15px; }
    .btn-search-joy { padding: 10px 20px; font-size: 0.9rem; }
}

/* Fleet Selection Styling */
.vehicle-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 10px;
}

.vehicle-card {
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    transition: 0.2s ease;
}

.vehicle-card:hover {
    border-color: #0ea5e9;
}

.vehicle-card.active {
    border: 2px solid #0ea5e9;
    background: #f0f9ff;
}

.price-summary {
    background: #f1f5f9;
    padding: 12px 14px;
    border-radius: 10px;
    margin-top: 10px;
    text-align: right;
}

.price-summary h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

/* ===== BUTTON FIX ===== */
.btn-confirm {
    width: 100%;
    padding: 13px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #0284c7, #14b8a6);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: 0.2s ease;
}

.btn-confirm:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2,132,199,0.25);
}

.vehicle-info strong {
    display: block;
    font-size: 1rem;
    color: #2c3e50;
}

.vehicle-price {
    margin-top: 8px;
    font-weight: 700;
    color: #27ae60;
    font-size: 1.1rem;
}

.product-card, .vehicle-card, .selector-card {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.card-overlay, .vehicle-info {
    pointer-events: none; /* Para lumusot ang click sa parent card */
}

/*assets/css/main.css*/

/* 1. Standardize the container size and ratio */
.product-image-container {
    width: 100%;
    /* Eto ang magic trick: gagawa tayo ng standard aspect ratio (4:3) */
    position: relative;
    padding-top: 75%; /* (3 / 4) * 100 = 75% for a 4:3 aspect ratio */
    overflow: hidden; /* Itatago ang anumang lumampas */
    border-radius: 12px; /* Panatilihin ang rounded corners */
}

/* 2. Make the image fill the standard container properly */
.product-image {
    /* Eto ang pinakaimportanteng property: object-fit! */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Object-fit: cover ay parang background-size: cover */
    /* Puwersahin nito ang image na punuin ang container nang hindi naii-stretch */
    object-fit: cover; 
    object-position: center; /* I-center ang image para iwas putol sa important details */
    
    transition: transform 0.3s ease; /* Panatilihin ang hover zoom kung meron */
}

/* 1. Ang Overlay (Yung pinkish/dark background) */
/* assets/css/main.css */

.modal {
    display: none; /* Binabago ito ng JS mo sa 'flex' */
    position: fixed !important; /* '!important' para masiguradong hindi ma-override */
    z-index: 99999 !important; /* Mas mataas sa kahit anong map layers */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.8); /* Dark semi-transparent */
    backdrop-filter: blur(8px);
    
    /* Siguraduhin na ang content ay laging nasa gitna */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Iwasan ang double scrollbar */
}

.modal-content {
    background-color: #fff;
    width: 95%;
    max-width: 600px;
    border-radius: 24px;
    z-index: 100000; /* Dapat mas mataas pa sa parent modal overlay */
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* 3. Modal Header/Title Section */
.modal-header {
    padding: 25px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
}

/* 4. Modal Body Section */
.modal-body {
    padding: 30px;
}

/* 5. Entrance Animation */
@keyframes modalPop {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 6. Close Button */
.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 35px;
    height: 35px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: 0.2s;
}

.close-modal:hover {
    background: #e2e8f0;
    color: #ef4444;
}

/* 7. Inputs & Forms inside Modal */
.modal-body input, .modal-body select {
    width: 100%;
    padding: 12px;
    margin: 10px 0 20px 0;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-family: inherit;
}

/* BEFORE (Current style) */
.premium-card.modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 600px;
}

/* AFTER (Premium Refactor) */
.premium-card.modal-content {
    background: #ffffff;
    border-radius: 2rem;
    max-width: 650px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden; /* Ensures gradient header doesn't spill */
}

.modal-hero {
    padding: 22px 22px 16px;
    background: linear-gradient(135deg, #0284c7, #14b8a6);
}

.modal-hero h2 {
    font-size: 1.25rem;
    letter-spacing: -0.2px;
}

.modal-meta {
    font-size: 0.75rem;
    opacity: 0.85;
}

.klook-detail-section {
    padding: 15px 20px;
}

.klook-detail-section h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #64748b;
    margin-top: 12px;
    margin-bottom: 6px;
}

.detail-content {
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #334155;
}

.booking-form {
    padding: 15px 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-row {
    display: flex;
    gap: 8px;
}

.premium-input {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 11px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: 0.2s;
}

.premium-input:focus {
    border-color: #0ea5e9;
    outline: none;
    background: #fff;
}

.modal-meta {
    font-size: 0.75rem;
    opacity: 0.9;
}

.modal-tabs {
    display: flex;
    background: #e2e8f0;
    margin: 10px 15px;
    border-radius: 12px;
    padding: 4px;
}

.tab-btn {
    flex: 1;
    padding: 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
}

.tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* BEFORE (Current style) */
.premium-card.modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 600px;
}

/* AFTER (Premium Refactor) */
.premium-card.modal-content {
    background: #ffffff;
    border-radius: 2rem;
    max-width: 650px;
    border: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden; /* Ensures gradient header doesn't spill */
}

.modal-tabs {
    background: #f8fafc;
    padding: 10px;
    display: flex;
    gap: 8px;
}

.detail-content ul {
    padding-left: 18px;
    margin: 0;
}

.detail-content li {
    margin-bottom: 4px;
}

/* FIX: limit overlay height + proper stacking */
.product-hero {
    position: relative;
    z-index: 1;
}

/* IMPORTANT: overlay should stay inside hero only */
.product-hero::after {
    z-index: 1;
}

/* bring text ABOVE overlay */
.hero-content {
    position: absolute;
    z-index: 2;
}

/* FIX: ensure next section is above hero overlap */
.product-container {
    position: relative;
    z-index: 3;
}

/* ===== FIX OVERLAY LAYERING ===== */
.product-hero {
    position: relative;
    z-index: 1;
}

.product-hero::after {
    z-index: 1;
}

.hero-content {
    z-index: 2;
}

/* CRITICAL: bring content above hero */
.product-container {
    position: relative;
    z-index: 3;
}


/* ===== MOBILE UX LOCK (NO PINCH / CLEAN FEEL) ===== */
html, body {
    touch-action: manipulation;
    -webkit-text-size-adjust: 100%;
}


/* OPTIONAL: smoother hero fade (premium feel) */
.product-hero::after {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.35),
        transparent
    );
}

/* ===== MOBILE NATIVE APP UX ===== */
@media (max-width: 768px) {

    /* stack layout */
    .product-container {
        display: block;
        margin-top: -60px;
    }

    /* full width cards */
    .product-main {
        padding-bottom: 120px; /* space for floating bar */
    }

    .booking-card {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 20px 20px 0 0;
        z-index: 9999;
        box-shadow: 0 -10px 25px rgba(0,0,0,0.1);
        padding: 15px;
    }

    /* compact booking UI */
    .booking-card h3 {
        display: none; /* hide "Select Vehicle" title */
    }

    #fleet-container {
        display: none; /* hide vehicles on mobile for now */
    }

    /* horizontal layout inside booking */
    .booking-card .premium-input {
        margin-top: 5px;
    }

    /* TOTAL + BUTTON inline */
    .booking-card h3 + input,
    #travel-date,
    #pax-count {
        display: none; /* hide inputs in floating mode */
    }

    /* new bottom bar layout */
    .booking-card::before {
        content: "";
        display: block;
        height: 5px;
        width: 40px;
        background: #ddd;
        border-radius: 10px;
        margin: 0 auto 10px;
    }

    /* total + button row */
    .booking-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    /* total text */
    #total {
        font-size: 18px;
        font-weight: 700;
    }

    .btn-book {
        width: 100%;
        height: 52px;
        font-size: 16px;
        border-radius: 14px;
    }
    
    .booking-card label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 12px;
    display: block;
}

}

@media (max-width: 768px) {

    .product-container {
        display: flex;
        flex-direction: column;
        margin-top: -40px;
    }

    /* REMOVE GRID BEHAVIOR */
    .product-container {
        grid-template-columns: unset !important;
    }

}

@media (max-width: 768px) {

    .btn-book {
        height: 48px;
        font-size: 16px;
        border-radius: 14px;
    }

    .premium-input {
        height: 44px;
        font-size: 16px;
    }

}

.product-hero {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

@media (max-width: 768px) {
    .booking-card {
        order: -1;
        position: relative;
        top: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {

    .booking-total {
        font-size: 20px;
        font-weight: 700;
        margin-top: 12px;
        margin-bottom: 10px;
    }

/* ===== APP CONTAINER CONTROL ===== */
.product-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* ===== GLOBAL LOCK (APP FEEL) ===== */
html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    touch-action: manipulation;
}