:root {
    --brand-color-findv: #bf1414;
    --tagline-color: #6A6A6A;
    --search-button-bg: #BF1414;
    --search-button-text-color: #FFFFFF;
    --search-button-hover-bg: #404040;
    --text-dark: #333333;
    --soft-gray-background: #edf1f7;
    --box-background-light: #FFFFFF;
    --border-color-light: #e9ecef;
    --placeholder-color: #A0A0A0;
    --accent-color: #bf1414;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

body, html {
    height: 100%; margin: 0;
    font-family: var(--font-body);
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--soft-gray-background);
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1 0 auto;
}
.hero-section {
    padding: 40px 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
    text-align: center;
    visibility: hidden;
}
.brand-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 5rem);
    font-weight: 700;
    color: var(--brand-color-findv);
    margin: 0;
    line-height: 1;
}
.tagline-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}
.tagline {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 400;
    color: var(--tagline-color);
    line-height: 1.6;
    margin: 0;
}

.ad-boxes-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    visibility: hidden;
}
.ad-box-link {
    text-decoration: none; color: inherit;
    display: block;
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}
.ad-box-placeholder {
    width: 100%;
    min-height: 50px;
    background-color: var(--box-background-light);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    padding: 20px;
    display: flex; flex-direction: column; justify-content: center;
    align-items: center; text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ad-box-link:hover .ad-box-placeholder {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.ad-box-placeholder p { margin: 0 0 5px 0; font-size: 0.8rem; color: var(--tagline-color); text-transform: uppercase; letter-spacing: 1px; }
.ad-box-placeholder h1 { margin: 4px 0; font-size: 1rem; color: var(--brand-color-findv); font-family: 'Space Grotesk', sans-serif; }
.ad-box-placeholder span { font-size: 0.6rem; color: var(--text-dark); font-weight: 500; }

.nearby-search-container {
    width: 100%;
    max-width: 800px;
    margin-top: 20px;
    padding: 25px;
    background-color: var(--box-background-light);
    border: 1px solid var(--border-color-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    visibility: hidden;
    text-align: center;
}
.nearby-search-container h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 25px;
}
.nearby-button-main {
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--search-button-text-color);
    background-color: var(--search-button-bg);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nearby-button-main:hover {
    background-color: var(--search-button-hover-bg);
    transform: translateY(-2px);
}

.search-result-container { margin-top: 25px; max-height: 450px; overflow-y: auto; padding: 5px; text-align: left; width: 100%; }
.results-title { color: var(--tagline-color); font-weight: 500; margin-bottom: 15px; text-align: center; font-size: 1.1rem; }
.results-list-new { display: flex; flex-direction: column; gap: 12px; }
.result-item-new {
    display: flex; align-items: center; gap: 15px; padding: 16px; background-color: #fff;
    border: 1px solid var(--border-color-light); border-radius: 12px; color: var(--text-dark);
    text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.result-item-new:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.07); border-color: var(--accent-color); }
.result-item-text { display: flex; flex-direction: column; gap: 4px; width: 100%; }
.result-item-text strong { font-weight: 600; font-size: 1rem; line-height: 1.4; }
.result-item-text small { font-size: 0.85rem; color: var(--tagline-color); line-height: 1.3; }
.result-item-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; }
.distance-info { font-size: 0.8rem; color: #6c757d; font-weight: 500; }
.discount-badge { font-size: 0.75rem; font-weight: 700; background-color: var(--brand-color-findv); color: #fff; padding: 3px 8px; border-radius: 5px; }
.no-results { text-align: center; color: var(--tagline-color); padding: 20px; }
.loading-dots span { animation: blink 1.4s infinite both; display: inline-block; font-size:1.8em; margin:0 3px; color: var(--search-button-bg); }
@keyframes blink { 0% { opacity: .2; } 20% { opacity: 1; } 100% { opacity: .2; } }
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }

.modules-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 4em;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    visibility: hidden;
}
.module {
    background: var(--box-background-light); border-radius: 20px; padding: 25px;
    width: 280px;
    flex-shrink: 1;
    text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease; border: 1px solid var(--border-color-light);
}
.module:hover { transform: translateY(-5px); box-shadow: 0 12px 30px rgba(0,0,0,0.1); }
.module-icon { height: 150px; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; }
.module-icon img { max-height: 100%; width: auto; object-fit: contain; }
.module h3 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 700; margin-bottom: 15px; }
.module ul { list-style: none; padding: 0; margin-bottom: 25px; min-height: 60px; font-size: 0.95rem; opacity: 0.9; color: var(--tagline-color); }
.module ul li { margin-bottom: 5px; }
.contact-button {
    background-color: #f1f3f5; color: var(--text-dark); border: none;
    padding: 10px 30px; border-radius: 30px; cursor: pointer;
    font-size: 0.9rem; font-weight: 700; transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.contact-button:hover { background-color: var(--border-color-light); transform: scale(1.02); }

/* == HEADER & FOOTER == */
.site-header {
    background-color: var(--soft-gray-background); padding: 15px 0;
    border-bottom: 1px solid var(--border-color-light);
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; }
.header-logo img { height: 100px; }
.header-nav { flex-grow: 1; display: flex; justify-content: center; }
.header-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.header-nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; position: relative; padding-bottom: 5px; }
.header-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--brand-color-findv); transition: width 0.3s ease; }
.header-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 15px; }
.login-button { background-color: var(--brand-color-findv); color: #fff; padding: 8px 16px; border-radius: 8px; text-decoration: none; font-weight: 500; transition: background-color 0.3s ease; }
.login-button:hover { background-color: var(--search-button-hover-bg); color: #fff; }
.lang-switcher { display: flex; align-items: center; gap: 5px; border-left: 1px solid var(--border-color-light); padding-left: 15px; }
.lang-switcher button { background: none; border: none; color: var(--text-dark); font-size: 0.9rem; font-weight: 700; cursor: pointer; opacity: 0.6; transition: opacity 0.3s ease; }
.lang-switcher button:hover { opacity: 1; }
.lang-switcher button.active { opacity: 1; color: var(--brand-color-findv); }
.lang-switcher span { color: var(--border-color-light); }

/* --- FOOTER --- */
.site-footer {
    background-color: #212529;
    color: #adb5bd;
    padding: 10px 5px 5px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    display: flex;
    flex-wrap: wrap; /* Cho responsive, tự xuống dòng nếu hẹp */
    justify-content: space-between; /* Khoảng cách đều giữa các phần */
    gap: 20px; /* Khoảng cách giữa các cột */
    padding: 20px 30px;
    background-color: #212529;
    color: white;
}

.footer-about,
.footer-links,
.footer-social,
.footer-reference {
    flex: 1 1 200px; /* Mỗi phần chiếm đều, co giãn đẹp */
    min-width: 200px;
    max-width: 300px;
    font-size: 15px;
}


.footer-about img {
    width: 40px;
    height: auto;
    margin-left: 90px;
}

.footer-about p {
    font-size: 15px;
    line-height: 1.6;
}

.footer-links .h4,
.footer-reference .h4,
.footer-social .h4 {
    font-size: 10px;
    text-transform: uppercase;
    color: #fff;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 10px
}

.footer-links ul li {
    margin-bottom: 10px;
    margin-top: 10px;
}

.footer-links ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #f8c3d4;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #ccc;
    font-size: 18px;
    transition: color 0.3s;
    padding: 10px;
}

.social-icons a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 15px;
    text-align: center;
    font-size: 13px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-about img {
        margin: 0 auto 15px;
    }

    .social-icons a {
        margin: 0 10px;
    }
}

/* == RESPONSIVE == */
@media (max-width: 992px) { 
    .header-nav { display: none; }
    .footer-container { flex-direction: column; text-align: center; }
    .footer-social .social-icons { justify-content: center; }
}
@media (max-width: 768px) {
    .modules-container {
        flex-direction: column;
        align-items: center;
    }
    .module {
        width: 90%;
        max-width: 400px;
    }
}
@media (max-width: 650px) {
    .ad-boxes-container {
        flex-direction: column;
        align-items: center;
    }
    .ad-box-link {
        width: 100%;
        max-width: 450px;
    }
}
@media (max-width: 480px) { 
    .brand-name { font-size: 2.5rem; } 
    .tagline { font-size: 1rem; } 
    .nearby-search-container h2 { font-size: 1.5rem; }
    .header-container { padding: 0 15px; }
    .header-logo img { height: 35px; }
    .login-button { padding: 8px 16px; font-size: 0.6rem; }
    .header-actions .lang-switcher { border-left: none; padding-left: 0; }
}
