/* =========================================
   SAAS FRONT PAGE - Local Discovery
   Design: Airbnb / Booking / Justdial Inspired
   Tokens: Bare Core CSS Guide v2.0
   ========================================= */

.material-symbols-rounded {
    font-weight: 100;
}

/* 1. WRAPPER & UTILS */
.me-fp-wrapper {
    font-family: var(--bare-font-family);
    color: var(--bare-text-dark);
    background: var(--bare-bg-gray);
    overflow-x: hidden;
}

.me-fp-wrapper *,
.me-fp-wrapper *::before,
.me-fp-wrapper *::after {
    box-sizing: border-box;
}

.me-fp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--bare-space-4);
}

.me-fp-section {
    padding: var(--bare-space-8) 0;
}

@media screen and (max-width: 768px) {
    .me-fp-section {
        padding: 0;
    }
}

/* 2. HERO SECTION */
.me-fp-hero {
    position: relative;
    min-height: 500px;
    /* SaaS standard height */
    padding: 80px 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bare-text-white);
}

.me-fp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.me-fp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgb(17 24 39 / .8) 0%, rgb(17 24 39 / .6) 50%, rgb(17 24 39 / .8) 100%);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.me-fp-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 800px;
    padding: 0 var(--bare-space-4);
}

.me-fp-hero__title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--bare-space-6);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: #FFFFFF;
}

.text-highlight {
    color: var(--bare-primary);
}

/* SEARCH & CHIPS 
.me-fp-search-container {
    background: rgba(255, 255, 255, 0.95);
    padding: var(--bare-space-4);
    border-radius: var(--bare-radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}*/
.me-fp-search-widget {
    background: rgb(255 255 255 / .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / .2);
    border-radius: 50px;
    padding: 8px;
}

/* Default: Hide Mobile Trigger */
.me-fp-mobile-search-trigger {
    display: none;
}

@media (max-width: 768px) {
    .me-fp-search-widget {
        display: none;
    }

    .me-fp-mobile-search-trigger {
        display: block;
        width: 100%;
    }
}

.me-fp-chips-scroll {
    display: flex;
    gap: var(--bare-space-2);
    overflow-x: auto;
    padding-bottom: var(--bare-space-2);
    margin-top: var(--bare-space-4);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    justify-content: center;
    /* Firefox */
}

@media (max-width: 768px) {
    .me-fp-chips-scroll {
        justify-content: flex-start;
    }
}

.me-fp-chips-scroll::-webkit-scrollbar {
    display: none;
}

.me-fp-chip {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bare-bg-white);
    border: 1px solid var(--bare-border-color, #e5e7eb);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--bare-text-dark);
    text-decoration: none;
    scroll-snap-align: start;
    transition: all 0.2s;
    background: rgb(255 255 255 / .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgb(255 255 255 / .2);
    color: #FFFFFF;
}

.me-fp-chip:hover {
    background: var(--bare-primary);
    color: var(--bare-text-white);
}

/* 3. EXPERIENCES (Airbnb Style) */
.me-fp-experiences {
    background: var(--bare-bg-white);
}

.me-fp-header {
    margin-bottom: var(--bare-space-6);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

@media screen and (max-width: 768px) {
    .me-fp-header {
        margin-bottom: var(--bare-space-6);
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        flex-direction: column;
    }
}

.me-fp-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.me-fp-subtitle {
    font-size: 16px;
    color: var(--bare-text-light);
    margin: 4px 0 0;
}

.me-fp-link {
    color: var(--bare-primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.me-fp-exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--bare-space-4);
}

.me-fp-exp-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--bare-space-4);
    background: var(--bare-bg-gray);
    border-radius: var(--bare-radius-md);
    text-decoration: none;
    color: var(--bare-text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.me-fp-exp-card:hover {
    background: var(--bare-bg-white);
    box-shadow: var(--bare-shadow-md);
    transform: translateY(-4px);
}

.exp-icon-box {
    width: 48px;
    height: 48px;
    background: var(--bare-primary-light);
    color: var(--bare-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--bare-space-2);
}

.me-fp-exp-card:hover .exp-icon-box {
    background: var(--bare-primary);
    color: var(--bare-text-white);
}

.exp-label {
    font-weight: 600;
    font-size: 14px;
}

/* 4. TRENDING (Asymmetric Grid - Booking Style) */
.me-fp-trending-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Mobile first */
    gap: var(--bare-space-4);
}

.me-fp-trend-card {
    background: var(--bare-bg-white);
    border-radius: var(--bare-radius-md);
    overflow: hidden;
    box-shadow: var(--bare-shadow-sm);
    text-decoration: none;
    color: var(--bare-text-dark);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.me-fp-trend-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bare-shadow-md);
}

.trend-visual {
    position: relative;
    height: 180px;
    background: var(--bare-bg-gray);
}

.trend-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trend-score {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--bare-bg-white);
    padding: 4px 8px;
    border-radius: var(--bare-radius-sm);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: var(--bare-shadow-sm);
}

.trend-score .material-symbols-rounded {
    font-size: 14px;
    color: var(--bare-accent);
}

.trend-info {
    padding: var(--bare-space-4);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.trend-cat {
    font-size: 12px;
    color: var(--bare-text-light);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
}

.trend-name {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.trend-meta {
    font-size: 13px;
    color: var(--bare-text-light);
    margin-top: auto;
}

.trend-cta {
    margin-top: 12px;
    background: var(--bare-primary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--bare-radius-sm);
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}

.me-fp-standard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: var(--bare-space-4);
}

@media (max-width: 768px) {
    .me-fp-standard-grid {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: minmax(160px, 45vw);
        /* ~2 columns visible */
        grid-template-columns: none;
        /* Reset desktop template */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: var(--bare-space-4);
        justify-content: start;
        gap: var(--bare-space-4);
    }

    .me-fp-standard-grid>* {
        scroll-snap-align: start;
        width: 100%;
        /* Fill the column width */
        max-width: none;
        /* Remove constraint */
    }
}

/* DESKTOP GRID (1 Large + 4 Medium + 2 Small) */
@media (min-width: 900px) {
    .me-fp-trending-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(2, auto);
        /* 
           L L M M
           L L M M
           S S S S (if needed)
        */
    }

    /* First item: Large (2x2) */
    .me-fp-trend-large {
        grid-column: span 2;
        grid-row: span 2;
    }

    .me-fp-trend-large .trend-visual {
        height: 60%;
        /* Taller image */
    }

    .me-fp-trend-large .trend-name {
        font-size: 24px;
    }

    /* Next 4 items: Medium (1x1) */
    .me-fp-trend-medium {
        grid-column: span 1;
        grid-row: span 1;
    }

    /* Last 2 items: Small (Span 2 if we want, or keep 1x1) */
    .me-fp-trend-small {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/* 5. HUBS (Justdial Style) */
.me-fp-hubs {
    background: var(--bare-bg-white);
}

.me-fp-hubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--bare-space-4);
}

.me-fp-hub-block {
    background: var(--bare-bg-gray);
    padding: var(--bare-space-4);
    border-radius: var(--bare-radius-md);
    border: 1px solid transparent;
    transition: border 0.3s;
}

/* 6. EXPLORE CATEGORIES */
.me-fp-explore-grid {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--bare-space-6);
}

@media (min-width: 768px) {
    .me-fp-explore-grid {
        display: grid;
    }
}

.me-fp-explore-card {
    padding: var(--bare-space-6);
    background: var(--bare-bg-white);
    border-radius: var(--bare-radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
}

.me-fp-explore-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--bare-shadow-md);
}

.me-fp-cat-header {
    display: flex;
    align-items: flex-start;
    gap: var(--bare-space-4);
    margin-bottom: var(--bare-space-4);
}

.me-fp-cat-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: var(--bare-radius-md);
    background-color: var(--bare-primary-light);
    color: var(--bare-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.me-fp-cat-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
    color: var(--bare-text-dark);
}

.me-fp-cat-count {
    font-size: 0.75rem;
    color: var(--bare-text-light);
    display: block;
}

.me-fp-cat-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.me-fp-cat-list a {
    font-size: 0.875rem;
    color: var(--bare-text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.me-fp-cat-list a:hover {
    color: var(--bare-primary);
    transform: translateX(2px);
    display: inline-block;
}

.me-fp-cat-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--bare-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

/* Mobile Accordion */
.me-fp-explore-mobile {
    display: block;
}

@media (min-width: 768px) {
    .me-fp-explore-mobile {
        display: none;
    }
}

.me-fp-details {
    background-color: var(--bare-bg-white);
    border: 1px solid var(--bare-border-color);
    border-radius: var(--bare-radius-md);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.me-fp-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    cursor: pointer;
    list-style: none;
}

.me-fp-summary::-webkit-details-marker {
    display: none;
}

.me-fp-details-content {
    padding: 1rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--bare-border-color);
    background-color: rgba(248, 250, 252, 0.5);
}

.me-fp-mobile-list li a {
    display: flex;
    align-items: center;
}

.me-fp-dot {
    width: 0.375rem;
    height: 0.375rem;
    border-radius: 50%;
    background-color: #d1d5db;
    margin-right: 0.5rem;
}

.hub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.hub-icon {
    font-size: 24px;
    color: var(--bare-secondary);
}

.hub-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.hub-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hub-links li {
    margin-bottom: 8px;
}

.hub-links a {
    text-decoration: none;
    color: var(--bare-text-light);
    font-size: 14px;
    transition: color 0.2s;
    display: block;
}

.hub-links a:hover {
    color: var(--bare-primary);
    transform: translateX(4px);
}

.hub-more {
    font-weight: 600;
    color: var(--bare-secondary) !important;
}


/* 6. EDITORIAL */
.me-fp-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--bare-space-4);
}

.editorial-card {
    position: relative;
    height: 300px;
    border-radius: var(--bare-radius-lg);
    overflow: hidden;
    color: var(--bare-text-dark);
}

.editorial-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    transition: transform 0.5s;
}

.editorial-card:hover .editorial-bg {
    transform: scale(1.05);
}

.editorial-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: var(--bare-space-6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

.editorial-tag {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.editorial-card h3 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 16px 0;
}

.editorial-link {
    font-weight: 700;
    text-decoration: underline;
    color: var(--bare-text-dark);
}

/* 7. STATS (Social Proof) */
.me-fp-stats {
    background: var(--bare-text-dark);
    padding: var(--bare-space-8) 0;
    color: var(--bare-text-white);
}

.stats-flex {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--bare-space-6);
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 48px;
    font-weight: 900;
    color: var(--bare-secondary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.stat-value.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-separator {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    display: none;
}

@media (min-width: 768px) {
    .stat-separator {
        display: block;
    }
}