/* ─── Hero Promo Section (JustDial Style) ─── */
.hero-promo-section {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    height: 220px;
    overflow: hidden;
}

/* Ad Banner (Wallpaper) */
.hero-ad-banner {
    flex: 1.5;
    background: #000;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 30px;
    color: white;
}

.hero-ad-banner .ad-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 10s ease;
}

.hero-ad-banner:hover .ad-bg {
    transform: scale(1.1);
}

.hero-ad-banner .ad-content {
    position: relative;
    z-index: 2;
    max-width: 70%;
}

.hero-ad-banner .ad-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-ad-banner h2 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-ad-banner p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 16px;
}

/* Quick Tiles Scroll */
.quick-tiles-scroll {
    flex: 2;
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 5px;
    /* For scrollbar */
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.quick-tiles-scroll::-webkit-scrollbar {
    display: none;
}

.quick-tile {
    min-width: 160px;
    width: 160px;
    height: 100%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 16px;
    transition: transform 0.3s ease;
}

.quick-tile:hover {
    transform: translateY(-4px);
}

.quick-tile .tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Tile Colors */
.tile-blue {
    background: linear-gradient(135deg, #0284c7, #0ea5e9);
}

.tile-dark-blue {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
}

.tile-purple {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
}

.tile-green {
    background: linear-gradient(135deg, #059669, #10b981);
}

.quick-tile .tile-content {
    position: relative;
    z-index: 2;
}

.quick-tile .tile-tag {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.quick-tile h3 {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 4px;
}

.quick-tile p {
    font-size: 0.75rem;
    opacity: 0.9;
    line-height: 1.3;
}

.quick-tile .tile-img {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 110px;
    height: 110px;
    object-fit: cover;
    object-position: bottom right;
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
}

.quick-tile .tile-arrow {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(4px);
}

/* ─── Search Bar Polish ─── */
.search-hero {
    padding: 20px 0 10px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    /* Slightly squarer like JD */
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #e5e7eb;
}

.search-input-group {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    flex: 1;
}

.search-input-group.main-search {
    flex: 1.5;
}

.search-icon {
    font-size: 1.2rem;
    color: #9ca3af;
    margin-right: 12px;
}

.form-input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    color: #374151;
}

.search-divider {
    width: 1px;
    height: 30px;
    background: #e5e7eb;
}

.search-btn {
    background: var(--primary);
    /* JD Orange/Red equivalent */
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* ─── Mobile Responsiveness ─── */
@media (max-width: 768px) {
    .hero-promo-section {
        flex-direction: column;
        height: auto;
        padding: 0 12px;
    }

    .hero-ad-banner {
        height: 180px;
        flex: none;
        width: 100%;
    }

    .quick-tiles-scroll {
        flex: none;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
    }

    .quick-tile {
        min-width: 140px;
        height: 180px;
        scroll-snap-align: start;
    }

    .search-bar {
        flex-direction: column;
        padding: 8px;
        gap: 8px;
    }

    .search-divider {
        display: none;
    }

    .search-input-group {
        width: 100%;
        background: #f9fafb;
        border-radius: 6px;
    }

    .search-btn {
        width: 100%;
        height: 44px;
        border-radius: 6px;
    }
}