/* Homepage Specific Styles */

/* Logo Styling */
.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
    letter-spacing: -0.5px;
}

/* Hero Section with Background */
.hero-home {
    position: relative;
    height: 500px;
    background: url('../images/logo/hero-image.jpg') center/cover no-repeat;
    background-color: #4a5568;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Hero Search Container */
.hero-search-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin-bottom: 3rem;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: -1px;
    flex-wrap: nowrap;
}

.search-tab {
    background: transparent;
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 3px solid transparent;
    font-family: 'Poppins', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.search-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-tab.active {
    background: transparent;
    border-bottom: 3px solid #003DA5;
}

.search-tab i {
    font-size: 1rem;
}

/* Search Content */
.search-content {
    background: transparent;
    border-radius: 0 8px 8px 8px;
    padding: 0.3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 0 1rem;
    transition: all 0.2s ease;
}

.search-input-group.large {
    flex: 2;
}

.search-input-group:focus-within {
    border-color: #003DA5;
    background: transparent;
}

.search-input-group i {
    color: #ffffff;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 0;
    font-size: 0.9rem;
    outline: none;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
}

/* Date Picker Styling */
.search-input[type="date"] {
    color: #ffffff;
    cursor: pointer;
}

.search-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

.search-input[type="date"]::-webkit-datetime-edit {
    color: #ffffff;
}

.search-input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: #ffffff;
}

.search-input[type="date"]::-webkit-datetime-edit-text {
    color: rgba(255, 255, 255, 0.6);
}

.search-input[type="date"]::-webkit-datetime-edit-month-field,
.search-input[type="date"]::-webkit-datetime-edit-day-field,
.search-input[type="date"]::-webkit-datetime-edit-year-field {
    color: #ffffff;
}

.search-input[type="date"]::-webkit-inner-spin-button {
    display: none;
}

/* Firefox date picker */
.search-input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.8;
}

.search-btn {
    background: #003DA5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.875rem 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.search-btn:hover {
    background: #002d7a;
    box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3);
    transform: translateY(-1px);
}

.search-btn i {
    font-size: 0.9rem;
}

.hero-home .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.hero-home h1 {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-home h1 .hero-highlight {
    color: #FF5733;
}

/* Section Styling */
.section-home {
    padding: 3rem 0;
    position: relative;
}

.section-title {
    color: #2563eb;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.section-subtitle {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Destinations Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.destination-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.destination-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.destination-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
}

/* Packages List */
.packages-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.packages-header {
    margin-bottom: 1.5rem;
}

.packages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    transition: box-shadow 0.3s ease;
}

.package-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.package-info {
    flex: 1;
    position: relative;
}

.package-info h3 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.package-destination {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.package-badge {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.package-badge-unset {
    display: inline-block;
    background: #94a3b8;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.package-progress {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
}

.package-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 150px;
}

.package-date {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
}

.package-duration {
    color: #6b7280;
    font-size: 0.85rem;
}

.package-price {
    color: #2563eb;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Hotels Grid */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.hotel-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hotel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hotel-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.hotel-info {
    padding: 1rem;
}

.hotel-info h3 {
    font-size: 1rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.hotel-rating {
    color: #fbbf24;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.hotel-rating i {
    margin-right: 2px;
}

.hotel-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hotel-price {
    color: #2563eb;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Promo Grid */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.promo-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    min-height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.promo-card.heritage-featured {
    cursor: pointer;
}

.promo-card.heritage-featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 61, 165, 0.7) 100%);
    pointer-events: none;
}

.promo-action {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #003DA5;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transition: all 0.3s ease;
}

.promo-card.heritage-featured:hover .promo-action {
    background: #003DA5;
    color: white;
    transform: translateX(-50%) translateY(-5px);
}

.promo-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.promo-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.promo-location {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.advert-card {
    background: linear-gradient(135deg, rgba(243, 244, 246, 0.95) 0%, rgba(229, 231, 235, 0.95) 100%);
    backdrop-filter: blur(10px);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.advert-card h3 {
    color: #6b7280;
    margin-bottom: 1rem;
}

.advert-icons {
    display: flex;
    gap: 1rem;
    font-size: 2rem;
    color: #ff6b35;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ef4444;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
    text-align: center;
}

.product-info h4 {
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.product-price {
    color: #2563eb;
    font-weight: bold;
}

/* Stats Section Home */
.stats-home {
    background: #E3F2FD;
    padding: 3rem 0;
    position: relative;
}

.stats-home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(124, 58, 237, 0.03) 100%);
    pointer-events: none;
}

.stats-grid-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item-home {
    text-align: center;
    padding: 1.5rem;
    background: transparent;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item-home:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #10b981);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: white;
}

.stat-item-home h3 {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.stat-item-home p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Menu Toggle Button */
.menu-toggle-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #2563eb;
    cursor: pointer;
    padding: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-home {
        height: auto;
        min-height: 500px;
        padding: 1.5rem 1rem;
    }
    
    .hero-search-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .search-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .search-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .search-tab {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0.625rem 0.5rem;
        font-size: 0.7rem;
        justify-content: center;
        white-space: nowrap;
        flex-shrink: 1;
    }
    
    .search-tab i {
        font-size: 0.85rem;
        margin-right: 0.25rem;
    }
    
    .search-tab span {
        display: inline-block;
    }
    
    .search-content {
        padding: 1rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input-group {
        width: 100%;
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-home h1 {
        font-size: 1.5rem;
    }
    
    .packages-container {
        padding: 1.5rem;
    }
    
    .package-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    
    .package-details {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 1rem;
        align-items: flex-start;
    }
    
    .destinations-grid,
    .hotels-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .promo-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stats - Centered Grid Layout for Mobile */
    .stats-grid-home {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        padding: 1rem 0.5rem;
        max-width: 100%;
        margin: 0 auto;
        justify-items: center;
        align-items: center;
        overflow: hidden;
    }
    
    .stat-item-home {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0.25rem;
        text-align: center;
        margin: 0;
        transform: none;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .stat-item-home h3 {
        font-size: 1.2rem;
        margin-bottom: 0.25rem;
        line-height: 1.2;
    }
    
    .stat-item-home p {
        font-size: 0.65rem;
        line-height: 1.2;
    }
    
    .stats-home {
        padding: 2rem 0;
        overflow: hidden;
    }
    
    .footer-links-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-partners {
        gap: 1.5rem;
    }
    
    .partner-logo {
        height: 40px;
    }
    
    .partner-logo img {
        max-width: 80px;
    }
}

/* Extra Small Mobile - Very Aggressive Scaling */
@media (max-width: 480px) {
    .search-tab {
        padding: 0.5rem 0.4rem;
        font-size: 0.65rem;
        gap: 0.2rem;
        flex-shrink: 1;
    }
    
    .search-tab i {
        font-size: 0.7rem;
        margin-right: 0.15rem;
    }
    
    /* Make "Things To Buy" text shorter on very small screens */
    .search-tab[data-tab="products"] {
        font-size: 0.6rem;
    }
    
    .hero-search-container {
        margin-bottom: 2rem;
    }
}
