/* Reset cơ bản */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: #fff;
    color: #222;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container căn giữa, dùng safe-area padding cho iPhone notch */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) calc(env(safe-area-inset-bottom, 0px) + 96px) env(safe-area-inset-left);
    background: linear-gradient(180deg, #fff 0%, #fff 60%); /* có thể đổi màu nền */
}

/* Ảnh responsive, không vượt quá viewport, có margin và bóng nhẹ */
img.hero {
    display: block;
    width: 100%;
    max-width: 900px; /* hạn chế kích thước desktop */
    height: auto;
    margin: 0 16px 18px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    object-fit: cover;
}

/* Map section */
.map-section { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.map-title { font-size: 16px; color: #333; margin: 0 0 6px; }
.map-wrapper { width: 100%; max-width: 900px; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.map-wrapper iframe { border: 0; width: 100%; height: 360px; display: block; }
.map-link { font-size: 13px; color: #666; }
.map-link a { color: #1877F2; text-decoration: none; }
.map-link a:hover { text-decoration: underline; }

/* Media queries nhỏ: giảm margin/border-radius, tăng tính chiếm dụng màn hình */
@media (max-width: 480px) {
    img.hero {
        margin: 0 8px;
        border-radius: 8px;
        max-width: calc(100% - 16px);
    }
    .map-wrapper iframe { height: 240px; }
}

/* Thêm hỗ trợ màn hình nhỏ và landscape nhỏ */
@media (max-height: 420px) and (orientation: landscape) {
    .container { align-items: flex-start; padding-top: 10px; }
    img.hero { max-height: 90vh; width: auto; }
}

/* Tùy chọn: lớp overlay hoặc text nếu cần thêm nội dung mobile-friendly */
/* .overlay { position: absolute; bottom: 24px; left: 16px; right: 16px; text-align: center; } */

/* Footer với link mạng xã hội */
.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 12px;
    z-index: 40;
    background: rgba(255,255,255,0.96);
    box-shadow: 0 -6px 24px rgba(0,0,0,0.06);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    margin: 0 12px;
}
.site-footer .footer-inner {
    font-size: 14px;
    color: #444;
}
.site-footer .social {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1877F2; /* Facebook brand color */
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    padding: 6px 10px;
    transition: opacity .15s ease, transform .08s ease;
}
.site-footer .social.maps { color: #EA4335; }
.site-footer .social:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    text-decoration: none;
}
.site-footer svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}
@media (max-width: 480px) {
    .site-footer { margin: 16px 0 32px; }
    .site-footer .footer-inner { font-size: 13px; }
}