/* =========================================
   FRESH MODERN HERO - FULL UPDATED VERSION
   ========================================= */

/* --- 1. Base Desktop Styles (Dark Mode) --- */
.detail-info-loc-hero-fresh {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f172a;
}

/* Background Image with Parallax */
.detail-info-loc-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

/* Layered Overlays for Text Legibility */
.detail-info-loc-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(15, 23, 42, 0.7) 40%, 
        rgba(15, 23, 42, 0.2) 100%);
    z-index: 2;
}

/* Container & Inner Content */
.detail-info-loc-hero-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 120px 24px 80px;
}

.detail-info-loc-hero-inner {
    max-width: 800px;
}

/* Tag / Badge with Pulse Effect */
.detail-info-loc-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(179, 80, 220, 0.15);
    border: 1px solid rgba(179, 80, 220, 0.3);
    color: #d4a5ec;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.pulse-dot {
    height: 8px;
    width: 8px;
    background: #b350dc;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(179, 80, 220, 0.4);
    animation: pulse 2s infinite;
}

/* Typography & Gradients */
.detail-info-loc-hero-inner h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #ffffff;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.text-gradient {
    background: linear-gradient(to right, #b350dc, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.detail-info-loc-hero-inner p {
    font-size: 1.1rem;
    color: #cbd5e1;
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 35px;
}

/* Stats Styling */
.detail-info-loc-hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    color: #ffffff;
}

.stat-item span {
    font-size: 13px;
    color: #94a3b8;
}

.stat-sep {
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.detail-info-loc-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.detail-info-loc-btn-primary {
    background: #b350dc;
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(179, 80, 220, 0.3);
}

.detail-info-loc-btn-primary:hover {
    background: #9d39c5;
    transform: translateY(-2px);
}

.detail-info-loc-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

/* --- 2. Animations --- */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(179, 80, 220, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(179, 80, 220, 0); }
    100% { box-shadow: 0 0 0 0 rgba(179, 80, 220, 0); }
}

/* --- 3. MOBILE RESPONSIVE (TRANSFORMED) --- */
@media (max-width: 768px) {
    .detail-info-loc-hero-fresh {
        display: block; 
        min-height: auto;
        background: #ffffff; 
    }

    /* Background Image fixed at top */
    .detail-info-loc-hero-bg {
        position: relative;
        height: 320px; 
        background-attachment: scroll !important; 
        z-index: 1;
        margin-top: 50px;
    }

    /* Bottom-faded transition from image to content */
    .detail-info-loc-hero-overlay {
        background: linear-gradient(to bottom, 
            rgba(15, 23, 42, 0.2) 0%, 
            rgba(15, 23, 42, 0.5) 60%, 
            #ffffff 100%); 
        height: 320px; 
        z-index: 2;
        margin-top: 50px;
    }

    /* Content Card shifted up slightly to meet the fade */
    .detail-info-loc-hero-container {
        padding: 40px 20px 60px; 
        margin-top: -50px; 
        background: #ffffff;
        box-shadow: 0 -20px 40px rgba(0,0,0,0.08);
    }

    .detail-info-loc-hero-inner {
        text-align: center;
        max-width: 100%;
    }

    /* Switch text colors to Dark for Light Mode Mobile */
    .detail-info-loc-hero-inner h1 {
        color: #0f172a; 
        font-size: 1.85rem;
        margin-bottom: 15px;
        line-height: 1.2;
    }

    .detail-info-loc-hero-inner p {
        color: #475569;
        font-size: 1rem;
        margin-bottom: 25px;
    }

    /* Adjust Badge for Light Mode */
    .detail-info-loc-tag {
        margin: 0 auto 15px;
        background: #f3e8ff;
        color: #b350dc;
        border: 1px solid rgba(179, 80, 220, 0.2);
    }

    /* Stats Mobile Styling */
    .detail-info-loc-hero-stats {
        justify-content: center;
        gap: 20px;
        background: #f8fafc;
        padding: 18px;
        border-radius: 20px;
        margin-bottom: 30px;
        border: 1px solid #f1f5f9;
    }

    .stat-item strong {
        color: #0f172a;
        font-size: 1.5rem;
    }

    .stat-item span {
        color: #64748b;
    }

    .stat-sep {
        background: #e2e8f0;
    }

    /* Button Layout Mobile */
    .detail-info-loc-hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .detail-info-loc-btn-primary {
        width: 100%;
        padding: 18px;
        font-size: 1.05rem;
        justify-content: center;
        display: flex;
        align-items: center;
    }

    .detail-info-loc-btn-secondary {
        width: 100%;
        background: #f1f5f9;
        border: 1px solid #e2e8f0;
        color: #0f172a;
        padding: 18px;
        backdrop-filter: none;
        box-shadow: none;
    }
}
/* =========================================
   2. MAIN CONTAINER & TEXT
   ========================================= */
.detail-info-loc-container {
    max-width: 1350px;
    margin: 0 auto;
    padding: 60px 24px;
}

.detail-info-loc-intro-section {
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 40px;
}

.detail-info-loc-intro-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 6px;
    background: #b350dc;
    border-radius: 10px;
}

.detail-info-loc-label {
    color: #b350dc;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 4px;
    margin-bottom: 15px;
    display: block;
}

.detail-info-loc-intro-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.detail-info-loc-intro-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
    text-align: justify;
}

/* =========================================
   3. GRID SYSTEM & CARD CONTENT
   ========================================= */
.detail-info-loc-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0 40px;
    scrollbar-width: none;
}

.detail-info-loc-grid::-webkit-scrollbar { display: none; }

.detail-info-loc-grid-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 30px; 
    border: 1px solid rgba(179, 80, 220, 0.1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    flex: 0 0 85%;
    scroll-snap-align: start;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

/* --- Icon & Title in Same Line --- */
.detail-info-loc-card-header {
    display: flex;
    align-items: center; /* Vertically centers icon and title */
    gap: 15px;           /* Space between icon and text */
    margin-bottom: 20px;
}

.detail-info-loc-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #fdf4ff 0%, #fae8ff 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;      /* Prevents icon from shrinking */
}

.detail-info-loc-icon-wrapper i {
    font-size: 1.4rem;
    color: #b350dc;
}

.detail-info-loc-grid-box h3 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;           /* Removes default h3 margin to keep alignment perfect */
    line-height: 1.2;
}

/* --- Desktop Adjustments --- */
@media (min-width: 992px) {
    .detail-info-loc-grid {
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: 30px;
        overflow: visible;
    }
    .detail-info-loc-grid-box {
        flex: none;
        padding: 40px;
    }
    /* Asymmetric Layout */
    .detail-info-loc-grid-box:nth-child(1),
    .detail-info-loc-grid-box:nth-child(4) { grid-column: span 7; }
    .detail-info-loc-grid-box:nth-child(2),
    .detail-info-loc-grid-box:nth-child(3) { grid-column: span 5; }

    .detail-info-loc-icon-wrapper { width: 60px; height: 60px; }
    .detail-info-loc-icon-wrapper i { font-size: 1.6rem; }
    .detail-info-loc-grid-box h3 { font-size: 1.5rem; }
}

/* =========================================
   4. DYNAMIC PLACES (5 COLUMNS & PILLS)
   ========================================= */
.dynamic-places-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 25px;
}

.place-link-pill {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s ease;
    font-size: 0.85rem;
}

.place-link-pill i { color: #b350dc; font-size: 0.75rem; }
.place-link-pill:hover {
    border-color: #b350dc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(179, 80, 220, 0.1);
}

/* Truncation Display */
.name-mobile { display: none; }
.name-desktop { display: inline; }

/* Toggle Button */
#togglePlacesBtn {
    padding: 12px 30px;
    background: #fff;
    border: 2px solid #b350dc;
    color: #b350dc;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

#togglePlacesBtn:hover { background: #b350dc; color: #fff; }

/* =========================================
   5. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .detail-info-loc-grid-box { grid-column: span 12 !important; }
}

@media (max-width: 768px) {
    .detail-info-loc-container { padding: 40px 20px; }
    .detail-info-loc-hero-section { min-height: 60vh; padding: 120px 20px 60px; }
    .detail-info-loc-btn { width: 100%; justify-content: center; }
    
    /* Mobile Truncation & Pills */
    .name-desktop { display: none; }
    .name-mobile { display: inline; }
    
    .dynamic-places-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .place-link-pill {
        flex: 0 1 auto;
        padding: 8px 15px;
        border-radius: 50px;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}