/* =========================================================
   FOOTER - ĐỊA CHỈ (thẻ bản đồ Google nằm ngang)
   Thẳng hàng với 4 cột phía trên (lề 30px), có tiêu đề riêng.
========================================================= */

.htp-footer-location-wrap {
    margin: 0 30px;
    padding: 28px 0 35px;
    border-top: 1px solid #eef2f0;
}

.htp-footer-location-wrap .htp-footer-location-title {
    margin: 0 0 18px;
    color: #666;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

.htp-footer-location {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

/* Ảnh dự phòng khi Location chưa nhập địa chỉ */

.htp-footer-location-item {
    width: 100%;
}

.htp-footer-location-image {
    display: block;
    width: 100%;
    height: auto;
}

/* ---------- Thẻ: bản đồ bên trái, thông tin bên phải ---------- */

.htp-loc-card {
    display: flex;
    min-height: 220px;
    overflow: hidden;
    border: 1px solid #dfeae4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 22px rgba(8, 38, 91, 0.07);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.htp-loc-card:hover {
    box-shadow: 0 12px 30px rgba(8, 38, 91, 0.15);
    transform: translateY(-2px);
}

.htp-loc-map {
    position: relative;
    flex: 0 0 50%;
    min-height: 220px;
    background: #eef3f1;
}

.htp-loc-map iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.htp-loc-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    padding: 22px 24px;
}

.htp-loc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #EDF3FA;
    color: #061A42;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
}

.htp-loc-card .htp-loc-address {
    margin: 0;
    color: #263550;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.htp-loc-card .htp-loc-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.htp-loc-card .htp-loc-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #465672;
    font-size: 14px;
}

.htp-loc-card .htp-loc-list svg {
    flex: 0 0 15px;
    color: var(--primary, #08265B);
}

.htp-loc-card .htp-loc-list a {
    color: inherit;
    text-decoration: none;
}

.htp-loc-card .htp-loc-list a:hover {
    color: var(--primary, #08265B);
}

.htp-loc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 4px;
}

.htp-loc-card a.htp-loc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #cfe0d8;
    border-radius: 10px;
    background: #fff;
    color: var(--primary, #08265B);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.htp-loc-card a.htp-loc-btn:hover {
    border-color: var(--primary, #08265B);
    background: #f0f8f4;
}

.htp-loc-card a.htp-loc-btn--primary {
    border-color: var(--primary, #08265B);
    background: var(--primary, #08265B);
    color: #fff;
}

.htp-loc-card a.htp-loc-btn--primary:hover {
    background: var(--primary, #08265B);
    filter: brightness(0.92);
}

.htp-loc-card a.htp-loc-btn:focus-visible {
    outline: 2px solid var(--primary, #08265B);
    outline-offset: 2px;
}

/* ---------- Màn hình vừa: mỗi thẻ một hàng ---------- */

@media (max-width: 1100px) {

    .htp-footer-location {
        grid-template-columns: 1fr;
    }
}

/* ---------- Điện thoại: bản đồ ở trên, thông tin ở dưới ---------- */

@media (max-width: 767px) {

    /* footer.css đã tự thêm lề 20px cho .inh-footer-middle ở cỡ này nên không thêm lề nữa */
    .htp-footer-location-wrap {
        margin: 0;
        padding: 22px 0 8px;
    }
}

@media (max-width: 640px) {

    .htp-loc-card {
        flex-direction: column;
        min-height: 0;
    }

    .htp-loc-map {
        flex: none;
        height: 200px;
        min-height: 0;
    }

    .htp-loc-info {
        padding: 18px 18px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .htp-loc-card {
        transition: none;
    }

    .htp-loc-card:hover {
        transform: none;
    }
}

/* =========================================================
   ĐỊA CHỈ NẰM TRONG CỘT "TƯ VẤN ĐẶT HÀNG"
   (ghi đè lề 30px và đường kẻ khi còn là hàng riêng)
========================================================= */

.inh-footer-column .htp-footer-location-wrap {
    margin: 32px 0 0;
    padding: 0;
    border-top: 0;
}

/* Trong cột, mỗi thẻ bản đồ chiếm một hàng */
.inh-footer-column .htp-footer-location {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.inh-footer-column .htp-loc-card {
    min-height: 200px;
}

.inh-footer-column .htp-loc-map {
    min-height: 200px;
}

/* Nút Chỉ đường / Mở Google Maps xuống dòng khi cột hẹp */
.inh-footer-column .htp-loc-actions {
    flex-wrap: wrap;
}

/* =========================================================
   ĐỊA CHỈ NẰM TRONG CỘT "TƯ VẤN ĐẶT HÀNG"
   Phần nền: áp dụng cho MỌI cỡ màn hình
========================================================= */

.inh-footer-column .htp-footer-location-wrap {
    margin: 32px 0 0;
    padding: 0;
    border-top: 0;
}

/* Trong cột, mỗi thẻ bản đồ chiếm trọn một hàng */
.inh-footer-column .htp-footer-location {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.inh-footer-column .htp-loc-card {
    width: 100%;
    min-height: 200px;
}

.inh-footer-column .htp-loc-map {
    min-height: 200px;
}

.inh-footer-column .htp-loc-actions {
    flex-wrap: wrap;
}


/* =========================================================
   ĐỊA CHỈ TRONG CỘT - MÀN 13 INCH (1201px - 1500px)
   Bản nhỏ gọn: bản đồ trên, thông tin dưới
========================================================= */

@media (min-width: 1201px) and (max-width: 1500px) {

    .inh-footer-column .htp-footer-location-wrap {
        margin-top: 22px;
    }

    .inh-footer-column .htp-footer-location-wrap .htp-footer-location-title {
        margin-bottom: 12px;
    }

    .inh-footer-column .htp-footer-location {
        gap: 12px;
    }

    .inh-footer-column .htp-loc-card {
        flex-direction: column;
        min-height: 0;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(8, 38, 91, 0.07);
    }

    .inh-footer-column .htp-loc-map {
        flex: none;
        width: 100%;
        height: 135px;
        min-height: 0;
    }

    .inh-footer-column .htp-loc-info {
        gap: 7px;
        padding: 12px 14px 14px;
    }

    .inh-footer-column .htp-loc-tag {
        padding: 4px 9px;
        font-size: 9.5px;
    }

    .inh-footer-column .htp-loc-card .htp-loc-address {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
    }

    .inh-footer-column .htp-loc-card .htp-loc-list {
        gap: 4px;
    }

    .inh-footer-column .htp-loc-card .htp-loc-list li {
        gap: 7px;
        font-size: 12px;
    }

    .inh-footer-column .htp-loc-card .htp-loc-list svg {
        width: 13px;
        height: 13px;
        flex-basis: 13px;
    }

    .inh-footer-column .htp-loc-actions {
        width: 100%;
        flex-wrap: nowrap;
        gap: 6px;
        margin-top: 3px;
        padding-top: 0;
    }

    .inh-footer-column .htp-loc-card a.htp-loc-btn {
        flex: 1 1 0;
        min-width: 0;
        min-height: 32px;
        padding: 0 8px;
        gap: 5px;
        border-radius: 8px;
        font-size: 11.5px;
        white-space: nowrap;
    }

    .inh-footer-column .htp-loc-card a.htp-loc-btn svg {
        width: 13px;
        height: 13px;
    }
}