﻿/* ========================================================
   HOMEPAGE V2 STYLES
   ======================================================== */

.home-hero-wrapper, 
.home-hero-wrapper *, 
.home-hero-wrapper *::before, 
.home-hero-wrapper *::after,
.home-body-v2,
.home-body-v2 *,
.footer-v2,
.footer-v2 * {
    box-sizing: border-box;
}

.home-hero-wrapper {
    position: relative;
    width: 100%;
    background: transparent;
    height: auto;
    display: flex;
    flex-direction: column;
}

/* HEADER V2 */
.home-header-v2 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 1000;
    box-sizing: border-box;
}

.header-logo-container { flex-shrink: 0; }
.header-logo-text { font-family: 'Inter', sans-serif !important; font-size: 1.5rem; font-weight: 800 !important;
    font-weight: 800;
    letter-spacing: 2px;
    color: #111;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-logo-text .icon {
    font-size: 26px;
    color: #b89143;
}
.header-logo-text .text-primary {
    color: #b89143;
}

/* MAIN NAV V2 */
.main-nav-v2 {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: center;
}

.main-nav-v2 .nav-item {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.main-nav-v2 .nav-item:hover,
.main-nav-v2 .nav-item.active {
    color: #b89143;
}

.main-nav-v2 .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #b89143;
    border-radius: 2px;
}
/* HERO SEARCH WIDGET */
.hero-search-widget {
    background: #fff;
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 960px;
}

.hsw-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 16px;
    border: 1px solid #eaeaea;
}

.hsw-input-row .material-symbols-outlined { color: #888; font-size: 24px; }
.hsw-input-row input {
    border: none;
    background: transparent;
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: #111;
    outline: none;
}
.hsw-input-row input::placeholder { color: #999; font-weight: 400; }

.hsw-submit-btn {
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}
.hsw-submit-btn:hover { background: #b89143; }

.hsw-filters-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

/* Re-use custom dropdown styles */
.hero-search-widget .custom-dropdown-wrapper { position: relative; cursor: pointer; }
.hero-search-widget .custom-dropdown-header { 
    display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 8px; transition: background 0.2s; 
}
.hero-search-widget .custom-dropdown-header:hover { background: #f0f0f0; }
.hero-search-widget .custom-dropdown-header span.truncate { font-size: 14px; font-weight: 500; color: #333; max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hero-search-widget .custom-dropdown-list {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; background: #fff;
    border: 1px solid #eaeaea; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.3s;
    max-height: 350px; overflow-y: auto; padding: 8px 0;
}
.hero-search-widget .custom-dropdown-wrapper.active .custom-dropdown-list { opacity: 1; visibility: visible; }
.hero-search-widget .custom-option { padding: 10px 20px; font-size: 14px; color: #444; cursor: pointer; white-space: nowrap; transition: background 0.2s; }
.hero-search-widget .custom-option:hover { background: #fdfaf4; color: #b89143; }
.hero-search-widget .custom-option.selected { background: #fdfaf4; color: #b89143; font-weight: 600; }

.search-divider-sm { width: 1px; height: 16px; background: #f0f0f0; margin: 0 8px; flex-shrink: 0; }
.hsw-reset-btn { margin-left: auto; background: #f8f9fa; border: 1px solid #eaeaea; color: #666; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; }
.hsw-reset-btn:hover { background: #fee2e2; color: #ef4444; border-color: #fecaca; }

/* HEADER ACTIONS */
.header-actions-v2 {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.action-btn-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
    text-decoration: none;
}

.action-btn-v2:hover { background: #f9f9f9; border-color: #ccc; }
.action-btn-v2 .material-symbols-outlined { font-size: 20px; }

/* HERO V2 */
.hero-v2 {
    display: flex;
    min-height: 400px;
    height: 45vh;
    justify-content: center;
    align-items: center;
    padding: 86px 20px 16px 20px; /* Offset for 70px fixed header */
    width: 100%;
    /* A5: dùng trực tiếp WebP để không đóng gói thêm cover.jpg 17 MB. */
    background: url('../images/cover.webp') center/cover no-repeat;
    background-color: #f8f9fa; /* Fallback */
    border-radius: 0 0 24px 24px; /* Soften the bottom edge */
    box-sizing: border-box;
}

.hero-v2-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    align-items: center;
}

.hero-v2-tag {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: inline-block;
    background: rgba(0,0,0,0.05);
    padding: 6px 16px;
    border-radius: 12px;
}

.hero-v2-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.hero-v2-title span {
    color: #b89143; /* Muted gold */
}

.hero-v2-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d0bd95, #b59a57);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    padding: 14px 32px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(208, 189, 149, 0.4);
    width: fit-content;
}

.hero-v2-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(208, 189, 149, 0.6);
}

/* HERO STATS */
.hero-stats-v2 {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 24px 32px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-top: 40px;
    width: fit-content;
}

.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-stat-item:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 30px;
    background: rgba(0,0,0,0.1);
    margin-left: 24px;
}

.hero-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fdfaf4;
    color: #b89143;
    border-radius: 50%;
    font-size: 22px;
    border: 1px solid rgba(184, 145, 67, 0.2);
}

.hero-stat-text h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #1a1a1a;
}

.hero-stat-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* TRENDING PANEL */
.trending-panel-v2 {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.trending-header { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    margin-bottom: 16px;
}

.trending-header h3 { 
    margin: 0; 
    font-size: 15px; 
    font-weight: 800; 
    color: #1a1a1a; 
    letter-spacing: 0.5px;
}

.trending-tabs { 
    display: flex; 
    gap: 4px; 
    margin-bottom: 0px; 
    background: #f1f5f9; 
    padding: 4px; 
    border-radius: 12px; 
}

.trending-tabs button { 
    flex: 1; 
    border: none; 
    background: transparent; 
    padding: 8px; 
    border-radius: 8px; 
    font-size: 13px; 
    font-weight: 600; 
    color: #64748b; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.trending-tabs button.active { 
    background: #fff; 
    color: #1a1a1a; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); 
}

.trending-list { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

.trending-item { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    cursor: pointer; 
    transition: transform 0.2s; 
}

.trending-item:hover { transform: translateX(4px); }

.trending-rank { 
    width: 24px; 
    height: 24px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 12px; 
    font-weight: 800; 
    color: #94a3b8; 
    background: #f1f5f9; 
    border-radius: 6px; 
}

.trending-rank.gold { background: #fef08a; color: #ca8a04; }
.trending-rank.silver { background: #e2e8f0; color: #475569; }
.trending-rank.bronze { background: #ffedd5; color: #c2410c; }

.trending-img { 
    width: 48px; 
    height: 48px; 
    border-radius: 12px; 
    overflow: hidden; 
}

.trending-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.trending-info h4 { 
    margin: 0 0 4px 0; 
    font-size: 13px; 
    font-weight: 700; 
    color: #1a1a1a; 
    display: -webkit-box; 
    -webkit-line-clamp: 1; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.trending-info p { 
    margin: 0; 
    font-size: 12px; 
    color: #64748b; 
}

.trending-view-all { 
    width: 100%; 
    margin-top: 24px; 
    padding: 12px; 
    border: 1px solid #eaeaea; 
    background: #fff; 
    border-radius: 12px; 
    font-size: 13px; 
    font-weight: 600; 
    color: #1a1a1a; 
    cursor: pointer; 
    transition: all 0.2s;
}

.trending-view-all:hover { background: #f8f9fa; }


/* HOME BODY V2 */
.home-body-v2 {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 24px 60px;
    background: #fff;
    position: relative;
    z-index: 10;
}

/* TABS V2 */
.category-tabs-v2 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.home-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #4a4a4a;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.home-tab-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.home-tab-btn.active {
    background: #fff;
    border: 1.5px solid #d4af37;
    color: #b89143;
}

.home-tab-btn .material-symbols-outlined {
    font-size: 18px;
}

.home-tab-btn.active .material-symbols-outlined {
    color: #d4af37 !important;
}

/* .cat-tab-btn styles moved to the bottom of the file for segmented control design */

/* SECTION HEADER V2 */
.section-header-v2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
}

.section-title-v2 h2 {
    font-size: 28px;
    font-weight: 800;
    color: #111;
    margin: 0 0 8px 0;
    text-transform: uppercase;
}

.section-title-v2 p {
    font-size: 15px;
    color: #444;
    margin: 0;
}

.section-action-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.section-action-v2:hover {
    border-color: #ccc;
    background: #f9f9f9;
}

/* PROMO BANNER V2 */
.promo-banner-v2 {
    background: #fdfaf4;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0;
    border: 1px solid rgba(184, 145, 67, 0.2);
}

.promo-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    max-width: 400px;
}

.promo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.promo-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
}

.promo-list li .material-symbols-outlined {
    font-size: 18px;
    color: #b89143;
}

.promo-banner-v2 .hero-v2-btn {
    padding: 10px 24px;
}

.promo-image {
    font-size: 120px;
    color: #b89143;
    opacity: 0.8;
}

/* FEATURES V2 */
.features-v2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; background: #fff; border: 1px solid rgba(208,189,149,0.2); box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-radius: 20px; padding: 40px; margin-top: -50px; position: relative; z-index: 10; margin-bottom: 60px; }

.feature-v2-item { display: flex; align-items: flex-start; gap: 16px; padding: 16px; background: rgba(208, 189, 149, 0.05); border-radius: 16px; border: 1px solid rgba(208, 189, 149, 0.1); }

.feature-v2-item:first-child {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.feature-v2-item:first-child h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
}

.feature-v2-item:first-child p {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
}

.feature-v2-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 50%;
    color: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.feature-v2-text h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.feature-v2-text p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* FOOTER V2 */
.home-footer-v2 {
    background-color: #202020;
    color: #d1d5db;
    padding: 60px 5% 20px;
    border-radius: 0;
}

.footer-v2-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-v2-col h4 { color: #d0bd95 !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 20px 0;
    letter-spacing: 1px;
}

.footer-v2-col p {
    font-size: 14px;
    line-height: 1.6;
    color: #d1d5db;
    margin-bottom: 16px;
}

.footer-v2-logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-v2-logo .text-primary { color: #d0bd95; }

.footer-v2-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-v2-links li {
    margin-bottom: 12px;
}

.footer-v2-links a { color: #d1d5db;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-v2-links a:hover { color: #d0bd95; }

.footer-v2-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-v2-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #d1d5db;
}

.footer-v2-contact .material-symbols-outlined { font-size: 18px; color: #d0bd95; }

.footer-v2-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-v2-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    transition: all 0.2s;
    text-decoration: none;
}

.footer-v2-social a:hover { background: #d0bd95; color: #111; }

.footer-v2-newsletter {
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 20px;
}

.newsletter-input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 10px 16px;
    color: #fff;
    font-size: 14px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.newsletter-input:focus { outline: none; border-color: #d0bd95; }

.newsletter-btn { width: 100%; background: #d0bd95; color: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.newsletter-btn:hover { background: #bba780; }

.footer-v2-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 20px;
    font-size: 13px;
    color: #6b7280;
}

.mobile-search-toggle {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1400px) {
    .mobile-search-toggle {
        display: flex;
    }
    .header-search-v2 {
        display: none; /* Hidden by default on tablet/mobile */
        position: absolute;
        top: 80px;
        left: 20px;
        right: 20px;
        max-width: none;
        margin: 0;
        flex-wrap: wrap;
        z-index: 100;
        background: #fff;
        padding: 12px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    }
    .header-search-v2.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .search-divider {
        display: none; /* Hide dividers when wrapped */
    }
    .custom-dropdown-wrapper {
        flex: 1 1 calc(50% - 10px);
        margin: 4px;
        background: #f8f9fa;
        border-radius: 8px;
    }
    .hero-v2-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-v2-right {
        order: -1; /* Trending on top on tablet */
        margin-bottom: 40px;
    }
    
    .footer-v2-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .hero-v2 {
        background: url('../images/cover.webp') center/cover no-repeat;
    }
    
    .features-v2 {
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .home-header-v2 {
        padding: 16px 12px;
    }
    
    .header-actions-v2 {
        gap: 8px;
    }
    
    .header-logo-text {
        font-size: 1.25rem !important;
        letter-spacing: 1px !important;
    }
    
    .action-btn-v2 {
        width: 36px;
        height: 36px;
    }

    .hero-v2 {
        padding: 16px 20px;
        border-radius: 0;
    }
    
    .hero-v2-title { font-size: 36px; }
    
    .hero-stats-v2 {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
        border-radius: 16px;
    }
    .hero-stat-item:not(:last-child)::after { display: none; }
    
    .home-body-v2 {
        padding: 30px 20px 60px;
    }
    
    .category-tabs-v2 {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
    }
    
    .cat-tab-btn {
        min-width: 140px; justify-content: center; text-align: center;
        padding: 12px;
    }
    
    .promo-banner-v2 {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .promo-list li {
        justify-content: center;
    }
    
    .footer-v2-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-dropdown-wrapper {
        flex: 1 1 100%;
    }
    .search-input-v2 {
        width: 100%;
        margin-bottom: 8px;
        background: #f8f9fa;
        padding: 8px 12px;
        border-radius: 8px;
    }
}


/* LIGHT THEME SKELETON FIX */
.home-body-v2 .skeleton-box, .tour-card .skeleton-box, .home-header-v2 .skeleton-box, .category-tabs-v2 .skeleton-box {
    background-color: rgba(0, 0, 0, 0.05) !important;
}
.home-body-v2 .skeleton-box::after, .tour-card .skeleton-box::after {
    background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent) !important;
}


/* NEW TOOLBAR GRID */
.home-toolbar-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
}
.home-toolbar-grid::before {
    content: '';
}
.category-tabs-v2 { justify-self: center; }
.home-pagination-size { justify-self: end; }

@media (max-width: 768px) {
    .home-toolbar-grid {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .home-toolbar-grid::before { display: none; }
    .home-pagination-size { justify-self: flex-start; }
}


/* NEW TAB DESIGN */
.home-tab-btn {
    border-radius: 20px;
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.home-tab-btn.active {
    background: #b89143;
    color: #fff;
    border-color: #b89143;
}
.home-tab-btn:hover:not(.active) {
    background: rgba(0, 0, 0, 0.08);
}

/* SEARCH INPUT ROW NEW DESIGN */
.hsw-input-row {
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 6px 6px 6px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 24px;
}
.hsw-input-row input {
    border: none !important;
    background: transparent;
}
.hsw-input-row input:focus {
    outline: none !important;
    box-shadow: none !important;
}
.hsw-submit-btn {
    border-radius: 12px !important;
    margin-left: 10px;
}


/* CAT TAB BTN FIX */
.category-tabs-v2 { display: inline-flex !important; align-items: center !important; gap: 4px; padding: 4px !important; height: 44px !important; box-sizing: border-box !important; background: rgba(0,0,0,0.05); border-radius: 999px !important; width: fit-content; margin: 0; position: relative; -ms-overflow-style: none; scrollbar-width: none; } .category-tabs-v2::-webkit-scrollbar { display: none; }
.cat-tab-btn { border-radius: 999px; min-width: 140px; justify-content: center;
    padding: 8px 20px;
    background: transparent;
    border: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    position: relative;
    z-index: 1;
}
.cat-tab-btn.active { color: #fff; /* text-shadow removed */ }
.cat-tab-slider-bg { position: absolute; top: 4px; left: 4px; height: calc(100% - 8px); background: linear-gradient(135deg, #d0bd95, #b59a57); border-radius: 999px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.2, 1), width 0.4s cubic-bezier(0.34, 1.56, 0.2, 1);
    z-index: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.cat-tab-btn:hover:not(.active) { color: #d0bd95; opacity: 0.9; }



body.dark-theme .home-header-v2, 
[style*="background-color: var(--background-dark)"] .home-header-v2 {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.dark-theme .home-header-v2 .nav-item, 
[style*="background-color: var(--background-dark)"] .home-header-v2 .nav-item {
    color: rgba(255, 255, 255, 0.8);
}
body.dark-theme .home-header-v2 .nav-item:hover,
body.dark-theme .home-header-v2 .nav-item.active,
[style*="background-color: var(--background-dark)"] .home-header-v2 .nav-item:hover,
[style*="background-color: var(--background-dark)"] .home-header-v2 .nav-item.active {
    color: #fff;
}
body.dark-theme .home-header-v2 .nav-item.active::after,
[style*="background-color: var(--background-dark)"] .home-header-v2 .nav-item.active::after {
    background: #fff;
}
body.dark-theme .home-header-v2 .header-logo-text,
[style*="background-color: var(--background-dark)"] .home-header-v2 .header-logo-text {
    color: #fff;
}
body.dark-theme .home-header-v2 .action-btn-v2,
[style*="background-color: var(--background-dark)"] .home-header-v2 .action-btn-v2 {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}
body.dark-theme .home-header-v2 .action-btn-v2:hover,
[style*="background-color: var(--background-dark)"] .home-header-v2 .action-btn-v2:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}























/* TOUR CARD FONT SIZE OVERRIDES */
html .tour-card-v3 .tc-title {
    font-size: 1rem !important;
    font-weight: 400 !important;
}
html .tour-card-v3 .tc-subtitle {
    font-size: 0.75rem !important;
}
html .tour-card-v3 .tc-product-count b {
    font-size: 1.1rem !important;
    margin-right: 4px;
    color: #059669 !important;
}
.section-title-v2 h2 {
    font-size: 1.1rem !important;
}

/* COMING SOON OVERRIDES */
html .tour-card-v3 .tc-coming-soon p {
    font-size: 0.9rem !important;
    font-weight: 500 !important;
}
html .tour-card-v3 .tc-coming-soon .material-symbols-outlined {
    font-size: 1.5rem !important;
}

/* FIX CAT TAB BTN VERTICAL ALIGNMENT */
html .cat-tab-btn {
    align-items: center;
    justify-content: center;
    line-height: 1;
}
html .cat-tab-btn span {
    display: flex;
    align-items: center;
    line-height: 1;
}
html .cat-tab-btn .material-symbols-outlined {
    font-size: 20px;
}




/* =========================================
   TOUR CARD V3 REDESIGN (Cao tang / Thap tang)
   ========================================= */

/* Hide old absolute badge if it somehow still exists */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

/* New Category Tag */
.tc-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 8px;
    border: 1px solid transparent;
}

.tc-category-tag .material-symbols-outlined {
    font-size: 14px;
}

.tc-category-tag.type-low_rise {
    background: rgba(217, 119, 6, 0.1);
    color: #d97706;
    border-color: rgba(217, 119, 6, 0.2);
}

.tc-category-tag.type-high_rise {
    background: rgba(29, 78, 216, 0.1);
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.2);
}

.tc-category-tag.type-default {
    background: #f1f5f9;
    color: #475569;
}

/* Footer & Product Count Redesign */
.tc-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed rgba(0,0,0,0.08);
}

html .tour-card-v3 .tc-product-count {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 185, 129, 0.08) !important;
    color: #059669 !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

html .tour-card-v3 .tc-product-count:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    transform: none;
    box-shadow: none !important;
}

html .tour-card-v3 .tc-count-text {
    flex-direction: row;
    gap: 4px;
    height: auto;
}

html .tour-card-v3 .tc-count-text span {
    font-size: 0.9rem;
    text-transform: none;
    font-weight: 500;
}

html .tour-card-v3 .tc-product-count b {
    font-size: 1.1rem !important;
    margin-right: 4px;
    color: #059669 !important;
}

html .tour-card-v3 .tc-product-count .material-symbols-outlined {
    color: #059669 !important;
}


/* =========================================
   TOUR CARD V3 REDESIGN (Inline Meta Row)
   ========================================= */

/* Hide old absolute badge if it somehow still exists */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

html .tour-card-v3 .tc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

/* New Category Tag */
.tc-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.tc-category-tag .material-symbols-outlined {
    font-size: 14px;
}

.tc-category-tag.type-low_rise {
    background: #fff7ed;
    color: #c2410c;
    border-color: #fed7aa;
}

.tc-category-tag.type-high_rise {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.tc-category-tag.type-default {
    background: #f1f5f9;
    color: #475569;
}

/* Inline Product Count */
html .tour-card-v3 .tc-product-count {
    position: static !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    background: #ecfdf5 !important;
    color: #047857 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 999px !important;
    padding: 2px 8px !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

html .tour-card-v3 .tc-product-count:hover {
    background: #d1fae5 !important;
    border-color: #6ee7b7 !important;
}

html .tour-card-v3 .tc-product-count b {
    font-size: 0.75rem !important;
    color: #047857 !important;
    margin-right: 0 !important;
}

html .tour-card-v3 .tc-count-text {
    flex-direction: row !important;
    height: auto !important;
}

html .tour-card-v3 .tc-count-text span {
    font-size: 0.75rem !important;
    color: #047857 !important;
    text-transform: none !important;
    font-weight: 500 !important;
}

html .tour-card-v3 .tc-product-count .material-symbols-outlined {
    font-size: 14px !important;
    color: #047857 !important;
}


/* =========================================
   TOUR CARD V3 REDESIGN (Premium Sharp UI)
   ========================================= */

/* Hide old absolute badge */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

html .tour-card-v3 .tc-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

/* New Category Tag */
.tc-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.tc-category-tag .material-symbols-outlined {
    font-size: 14px;
}

.tc-category-tag.type-low_rise {
    background: #fff3e0;
    color: #e65100;
}

.tc-category-tag.type-high_rise {
    background: #e3f2fd;
    color: #1565c0;
}

.tc-category-tag.type-default {
    background: #f1f5f9;
    color: #475569;
}

/* Inline Product Count */
html .tour-card-v3 .tc-product-count {
    position: static !important;
    width: auto !important;
    /* Do not force display, let JS handle it so empty elements stay hidden */
    align-items: center;
    gap: 4px;
    background: #e8f5e9 !important;
    color: #1b5e20 !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

html .tour-card-v3 .tc-product-count:hover {
    background: #c8e6c9 !important;
    transform: translateY(-1px);
}

html .tour-card-v3 .tc-product-count b {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #1b5e20 !important;
    margin-right: 0 !important;
}

html .tour-card-v3 .tc-count-text {
    flex-direction: row !important;
    height: auto !important;
    display: flex;
    align-items: center;
}

html .tour-card-v3 .tc-count-text span {
    font-size: 0.75rem !important;
    color: #1b5e20 !important;
    text-transform: none !important;
    font-weight: 600 !important;
    line-height: 1;
}

html .tour-card-v3 .tc-product-count .material-symbols-outlined {
    font-size: 14px !important;
    color: #1b5e20 !important;
}


/* =========================================
   TOUR CARD V3 REDESIGN (Typography Footer)
   ========================================= */

/* Hide old absolute badge if it somehow still exists */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

html .tour-card-v3 .tc-body {
    padding-bottom: 12px;
}

html .tour-card-v3 .tc-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

/* Text-based Category */
.tc-category-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-category-text .material-symbols-outlined {
    font-size: 16px;
}

.tc-category-text.type-low_rise {
    color: #ea580c;
}

.tc-category-text.type-high_rise {
    color: #2563eb;
}

.tc-category-text.type-default {
    color: #64748b;
}

/* Text-based Product Count */
html .tour-card-v3 .tc-product-count-text {
    align-items: center;
    gap: 4px;
    color: #059669;
    cursor: pointer;
    transition: color 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover {
    color: #047857;
}

html .tour-card-v3 .tc-product-count-text .count-number {
    font-size: 0.95rem;
    font-weight: 800;
}

html .tour-card-v3 .tc-product-count-text .count-text {
    font-size: 0.8rem;
    font-weight: 500;
}

html .tour-card-v3 .tc-product-count-text .icon-arrow {
    font-size: 16px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover .icon-arrow {
    transform: translateX(3px);
}


/* =========================================
   TOUR CARD V3 REDESIGN (Typography Footer)
   ========================================= */

/* Hide old absolute badge if it somehow still exists */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

html .tour-card-v3 .tc-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    background-color: #f1f5f9;
    
    
}

/* Text-based Category */
.tc-category-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-category-text.type-low_rise {
    color: #ea580c;
}

.tc-category-text.type-high_rise {
    color: #2563eb;
}

.tc-category-text.type-default {
    color: #64748b;
}

/* Text-based Product Count */
html .tour-card-v3 .tc-product-count-text {
    align-items: center;
    gap: 4px;
    color: #059669;
    cursor: pointer;
    transition: color 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover {
    color: #047857;
}

html .tour-card-v3 .tc-product-count-text .count-number {
    font-size: 0.95rem;
    font-weight: 800;
}

html .tour-card-v3 .tc-product-count-text .count-text {
    font-size: 0.8rem;
    font-weight: 500;
}

html .tour-card-v3 .tc-product-count-text .icon-arrow {
    font-size: 16px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover .icon-arrow {
    transform: translateX(3px);
}


/* =========================================
   TOUR CARD V3 REDESIGN (Dynamic Colored Footer)
   ========================================= */

/* Hide old absolute badge if it somehow still exists */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

html .tour-card-v3 .tc-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    
    
    transition: background-color 0.3s ease;
}

/* DYNAMIC BACKGROUNDS AND COLORS BY TYPE */

/* Low Rise (Thap tang) - Orange Theme */
html .tour-card-v3 .tc-meta-bar.type-low_rise {
    background-color: #ffedd5;
    border-bottom-color: #fdba74;
}
html .tour-card-v3 .tc-meta-bar.type-low_rise .tc-category-text {
    color: #ea580c;
}
html .tour-card-v3 .tc-meta-bar.type-low_rise .tc-product-count-text {
    color: #c2410c;
}
html .tour-card-v3 .tc-meta-bar.type-low_rise .tc-product-count-text:hover {
    color: #9a3412;
}

/* High Rise (Cao tang) - Sky Blue Theme */
html .tour-card-v3 .tc-meta-bar.type-high_rise {
    background-color: #e0f2fe;
    border-bottom-color: #7dd3fc;
}
html .tour-card-v3 .tc-meta-bar.type-high_rise .tc-category-text {
    color: #0284c7;
}
html .tour-card-v3 .tc-meta-bar.type-high_rise .tc-product-count-text {
    color: #0369a1;
}
html .tour-card-v3 .tc-meta-bar.type-high_rise .tc-product-count-text:hover {
    color: #075985;
}

/* Default Theme */
html .tour-card-v3 .tc-meta-bar.type-default {
    background-color: #f1f5f9;
    border-bottom-color: #cbd5e1;
}
html .tour-card-v3 .tc-meta-bar.type-default .tc-category-text {
    color: #475569;
}
html .tour-card-v3 .tc-meta-bar.type-default .tc-product-count-text {
    color: #334155;
}
html .tour-card-v3 .tc-meta-bar.type-default .tc-product-count-text:hover {
    color: #0f172a;
}


/* Text-based Category */
.tc-category-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text-based Product Count */
html .tour-card-v3 .tc-product-count-text {
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: color 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text .count-number {
    font-size: 0.95rem;
    font-weight: 800;
}

html .tour-card-v3 .tc-product-count-text .count-text {
    font-size: 0.8rem;
    font-weight: 500;
}

html .tour-card-v3 .tc-product-count-text .icon-arrow {
    font-size: 16px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover .icon-arrow {
    transform: translateX(3px);
}


/* =========================================
   TOUR CARD V3 REDESIGN (Clean White Meta Bar)
   ========================================= */

/* Hide old absolute badge if it somehow still exists */
html .tour-card-v3 .tc-img-wrapper .tc-badge {
    display: none !important;
}

html .tour-card-v3 .tc-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 20px 0 20px;
    background-color: transparent !important;
    border: none !important;
}

/* Solid Color Tags */
html .tour-card-v3 .tc-category-text {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

html .tour-card-v3 .tc-meta-bar.type-low_rise .tc-category-text {
    background: linear-gradient(to right, #ea580c, #fb923c); /* Gradient Orange */
}

html .tour-card-v3 .tc-meta-bar.type-high_rise .tc-category-text {
    background: linear-gradient(to right, #2563eb, #60a5fa); /* Gradient Blue */
}

html .tour-card-v3 .tc-meta-bar.type-default .tc-category-text {
    background: linear-gradient(to right, #475569, #94a3b8); /* Gradient Slate */
}

/* Product Count Text */
html .tour-card-v3 .tc-product-count-text {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover {
    opacity: 0.7;
}

html .tour-card-v3 .tc-product-count-text .count-number {
    font-size: 1rem;
    font-weight: 800;
}

html .tour-card-v3 .tc-product-count-text .count-text {
    font-size: 0.8rem;
    font-weight: 600;
}

html .tour-card-v3 .tc-product-count-text .icon-arrow {
    font-size: 16px;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

html .tour-card-v3 .tc-product-count-text:hover .icon-arrow {
    transform: translateX(3px);
}

/* Dynamic Product Count Colors */
html .tour-card-v3 .tc-meta-bar.type-low_rise .tc-product-count-text {
    color: #ea580c;
}
html .tour-card-v3 .tc-meta-bar.type-high_rise .tc-product-count-text {
    color: #2563eb;
}
html .tour-card-v3 .tc-meta-bar.type-default .tc-product-count-text {
    color: #059669;
}

html .tour-card-v3 .tc-meta-bar.type-low_rise .tc-category-text,
html .tour-card-v3 .tc-meta-bar.type-high_rise .tc-category-text,
html .tour-card-v3 .tc-meta-bar.type-default .tc-category-text {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

html .tour-card-v3 .tc-img-wrapper {
    position: relative;
}

html .tour-card-v3 .tc-meta-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 45px 15px 12px 15px;
    background: linear-gradient(to top, rgb(0 0 0 / 24%) 0%, transparent 100%) !important;
    z-index: 10;
}

html .tour-card-v3 .tc-product-count-text,
html .tour-card-v3 .tc-product-count-text .count-number,
html .tour-card-v3 .tc-product-count-text .count-text,
html .tour-card-v3 .tc-product-count-text .icon-arrow {
    color: #ffffff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

html .tour-card-v3 .tc-product-count-text:hover,
html .tour-card-v3 .tc-product-count-text:hover .count-number,
html .tour-card-v3 .tc-product-count-text:hover .count-text,
html .tour-card-v3 .tc-product-count-text:hover .icon-arrow {
    text-shadow: none !important;
}

html .tour-card-v3 .tc-product-count-text {
    padding: 4px 12px !important;
    border-radius: 999px !important;
    margin-right: -8px !important;
    transition: all 0.3s ease !important;
}

html .tour-card-v3 .tc-product-count-text:hover {
    background: linear-gradient(135deg, #d0bd95, #b59a57) !important;
    opacity: 1 !important;
}

html .tour-card-v3 .tc-product-count-text {
    position: relative !important;
    z-index: 1 !important;
}

html .tour-card-v3 .tc-product-count-text:hover {
    background: transparent !important;
}

html .tour-card-v3 .tc-product-count-text::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #d0bd95, #b59a57);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.85);
}

html .tour-card-v3 .tc-product-count-text:hover::before {
    opacity: 1;
    transform: scale(1);
}

html .tour-card-v3 .tc-title {
    font-weight: 500 !important;
}

html .tour-card-v3 .tc-subtitle {
    font-weight: 400 !important;
}

html .tour-card-v3 .tc-subtitle-wrapper {
    display: none !important;
}

html .tour-card-v3 .tc-location .material-symbols-outlined {
    display: none !important;
}

html .tour-card-v3 .tc-link-icon {
    transition: color 0.3s ease !important;
}

html .tour-card-v3:hover .tc-link-icon {
    color: #d0bd95 !important;
}

.footer-v2-col h4 {
    color: #d0bd95 !important;
}

html .tour-card-v3 .tc-location {
    margin-top: 0px !important;
}

/* =========================================
   PROMO BANNER V2 & FEATURES V2 REDESIGN (Light Minimalist)
   ========================================= */

.promo-banner-v2 {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04) !important;
    border-radius: 24px !important;
    padding: 50px 60px !important;
    margin-bottom: 60px !important;
}

.promo-banner-v2 h3 {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    margin-bottom: 24px !important;
    line-height: 1.3 !important;
}

.promo-list li {
    color: #475569 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

.promo-list li .material-symbols-outlined {
    color: #d0bd95 !important;
}

.promo-banner-v2 .hero-v2-btn {
    background: linear-gradient(135deg, #d0bd95, #b59a57) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    box-shadow: 0 8px 20px rgba(208, 189, 149, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-top: 10px !important;
}

.promo-banner-v2 .hero-v2-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 30px rgba(208, 189, 149, 0.6) !important;
}

.promo-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-image span {
    font-size: 180px !important;
    background: linear-gradient(135deg, #d0bd95, #b59a57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9 !important;
    filter: drop-shadow(0 15px 25px rgba(208, 189, 149, 0.2));
}

/* Features V2 Redesign */
.features-v2 { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    padding: 0 0 60px 0 !important; 
    margin-top: 0 !important;
}

.feature-v2-item { 
    background: rgba(255, 255, 255, 0.8) !important; 
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 20px !important; 
    border: 1px solid rgba(255, 255, 255, 1) !important; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    padding: 24px !important;
    align-items: center !important;
}

.feature-v2-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(208, 189, 149, 0.3) !important;
}

.feature-v2-item:first-child {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    justify-content: center !important;
}

.feature-v2-item:first-child:hover {
    transform: none !important;
    box-shadow: none !important;
}

.feature-v2-item:first-child h3 {
    font-size: 22px !important;
    color: #64748b !important;
}

.feature-v2-item:first-child p {
    font-size: 26px !important;
    background: linear-gradient(135deg, #d0bd95, #b59a57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-v2-icon {
    background: linear-gradient(135deg, #d0bd95, #b59a57) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 20px rgba(208, 189, 149, 0.3) !important;
    border-radius: 14px !important;
    width: 56px !important;
    height: 56px !important;
    flex-shrink: 0 !important;
}

.feature-v2-icon span {
    font-size: 28px !important;
}

.feature-v2-text h4 {
    color: #0f172a !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 6px !important;
}

.feature-v2-text p {
    color: #475569 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .promo-banner-v2 {
        padding: 30px 20px !important;
    }
    .promo-image span {
        font-size: 120px !important;
    }
}

/* =========================================
   LANDING PAGE: ECOSYSTEM & CTA FULL WIDTH
   ========================================= */

.landing-ecosystem {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: linear-gradient(180deg, #ffffff 0%, #f4f4f5 100%);
    padding: 100px 24px;
    text-align: center;
    position: relative;
}

.ecosystem-container {
    max-width: 1200px;
    margin: 0 auto;
}

.ecosystem-header h2 {
    font-size: 40px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.ecosystem-header h2 span {
    color: #d0bd95;
}

.ecosystem-header p {
    font-size: 18px;
    color: #64748b;
    line-height: 1.8;
    max-width: 960px;
    margin: 0 auto 60px;
}

.ecosystem-header p b {
    color: #0f172a;
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    text-align: left;
}

.ecosystem-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(208, 189, 149, 0.3);
}

.ecosystem-card .icon {
    font-size: 48px;
    background: linear-gradient(135deg, #d0bd95, #b59a57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.ecosystem-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: #0f172a;
}

.ecosystem-card p {
    color: #475569;
    line-height: 1.7;
    font-size: 16px;
}

.landing-cta-section {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background: #0f172a;
    padding: 120px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: -60px; /* Counter act home-body-v2 padding-bottom */
}

.cta-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(208,189,149,0.15) 0%, rgba(15,23,42,0) 70%);
    pointer-events: none;
    z-index: 1;
}

.cta-container {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-container h2 {
    font-size: 48px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.cta-container p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 48px;
    line-height: 1.6;
}

.cta-glow-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #d0bd95, #b59a57);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 18px 48px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(208, 189, 149, 0.3);
    transition: all 0.3s ease;
}

.cta-glow-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 40px rgba(208, 189, 149, 0.5);
}

@media (max-width: 768px) {
    .ecosystem-header h2, .cta-container h2 {
        font-size: 32px;
    }
    .landing-ecosystem {
        padding: 60px 20px;
    }
    .landing-cta-section {
        padding: 80px 20px;
    }
    .cta-glow-btn {
        padding: 16px 32px;
        font-size: 16px;
    }
}

/* FIX CTA TEXT COLOR */
.landing-cta-section {
    background: linear-gradient(135deg, #080c14 0%, #1e293b 100%) !important;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.cta-container h2 {
    color: #ffffff !important;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.cta-container p {
    color: rgba(255, 255, 255, 0.8) !important;
}
.cta-bg-glow {
    background: radial-gradient(circle, rgba(208,189,149,0.2) 0%, rgba(15,23,42,0) 60%) !important;
    width: 1000px !important;
    height: 1000px !important;
}

/* Premium CTA Texture & Details */
.landing-cta-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
}
.landing-cta-section::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(208, 189, 149, 0.5), transparent);
    z-index: 1;
}

/* =========================================
   LIGHT THEME OVERRIDE FOR CTA
   ========================================= */
.landing-cta-section {
    background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%) !important;
    border-top: 1px solid rgba(208, 189, 149, 0.2);
}

.landing-cta-section::before {
    background-image: linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px) !important;
    opacity: 0.8 !important;
}

.landing-cta-section::after {
    background: linear-gradient(90deg, transparent, rgba(208, 189, 149, 0.3), transparent) !important;
}

.cta-container h2 {
    color: #0f172a !important;
    text-shadow: none !important;
}

.cta-container p {
    color: #475569 !important;
}

.cta-bg-glow {
    background: radial-gradient(circle, rgba(208,189,149,0.15) 0%, rgba(255,255,255,0) 60%) !important;
}

/* =========================================
   HERO & FEATURES LAYOUT OPTIMIZATION
   ========================================= */

.hero-v2-left {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 40px !important;
    border-radius: 24px !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.features-v2 {
    padding: 0 !important;
    margin-bottom: 80px !important;
    margin-top: 40px !important;
}

.promo-banner-v2 {
    margin-bottom: 80px !important;
}

@media (max-width: 768px) {
    .hero-v2-left {
        padding: 24px !important;
        border-radius: 16px !important;
    }
    .features-v2 {
        margin-bottom: 40px !important;
    }
    .promo-banner-v2 {
        margin-bottom: 40px !important;
    }
}

/* =========================================
   ECOSYSTEM PADDING OPTIMIZATION
   ========================================= */
.landing-ecosystem {
    padding: 80px 24px !important;
}
@media (max-width: 768px) {
    .landing-ecosystem {
        padding: 40px 20px !important;
    }
}

/* FIX DROPDOWN CLIPPING */
.hero-v2-left {
    overflow: visible !important;
}
.hero-search-widget {
    overflow: visible !important;
}

/* =========================================
   HERO-V2-LEFT FIX (PREVENT CLIPPING)
   ========================================= */
.hero-v2-left {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    position: relative;
    z-index: 10;
}
.hero-v2-left::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    z-index: -1;
}
@media (max-width: 768px) {
    .hero-v2-left::before {
        border-radius: 16px;
    }
}

/* =========================================
   Z-INDEX & MARGIN FIX FOR SEARCH WIDGET
   ========================================= */
.home-hero-wrapper {
    position: relative;
    z-index: 20;
}
.home-body-v2 {
    z-index: 10;
}
.hero-v2-left {
    z-index: 30 !important;
}
.hero-search-widget {
    margin-top: 0 !important;
}

/* =========================================
   DROPDOWN ARROW FIX
   ========================================= */
.hero-search-widget .custom-dropdown-header::after {
    display: none !important;
}
.hero-search-widget .custom-dropdown-header .icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-search-widget .custom-dropdown-wrapper.active .custom-dropdown-header .icon {
    transform: rotate(180deg);
}

/* =========================================
   SEARCH WIDGET SIZING OPTIMIZATION
   ========================================= */
.hero-v2-left {
    align-self: center !important;
}
.hero-search-widget {
    width: 100%;
}
.hsw-filters-row {
    width: 100%;
}
.hero-search-widget .custom-dropdown-wrapper {
    flex: 1;
    min-width: 0;
}
.hero-search-widget .custom-dropdown-header {
    justify-content: space-between;
}
.hero-search-widget .custom-dropdown-header span.truncate {
    flex: 1;
    max-width: none;
}


/* =========================================
   LANDING PAGE ANIMATIONS
   ========================================= */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-group .reveal-on-scroll:nth-child(1) { transition-delay: 0.1s; }
.reveal-group .reveal-on-scroll:nth-child(2) { transition-delay: 0.2s; }
.reveal-group .reveal-on-scroll:nth-child(3) { transition-delay: 0.3s; }
.reveal-group .reveal-on-scroll:nth-child(4) { transition-delay: 0.4s; }




/* =========================================
   COMPREHENSIVE MASTER MOBILE PATCH (FINAL V6)
   ========================================= */

@media (max-width: 992px) {
    /* 1. TYPOGRAPHY STANDARDIZATION (Landscape) */
    .hero-v2-title { font-size: 36px !important; }
    .ecosystem-header h2, .cta-container h2 { font-size: 28px !important; }
    .tour-card-title, .promo-content h3 { font-size: 18px !important; }
    
    /* 2. HEADER LOGO ICON ONLY */
    .header-logo-text { font-size: 0 !important; }
    .header-logo-text .icon { font-size: 32px !important; margin: 0 !important; }
    .header-logo-text::after { content: ''; }

    /* 3. LANDSCAPE OVERLAP FIX */
    .home-toolbar-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 0 24px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .home-toolbar-grid::before { display: none !important; }
    

    /* 4. CATEGORY TABS - CENTERED & CONSTRAINED */
    .category-tabs-v2 {
        display: inline-flex !important; /* inline-flex shrinks to content unlike flex */
        width: fit-content !important;
        max-width: calc(100vw - 40px) !important; /* viewport minus safe-area */
        min-width: 0 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 4px !important;
        box-sizing: border-box !important;
        margin: 0 auto !important; /* CENTER horizontally */
        gap: 4px !important;
        height: 44px !important;
        background: rgba(0,0,0,0.05) !important;
        border-radius: 999px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    .category-tabs-v2::-webkit-scrollbar { display: none !important; }
    .cat-tab-btn {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        display: inline-flex !important;
    }
    .cat-tab-slider-bg {
        top: 4px !important;
        left: 4px !important;
        height: calc(100% - 8px) !important;
    }

    /* 5. CENTER TOUR GRID */
    .tour-grid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        justify-items: center !important;
    }
}

@media (max-width: 768px) {
    /* 6. TYPOGRAPHY STANDARDIZATION (Portrait) */
    .hero-v2-title { font-size: 28px !important; line-height: 1.3 !important; }
    .hero-v2-desc { font-size: 14px !important; }
    .ecosystem-header h2, .cta-container h2 { font-size: 24px !important; }
    .section-header-v2 h2 { font-size: 18px !important; margin-bottom: 0 !important; }
    .section-title-v2 { margin-bottom: 0 !important; }
    .section-title-v2 p { display: none !important; }
    .section-header-v2 { align-items: center !important; }
    .tour-card-title, .promo-content h3 { font-size: 16px !important; }
    .hero-search-widget .custom-option, .custom-dropdown-header span { font-size: 13px !important; }

    /* 7. SECTION HEADER PADDING */
    .section-header-v2 {
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    /* 8. HEADER LOGO COMPACT & SCROLLABLE NAV */
    .header-logo-text { font-size: 0 !important; letter-spacing: 0 !important; gap: 4px !important; }
    .header-logo-text .icon { font-size: 20px !important; }
    .main-nav-v2 { 
        gap: 12px !important; 
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        padding-bottom: 4px !important;
    }
    .main-nav-v2::-webkit-scrollbar { display: none !important; }
    .main-nav-v2 .nav-item { 
        font-size: 13px !important; 
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    /* 9. HERO REGION ALIGNMENT */
    .hero-v2 { padding-top: 110px !important; padding-bottom: 40px !important; }
    .hero-v2-grid { align-items: center !important; }
    .hero-v2-left {
        text-align: center !important;
        align-items: center !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 16px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* 10. HERO SEARCH WIDGET DEEP CLEANUP */
    .hero-search-widget {
        width: 100% !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Keep Input and Search Button on one row */
    .hsw-input-row {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        align-items: stretch !important;
    }
    .hero-search-widget { position: relative !important; }
    .hero-search-widget input[type="text"] {
        flex: 1 !important;
        width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        padding-right: 44px !important;
    }
    .hsw-submit-btn { display: none !important; }

    /* Use CSS Grid for Filters 2x2 */
    .hsw-filters-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
    }
    .search-divider-sm { display: none !important; }
    .hero-search-widget .custom-dropdown-wrapper {
        margin: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
    }
    
    /* Absolute Reset Button */
    .hsw-reset-btn {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 36px !important;
        height: 36px !important;
        margin: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        border-radius: 8px !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    .hsw-reset-btn:active { background: rgba(0,0,0,0.05) !important; }
}

    /* Fix Webkit ignoring left padding in scroll container - only when scrolling */
    @media (max-width: 480px) {
        .category-tabs-v2 .cat-tab-btn:first-of-type {
            margin-left: 0 !important;
        }
        
        .home-pagination-label {
            display: none !important;
        }
    }
