/* 
=============================================================================
HAMYA RESORT - ZALO MINI APP STYLE (THE SÓNG REFERENCE)
=============================================================================
*/

:root {
    --nav-height: 70px;
    --primary-green: #28a745;
    --primary-blue: #0056b3;
    --accent-yellow: #F2C10F;
    --bg-gray: #f4f6f8;
}

body {
    background-color: var(--bg-gray) !important;
    padding-bottom: 80px;
}

/* Header & Search Bar */
.zalo-header {
    background-color: var(--primary-green);
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 2100;
}

.search-container {
    background: white;
    border-radius: 20px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.search-container input {
    border: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-size: 0.9rem;
}

/* Quick Actions & Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px 15px;
    background: white;
    margin-bottom: 10px;
}

.category-item {
    text-align: center;
    text-decoration: none;
    color: #333;
}

.category-icon {
    width: 45px;
    height: 45px;
    margin: 0 auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 100%;
    height: auto;
}

.category-item span {
    font-size: 0.75rem;
    display: block;
}

/* Horizontal Scrolling Wrapper */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px;
    gap: 15px;
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}

/* Mini Room Card */
.mini-card {
    flex: 0 0 160px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mini-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.mini-card-body {
    padding: 8px;
}

.mini-card-title {
    font-size: 0.85rem;
    font-weight: 600;
    height: 38px;
    overflow: hidden;
    margin-bottom: 5px;
}

.discount-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff4d4f;
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: bold;
    border-bottom-right-radius: 12px;
}

.price-old {
    text-decoration: line-through;
    color: #999;
    font-size: 0.75rem;
}

.price-new {
    color: var(--primary-green);
    font-weight: bold;
    font-size: 0.9rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 5px;
}

.section-header h5 {
    font-weight: bold;
    margin-bottom: 0;
}

.section-header a {
    font-size: 0.8rem;
    text-decoration: none;
}

/* Info Banner Cards */
.info-banner {
    background: white;
    border-radius: 15px;
    margin: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 2000;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
}

.nav-item-mobile {
    text-align: center;
    text-decoration: none;
    color: #666;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.7rem;
    transition: 0.2s;
}

.nav-item-mobile i {
    font-size: 1.3rem;
    margin-bottom: 3px;
}

.nav-item-mobile.active {
    color: var(--primary-green) !important;
}

.nav-item-mobile.active i {
    color: var(--primary-green) !important;
}

/* Desktop: Optimization */
@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
    
    /* Constrain the main content width for desktop to prevent stretching */
    .zalo-header, .bg-white.py-3.border-bottom, .category-grid, .info-banner, .section-header, .scrolling-wrapper {
        max-width: 900px;
        margin-left: auto !important;
        margin-right: auto !important;
        border-left: 1px solid #eee;
        border-right: 1px solid #eee;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
        border-radius: 0 0 15px 15px;
    }

    .zalo-header {
        border-radius: 15px 15px 0 0;
        top: 10px; /* Slight offset from top on desktop */
    }

    .container {
        max-width: 900px !important;
    }

    /* Change horizontal scroll to grid on desktop for better visibility */
    .scrolling-wrapper {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        flex-wrap: wrap;
        overflow-x: visible;
        gap: 20px;
    }

    .mini-card {
        flex: 1 1 200px;
    }

    .mini-card img {
        height: 150px;
    }
    
    .quick-search-container {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Premium Footer Styles */
.footer-hamya {
    background: linear-gradient(180deg, #1a4d2e 0%, #0d2b1a 100%);
    color: #f8f9fa !important;
    padding: 40px 20px 20px;
    border-top: 4px solid var(--primary-green);
    text-align: center;
}

.footer-hamya h5 {
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 15px;
    color: white;
}

.footer-hamya p {
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer-hamya .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 8px;
    transition: all 0.3s ease;
    color: white !important;
    text-decoration: none;
}

.footer-hamya .social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-hamya .copyright {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem;
    color: #868e96;
}
