/* =========================
   TABLET
========================= */

@media (max-width: 992px) {
    .topbar-left {
        gap: 5px;
        flex-wrap: wrap;
    }

    .header-link {
        font-size: 13px;
    }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .topbar-wrapper {
        padding: 10px;
    }

    /* Stack left and right */
    .topbar-container {
        flex-direction: column;
        align-items: center !important;
        text-align: center;
        gap: 10px;
    }

    .topbar-left {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .topbar-right {
        width: 100%;
        justify-content: center;
    }

    /* Address full row */
    .topbar-left .header-link:first-of-type {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 5px;
        font-size: 12px;
    }

    .header-link {
        font-size: 12px;
    }

    .divider,
    .topbar-left span {
        display: none;
    }

    .social-icon {
        width: 30px;
        height: 30px;
    }

    #langToggle {
        padding: 5px 10px;
        font-size: 12px;
    }

    .map-actions {
        flex-direction: column;
    }

    .map-btn {
        width: 100%;
    }
}

/* =========================
   SMALL MOBILE
========================= */
/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 480px) {
    .topbar-left {
        display: flex;
        flex-direction: row; /* Keep horizontal */
        flex-wrap: wrap; /* Allow wrapping if needed */
        justify-content: center;
        align-items: center;
        gap: 6px;
    }

    /* Address remains full width */
    .topbar-left .header-link:first-of-type {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 5px;
    }

    /* Phone numbers stay inline */
    .topbar-left .open-phone-modal,
    .topbar-left .open-land-phone-modal {
        display: inline-flex;
        align-items: center;
        white-space: nowrap;
    }

    .topbar-right {
        gap: 8px;
    }

    .map-modal-content {
        padding: 15px;
    }

    .map-modal iframe {
        height: 250px;
    }
}