/* General Styles */
html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Prompt', sans-serif;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
    padding-bottom: 100px;
    scroll-behavior: smooth;
}

/* Dynamic Background */
.dynamic-bg {
    background: url('./img/BG.jpg') center/cover no-repeat;
    min-height: 100vh;
    position: relative;
}

.dynamic-bg::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(45deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));*/
    z-index: -1;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    color: #333333;
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Loading Logo */
.loading-logo {
    max-width: 250px;
    height: auto;
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}

/* Loading Text */
.loading-text {
    font-size: 18px;
    font-weight: 500;
    color: #333333;
    margin-top: 20px;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Mobile Loading Screen */
@media (max-width: 768px) {
    .loading-logo {
        max-width: 200px;
        margin-bottom: 25px;
    }
    
    .loading-text {
        font-size: 16px;
        margin-top: 15px;
    }
}

/* Desktop Loading Screen */
@media (min-width: 769px) {
    .loading-logo {
        max-width: 300px;
        margin-bottom: 35px;
    }
    
    .loading-text {
        font-size: 20px;
        margin-top: 25px;
    }
}

.loading-screen .spinner-border {
    display: none;
}

/* Badge Styles */
.badge.bg-danger {
    /*background: linear-gradient(135deg, #ff4757 0%, #ff3838 100%) !important;*/
    color: white !important;
    font-weight: 600;
    font-size: 0.75em;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Enhanced Blink Animation */
.blink {
    animation: enhancedBlink 2s ease-in-out infinite;
}

@keyframes enhancedBlink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3);
    }
    25% {
        opacity: 0.7;
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 6px 20px rgba(255, 71, 87, 0.8);
        /*background: linear-gradient(135deg, #ff6b7a 0%, #ff4757 100%) !important;*/
    }
    75% {
        opacity: 0.8;
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
    }
}

/* Mobile Badge */
@media (max-width: 768px) {
    .badge.bg-danger {
        font-size: 0.8em;
        padding: 0.6em 1em;
        font-weight: 700;
    }
}

/* Desktop Badge */
@media (min-width: 769px) {
    .badge.bg-danger {
        font-size: 0.75em;
        padding: 0.5em 0.9em;
    }
    
    .badge.bg-danger:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 15px rgba(255, 71, 87, 0.5);
        transition: all 0.3s ease;
    }
}

/* App Wrapper for Desktop */
.app-wrapper {
    min-height: 100vh;
    padding: 20px 0;
}

/* Mobile-First Design */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* เพิ่มขนาดฟอนต์สำหรับมือถือ */
        padding-bottom: 120px;
        background: url('./img/BG.jpg') center/cover no-repeat fixed;
    }
    
    .dynamic-bg::before {
        background: rgba(0, 0, 0, 0.1);
    }
    
    .app-wrapper {
        display: none !important;
    }
}

/* Desktop Web App Design - Enhanced */
@media (min-width: 769px) {
    body {
        font-size: 15px;
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        min-height: 100vh;
        font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
        overflow-x: hidden;
    }
    
    .dynamic-bg {
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        position: relative;
    }
    
    /* Animated Background Particles */
    .dynamic-bg::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
        z-index: 1;
        pointer-events: none;
        animation: floatingParticles 20s ease-in-out infinite;
    }
    
    @keyframes floatingParticles {
        0%, 100% { transform: translateY(0px) rotate(0deg); }
        33% { transform: translateY(-10px) rotate(1deg); }
        66% { transform: translateY(5px) rotate(-1deg); }
    }
    
    .app-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 40px;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 30px;
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(255, 255, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        margin-top: 30px;
        margin-bottom: 30px;
        border: 2px solid rgba(255, 255, 255, 0.1);
        position: relative;
        z-index: 10;
        transform: translateY(0);
        transition: all 0.3s ease;
    }
    
    .app-container:hover {
        transform: translateY(-5px);
        box-shadow: 
            0 40px 80px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(255, 255, 255, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* Header - Mobile First */
.header {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* Mobile Header */
@media (max-width: 768px) {
    .header {
        padding: 20px 0;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
    }
}

/* Desktop Header - Web App Style */
@media (min-width: 769px) {
    .header {
        padding: 30px 0;
        /*background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);*/
        color: #333;
        border: none;
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .header-logo {
        max-width: 220px;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
        transition: transform 0.3s ease;
    }
    
    .header-logo:hover {
        transform: scale(1.05);
    }
    
    .header .lang-btn {
        background: rgba(102, 126, 234, 0.1);
        /*color: #667eea;*/
        border: 2px solid rgba(102, 126, 234, 0.2);
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    }
    
    .header .lang-btn:hover {
        /*background: #667eea;*/
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    }
}

.header-logo {
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

/* Main Content - Mobile First */
.main-content {
    flex: 1;
    /* margin-top: 80px; */
    margin-bottom: 20px;
    padding: 15px;
}

/* Mobile Main Content */
@media (max-width: 768px) {
    .main-content {
        /* margin-top: 90px; */
        padding: 20px 15px;
        background: transparent;
    }
}

/* Desktop Main Content - Web App Style */
@media (min-width: 769px) {
    .main-content {
        margin-top: 120px;
        padding: 40px 30px;
        background: transparent;
    }
}

/* Container Styles */
.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Mobile Container */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        /*margin: 0 10px;*/
        border-radius: 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        background-color: #ffffff;
        color: #333333;
    }
}

/* Desktop Container - Web App Style */
@media (min-width: 769px) {
    .container {
        max-width: 1200px;
        padding: 50px;
        border-radius: 25px;
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.08),
            0 0 0 1px rgba(0, 0, 0, 0.02);
        background: #ffffff;
        color: #333333;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(0, 0, 0, 0.03);
        position: relative;
        overflow: hidden;
    }
    
    /* Subtle gradient overlay */
    .container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        /*background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);*/
        border-radius: 25px 25px 0 0;
    }
    
    /* Section headers enhancement */
    .container .section h5 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 25px;
        /* padding: 20px 0; */
        border-bottom: 2px solid #f8f9fa;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .container .section h5:hover {
        /*color: #667eea;*/
        /*border-bottom-color: #667eea;*/
    }
    
    .container .section h5::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        /*background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);*/
        transition: width 0.3s ease;
    }
    
    .container .section:hover h5::after {
        width: 100px;
    }
}

.section {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333333;
}

/* Desktop only */
@media (min-width: 769px) {
    .section {
        /* max-height: 60px; */
    }
    
    .section.expanded {
        max-height: fit-content;
    }
    
    .section.expanded .section-content {
        max-height: fit-content !important;
    }
}

.section.expanded {
    max-height: none;
}

.section-content {
    opacity: 0;
    transition: opacity 0.4s ease;
    color: #333333;
}

.section.expanded .section-content {
    opacity: 1;
}

.section h5 {
    color: #333333;
}

.section-content, .card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: #333333;
}

.card-content p {
    color: #333333;
    font-size: 10px;
}

.card-content a {
    color: #007bff;
    font-size: 10px;
}

.card-content a:hover {
    color: #0056b3;
}

.section.expanded .section-content {
    max-height: none !important;
}

.card.expanded .card-content {
    max-height: 3000px;
}

@media (min-width: 769px) {
    .card.expanded .card-content {
        max-height: none;
        overflow: visible;
    }
}

/* EVEANDBOY Special Section Styling */
.section.eveandboy-section .section-content {
    background: transparent;
    padding: 0;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.section.eveandboy-section .eveandboy-header {
    width: 100%;
    overflow: hidden;
}

.section.eveandboy-section .eveandboy-header img {
    width: 100%;
    height: auto;
    display: block;
}

.section.eveandboy-section .eveandboy-content-wrapper {
    padding: 30px 20px;
    background: white;
}

.section.eveandboy-section .eveandboy-logo {
    text-align: center;
    margin-bottom: 30px;
}

.section.eveandboy-section .eveandboy-logo img {
    max-width: 280px;
    height: auto;
}

.section.eveandboy-section .eveandboy-footer {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
}

.section.eveandboy-section .eveandboy-footer img {
    width: 100%;
    height: auto;
    display: block;
}

.section.eveandboy-section .eveandboy-branches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.section.eveandboy-section .eveandboy-branch-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section.eveandboy-section .eveandboy-branch-item h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.section.eveandboy-section .eveandboy-branch-item p {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.section.eveandboy-section .eveandboy-branch-item .btn-direction {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.section.eveandboy-section .eveandboy-branch-item .btn-direction:hover {
    background: #555;
}

/* King Power Special Section Styling */
.section.kingpower-section .section-content {
    background: transparent;
    padding: 0;
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.section.kingpower-section .kingpower-header {
    width: 100%;
    overflow: hidden;
}

.section.kingpower-section .kingpower-header img {
    width: 100%;
    height: auto;
    display: block;
}

.section.kingpower-section .kingpower-content-wrapper {
    padding: 30px 20px;
    background: white;
}

.section.kingpower-section .kingpower-logo {
    text-align: center;
    margin-bottom: 30px;
}

.section.kingpower-section .kingpower-logo img {
    max-width: 280px;
    height: auto;
}

.section.kingpower-section .kingpower-footer {
    width: 100%;
    overflow: hidden;
    margin-top: 20px;
}

.section.kingpower-section .kingpower-footer img {
    width: 100%;
    height: auto;
    display: block;
}

.section.kingpower-section .kingpower-branches {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.section.kingpower-section .kingpower-branch-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.section.kingpower-section .kingpower-branch-item h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.section.kingpower-section .kingpower-branch-item p {
    font-size: 11px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.section.kingpower-section .kingpower-branch-item .btn-direction {
    width: 100%;
    padding: 8px;
    font-size: 12px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.section.kingpower-section .kingpower-branch-item .btn-direction:hover {
    background: #555;
}

@media (max-width: 768px) {
    .section.eveandboy-section .eveandboy-branches {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .section.eveandboy-section .eveandboy-logo img {
        max-width: 220px;
    }
    
    .section.eveandboy-section .eveandboy-branch-item {
        padding: 12px;
    }
    
    .section.eveandboy-section .eveandboy-branch-item h6 {
        font-size: 12px;
    }
    
    .section.eveandboy-section .eveandboy-branch-item p {
        font-size: 10px;
    }
    
    .section.eveandboy-section .eveandboy-branch-item .btn-direction {
        padding: 6px;
        font-size: 10px;
    }
    
    .section.kingpower-section .kingpower-branches {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .section.kingpower-section .kingpower-logo img {
        max-width: 220px;
    }
    
    .section.kingpower-section .kingpower-branch-item {
        padding: 12px;
    }
    
    .section.kingpower-section .kingpower-branch-item h6 {
        font-size: 12px;
    }
    
    .section.kingpower-section .kingpower-branch-item p {
        font-size: 10px;
    }
    
    .section.kingpower-section .kingpower-branch-item .btn-direction {
        padding: 6px;
        font-size: 10px;
    }
}

/* Search Results Styles */
#searchResults {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px 20px;
}

/* New Search Result Card Design */
.search-result-card-new {
    background: white;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-result-card-new:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-result-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.search-result-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    background: #000;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    padding: 0 8px;
}

.search-result-branch-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.search-result-image-grid {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f8f9fa;
}

.search-result-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-details {
    padding: 15px 20px;
}

.search-result-location,
.search-result-floor,
.search-result-hours,
.search-result-contact {
    font-size: 13px;
    color: #555;
    margin: 0 0 8px 0;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.search-result-location i,
.search-result-hours i,
.search-result-contact i {
    color: #666;
    margin-top: 2px;
    width: 14px;
    flex-shrink: 0;
}

.search-result-floor {
    color: #666;
    font-size: 12px;
    padding-left: 22px;
}

.search-result-distance {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.search-result-distance .badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.search-result-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid #f0f0f0;
}

.action-btn {
    background: white;
    border: none;
    padding: 14px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:nth-child(1),
.action-btn:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn:hover {
    background: #333;
    transform: scale(1.02);
}

.action-btn i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .search-result-header {
        padding: 12px 15px;
    }
    
    .search-result-number-badge {
        min-width: 24px;
        height: 24px;
        font-size: 13px;
    }
    
    .search-result-branch-name {
        font-size: 15px;
    }
    
    .search-result-image-grid {
        height: 200px;
    }
    
    .search-result-details {
        padding: 12px 15px;
    }
    
    .action-btn {
        padding: 12px 8px;
        font-size: 10px;
    }
}

/* Card Styles - Mobile First */
.card {
    border: none;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 60px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
}

.card.expanded {
    max-height: 1600px;
    transform: translateY(-2px);
}

/* Mobile Cards */
@media (max-width: 768px) {
    .card {
        border-radius: 20px;
        margin-bottom: 25px;
        padding: 25px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
        max-height: 70px;
        background: #ffffff;
        color: #333333;
    }
    
    .card.expanded {
        max-height: 700px;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        background: #ffffff;
        color: #333333;
    }
    
    .card h5 {
        font-size: 18px;
        font-weight: 600;
        color: #333333;
    }
    
    .circle-image {
        width: 100% !important;
        height: auto !important;
        border-radius: 0 !important;
        object-fit: cover;
        margin: 0 0 20px 0;
        border: none;
        box-shadow: none;
    }
}

/* Desktop Cards - Enhanced Web App Style */
@media (min-width: 769px) {
    .card {
        border-radius: 20px;
        padding: 35px;
        background: #ffffff;
        color: #333333;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.06),
            0 0 0 1px rgba(255, 255, 255, 0.05);
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        position: relative;
        overflow: hidden;
    }
    
    .card::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent,
            rgba(102, 126, 234, 0.03),
            transparent
        );
        transition: left 0.5s ease;
    }
    
    .card:hover::before {
        left: 100%;
    }
    
    .card:hover {
        transform: translateY(-8px);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.15);
    }
    
    .card.expanded {
        background: #ffffff;
        color: #333333;
        box-shadow: 
            0 30px 80px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(102, 126, 234, 0.2);
        border: 2px solid rgba(102, 126, 234, 0.1);
        transform: translateY(-5px);
    }
    
    .card h5 {
        color: #2c3e50;
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 20px;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .card .toggle-icon {
        background: linear-gradient(135deg, #495057 0%, #495057 100%);
        color: white;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        margin-left: auto;
        transition: all 0.3s ease;
    }
    
    .card:hover .toggle-icon {
        transform: rotate(180deg) scale(1.1);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }
    
    .circle-image {
        width: auto !important;
        height: auto !important;
        border-radius: 0 !important;
        object-fit: cover;
        margin: 0 auto 30px auto;
        border: none;
        box-shadow: none;
        transition: all 0.3s ease;
        display: block;
    }
    
    .circle-image:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Search Section - Mobile First */
.search-branch-wrapper {
    margin-bottom: 25px;
    padding: 0 10px;
}

.search-branch-box {
    background: white;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.search-branch-input {
    width: 100%;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 15px 20px;
    font-size: 16px;
    background: transparent;
    color: #333;
    font-family: 'Prompt', sans-serif;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.search-branch-input:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.search-branch-btn {
    /*background: linear-gradient(45deg, #667eea, #764ba2);*/
    border: none;
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.search-branch-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Search */
@media (max-width: 768px) {
    .search-branch-box {
        max-width: 95%;
        border-radius: 30px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    }
    
    .search-branch-input {
        font-size: 18px;
        padding: 18px 25px;
    }
    
    .search-branch-btn {
        width: 50px;
        height: 50px;
    }
    
    .btn-nearby {
        padding: 15px 25px !important;
        font-size: 16px !important;
        border-radius: 30px !important;
        min-height: 50px;
    }
}

/* Desktop Search - Enhanced Web App Style */
@media (min-width: 769px) {
    .search-branch-wrapper {
        margin-bottom: 50px;
        padding: 0 20px;
    }
    
    .search-branch-box {
        max-width: 700px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border: 2px solid rgba(255, 255, 255, 0.2);
        box-shadow: 
            0 12px 40px rgba(0, 0, 0, 0.1),
            0 0 0 1px rgba(102, 126, 234, 0.05);
        border-radius: 50px;
        padding: 8px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        cursor: text;
    }
    
    .search-branch-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        /*background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);*/
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 1;
    }
    
    .search-branch-box:hover::before {
        opacity: 1;
    }
    
    .search-branch-box:hover {
        transform: translateY(-2px);
        box-shadow: 
            0 20px 60px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(102, 126, 234, 0.1);
        border-color: rgba(102, 126, 234, 0.2);
    }
    
    .search-branch-input {
        width: 100%;
        font-size: 16px;
        padding: 18px 30px;
        background: transparent;
        font-weight: 500;
        color: #2c3e50;
        border: none;
        outline: none;
        box-shadow: none;
        font-family: 'Prompt', sans-serif;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        position: relative;
        z-index: 10;
        pointer-events: auto;
    }

    .search-branch-input:focus {
        outline: none !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    .search-branch-input::placeholder {
        color: #95a5a6;
        font-weight: 400;
    }
    
    .search-branch-input:focus {
        outline: none;
        box-shadow: none;
    }
    
    .search-branch-btn {
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        width: 55px;
        height: 55px;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
        transition: all 0.3s ease;
    }
    
    .search-branch-btn:hover {
        transform: scale(1.1) rotate(15deg);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    }
    
    .btn-nearby {
        /*background: linear-gradient(135deg, #1e90ff 0%, #00c6ff 100%) !important;*/
        box-shadow: 0 6px 20px rgba(30, 144, 255, 0.3) !important;
        border-radius: 50px !important;
        padding: 18px 30px !important;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .btn-nearby:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(30, 144, 255, 0.4) !important;
    }
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.card.expanded .card-content {
    max-height: 1000px;
}

/* Footer */
.footer {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f9f9f9;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #ddd;
    font-size: 12px;
    color: #777;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer {
        padding: 30px 20px;
        /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
        color: white;
        font-size: 14px;
    }
}

/* Desktop Footer - Web App Style */
@media (min-width: 769px) {
    .footer {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Button Styles - Mobile First */
.btn-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    margin-top: 15px;
}

/* Ensure all text in btn-group is white */
.btn-group * {
    color: white !important;
}

.btn-group a, .btn-group button {
    color: white !important;
}

.btn-group a:hover, .btn-group button:hover {
    color: white !important;
}

.btn-line, .btn-direction {
    padding: 8.8px 4.4px;
    border-radius: 50px !important;
    font-weight: 700;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 5.5px;
    font-size: 12.1px;
    color: white !important;
    background: #000000;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-line i, .btn-direction i {
    font-size: 4.95px;
    flex-shrink: 0;
}

.btn-line:hover, .btn-direction:hover {
    background: #1a1a1a;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    border-radius: 50px !important;
}

.btn-line:hover, .btn-direction:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: white !important;
}

.btn-line:hover {
    background: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-direction:hover {
    background: #333333;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Mobile Buttons */
@media (max-width: 768px) {
    .btn-group {
        display: flex;
        flex-direction: row;
        gap: 2px;
        flex-wrap: nowrap;
        overflow-x: visible;
        width: 100%;
    }
    
    .btn-line, .btn-direction {
        flex: 1 1 0;
        flex-basis: 0;
        padding: 7.7px 1.65px;
        font-size: 5.08px;
        font-weight: 700;
        border-radius: 50px !important;
        justify-content: center;
        align-items: center;
        color: white !important;
        min-width: 0;
        white-space: nowrap;
        text-align: center;
        overflow: visible;
        letter-spacing: 0.11px;
    }
    
    .btn-line i, .btn-direction i {
        font-size: 5.08px;
        flex-shrink: 0;
        margin-right: 0.55px;
    }
}

/* Desktop Buttons - Web App Style */
@media (min-width: 769px) {
    .btn-group {
        display: flex;
        gap: 3px;
        margin-top: 20px;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .btn-line, .btn-direction {
        padding: 8.8px 3.3px;
        border-radius: 50px !important;
        font-size: 6.05px;
        font-weight: 700;
        flex: 1 1 0;
        flex-basis: 0;
        min-width: 0;
        justify-content: center;
        align-items: center;
        color: white !important;
        white-space: nowrap;
        text-align: center;
        overflow: visible;
        letter-spacing: 0.15px;
    }
    
    .btn-line i, .btn-direction i {
        font-size: 5.5px;
        flex-shrink: 0;
        margin-right: 1px;
    }
}

/* Online Platforms */
.online-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 10px 0;
}

/* Mobile Platforms */
@media (max-width: 768px) {
    .online-platforms {
        gap: 20px;
        padding: 20px 0;
    }
}

/* Desktop Platforms */
@media (min-width: 769px) {
    .online-platforms {
        gap: 20px;
        padding: 25px 0;
    }
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /*background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);*/
    color: white;
    padding: 15px;
    z-index: 9998;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

.install-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
    font-size: 14px;
    font-weight: 500;
}

.install-banner .btn {
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 15px;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none !important;
    }
}

/* Enhanced Animations */
.card, .section, .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover, .section:hover {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .card:active, .section:active {
        transform: scale(0.98);
    }
}

/* Force White Background - Override Dark Mode */
.card, .card.expanded {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.container {
    background: #ffffff !important;
    color: #333333 !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Ensure all text elements are dark */
.container h1, .container h2, .container h3, .container h4, .container h5, .container h6 {
    color: #333333 !important;
}

.container p, .container span, .container div {
    color: #333333 !important;
}

.card h1, .card h2, .card h3, .card h4, .card h5, .card h6 {
    color: #333333 !important;
}

/* .card p, .card span, .card div {
    color: #333333 !important;
} */

.section h1, .section h2, .section h3, .section h4, .section h5, .section h6 {
    color: #333333 !important;
}

.section p, .section span, .section div {
    color: #333333 !important;
}

/* Dark Mode Support - Disabled to force white background
@media (prefers-color-scheme: dark) {
    .card {
        background: rgba(255, 255, 255, 0.1);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .container {
        background: rgba(255, 255, 255, 0.05);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}
*/

.platform-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.platform-logo:hover {
    transform: scale(1.1);
}

/* Popup Overlay */
.popup {
    display: none; /* ซ่อน popup เริ่มต้น */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* สีพื้นหลังโปร่งแสง */
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Popup Content */
.popup-content {
    position: relative;
    /* background-color: #fff; */
    /* padding: 10px; */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%; /* กำหนดขนาดสูงสุดของ popup */
    max-height: 90%; /* จำกัดความสูงของ popup */
    overflow: auto;
}

/* Popup Image */
.popup-image {
    max-width: 90%; /* กำหนดขนาดสูงสุดของรูปภาพใน popup */
    max-height: 80%; /* จำกัดความสูงของรูปภาพใน popup */
    border-radius: 10px; /* เพิ่มความโค้งมนเฉพาะรูปภาพใน popup */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* เพิ่มเงา */
    display: block;
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
}

/* Close Button */
.popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* รูปภาพทั่วไป */
img {
    max-width: 100%;
    height: auto;
    border-radius: 5px; /* ตัวอย่างสไตล์สำหรับรูปภาพทั่วไป */
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: inherit;
    justify-content: center;
    align-items: center; /* จัดให้อยู่ตรงกลางในแนวแกน X */
    margin: 10px 0; /* เพิ่มระยะห่างด้านบนและล่าง */
}

/* Ensure all buttons in btn-group have white text */
.btn-group .btn, .btn-group a, .btn-group button {
    color: white !important;
    margin: 5px 0; /* เพิ่มระยะห่างระหว่างปุ่ม */
}

.btn-group .btn:hover, .btn-group a:hover, .btn-group button:hover {
    color: white !important;
}
.circle-image {
    width: 100%; /* เต็มความกว้าง */
    height: auto;
    border-radius: 0;
    object-fit: cover;
    display: block;
    margin: 0 0 10px 0; /* ไม่ต้อง center แล้วให้ชิดซ้าย */
}

.card-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.king-power-image {
    width: 250px; /* กำหนดความกว้าง */
    height: auto; /* ให้ความสูงปรับตามอัตราส่วน */
    border-radius: 0%; /* ทำให้เป็นวงกลม */
    display: block;
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
}

/* Footer Overlay Content */
.footer-overlay {
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    z-index: 2;
}

.footer-overlay h3 {
    color: #d1d5db;
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 2.5px;
    font-family: 'Prompt', sans-serif;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 350px;
    margin: 0 auto;
}

.footer-social-icons a {
    color: #ffffff;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.footer-social-icons a:hover {
    transform: scale(1.3);
    filter: brightness(1.2);
}

.footer-social-icons i {
    font-size: 18px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.footer-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

.footer-lazada-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

/* Footer Full Width Image */
.footer-image-full {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}

/* Individual Button Font Sizes */
.btn-group > *:nth-child(1) { /* GET DIRECTION */
    font-size: 6px;
}
.btn-group > *:nth-child(2) { /* GRAPHIC MAP */
    font-size: 6px;
}
.btn-group > *:nth-child(3) { /* REVIEW */
    font-size: 6px;
}
.btn-group > *:nth-child(4) { /* TIKTOK */
    font-size: 6px;
}

