/* ==========================================================================
   GLOBAL INTERACTIVE LOCATIONS MAP BLOCK CSS
   Self-contained stylesheet for global.interactive_locations block
   ========================================================================== */

.nss-coverage {
    padding: 4rem 0 3rem;
    background-color: #ffffff;
}

.nss-coverage-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.nss-coverage-header {
    margin-bottom: 2.5rem;
    text-align: center;
}

.nss-coverage-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #1c5b07;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.nss-coverage-title {
    font-family: 'Manrope', 'Inter', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    color: #1f2937;
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.nss-coverage-divider {
    width: 60px;
    height: 4.5px;
    background-color: #1c5b07;
    border-radius: 99px;
    margin: 0.85rem auto 1rem;
}

.nss-coverage-subtitle {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0 auto;
    max-width: 750px;
    display: block;
}

/* 1. Main Grid: Left 65%, Right 35% */
.nss-coverage-grid {
    display: grid;
    grid-template-columns: 65fr 35fr;
    gap: 2.5rem;
    align-items: flex-start;
}

/* Map Column (65%) */
.nss-coverage-map-col {
    position: relative;
}

.nss-coverage-map-wrap {
    background: #fafafa;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    padding: 3rem 1rem;
    display: flex;
    justify-content: center;
}

.nss-coverage-map-inner {
    position: relative;
    width: 100%;
    max-width: 550px;
}

.nss-coverage-map-img {
    display: block;
    width: 100%;
    height: auto;
}

/* Map Pins */
.nss-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 5;
    transition: transform 0.3s ease;
}

.nss-map-pin:hover {
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 10;
}

.nss-map-pin-active {
    transform: translate(-50%, -50%) scale(1);
    z-index: 10;
}

.nss-map-pin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    position: relative;
}

/* Non-active: Màu xanh lá #1c5b07 */
.nss-map-pin-normal {
    width: 20px;
    height: 20px;
    background-color: #1c5b07;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.nss-map-pin-hub {
    width: 20px;
    height: 20px;
    background-color: #1c5b07;
    color: #ffffff;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Active: Màu vàng #e7bf46 */
.nss-map-pin-active .nss-map-pin-normal,
.nss-map-pin-active .nss-map-pin-hub {
    background-color: #e7bf46;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(231, 191, 70, 0.35);
    width: 23px;
    height: 23px;
}

/* Pulse animation for active pin (vòng sáng vàng #e7bf46) */
.nss-map-pin-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(231, 191, 70, 0.45);
    transform: translate(-50%, -50%);
    animation: nss-pulse 2s ease-out infinite;
    display: none;
}

.nss-map-pin-active .nss-map-pin-pulse {
    display: block;
}

@keyframes nss-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* Pin Logo Badge next to Pin Icon (Không khung trắng, shadow nhẹ, size ~125px) */
.nss-map-pin-logo {
    position: absolute;
    min-width: 60px;
    max-width: 125px;
    height: 38px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nss-map-pin-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
    transition: filter 0.25s ease, transform 0.25s ease;
}

.nss-map-pin-active .nss-map-pin-logo img {
    filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.35));
}

/* Position variants: Right (default), Left, Top, Bottom (Desktop gap 80px) */
.nss-pin-logo-right {
    left: calc(100% + 80px);
    top: 50%;
    transform: translateY(-50%);
}

.nss-pin-logo-right::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 72px;
    height: 0;
    border-top: 1px dashed #b0b7c0;
    transform: translateY(-50%);
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.nss-map-pin-active .nss-pin-logo-right {
    transform: translateY(-50%) scale(1.08);
}

.nss-map-pin-active .nss-pin-logo-right::before {
    border-top-color: #e7bf46;
}

.nss-pin-logo-left {
    right: calc(100% + 80px);
    left: auto;
    top: 50%;
    transform: translateY(-50%);
}

.nss-pin-logo-left::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    width: 72px;
    height: 0;
    border-top: 1px dashed #b0b7c0;
    transform: translateY(-50%);
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.nss-map-pin-active .nss-pin-logo-left {
    transform: translateY(-50%) scale(1.08);
}

.nss-map-pin-active .nss-pin-logo-left::before {
    border-top-color: #e7bf46;
}

.nss-pin-logo-top {
    bottom: calc(100% + 80px);
    top: auto;
    left: 50%;
    transform: translateX(-50%);
}

.nss-pin-logo-top::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 72px;
    border-left: 1px dashed #b0b7c0;
    transform: translateX(-50%);
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.nss-map-pin-active .nss-pin-logo-top {
    transform: translateX(-50%) scale(1.08);
}

.nss-map-pin-active .nss-pin-logo-top::before {
    border-left-color: #e7bf46;
}

.nss-pin-logo-bottom {
    top: calc(100% + 80px);
    left: 50%;
    transform: translateX(-50%);
}

.nss-pin-logo-bottom::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 0;
    height: 72px;
    border-left: 1px dashed #b0b7c0;
    transform: translateX(-50%);
    pointer-events: none;
    transition: border-color 0.25s ease;
}

.nss-map-pin-active .nss-pin-logo-bottom {
    transform: translateX(-50%) scale(1.08);
}

.nss-map-pin-active .nss-pin-logo-bottom::before {
    border-left-color: #e7bf46;
}

/* Pin Label */
.nss-map-pin-label {
    position: absolute;
    left: calc(100% + 80px);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1f2937;
    pointer-events: auto;
    cursor: pointer;
    text-shadow:
        -1px -1px 0 rgba(255, 255, 255, 0.9),
        1px -1px 0 rgba(255, 255, 255, 0.9),
        -1px 1px 0 rgba(255, 255, 255, 0.9),
        1px 1px 0 rgba(255, 255, 255, 0.9),
        0 0 6px #fff;
}

.nss-map-pin-label::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    width: 35px;
    height: 0;
    border-top: 1px dashed #b0b7c0;
    transform: translateY(-50%);
    pointer-events: none;
}

.nss-map-pin-active .nss-map-pin-label::before {
    border-top-color: #e7bf46;
}

.nss-map-pin-active .nss-map-pin-label {
    color: #1c5b07;
    font-weight: 800;
}

/* Cards Column (55%) */
.nss-coverage-cards-col {
    display: flex;
    flex-direction: column;
}

.nss-coverage-cards-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #6b7280;
    text-transform: uppercase;
    margin: 0 0 1rem;
}

.nss-coverage-cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

/* 4. Individual Location Card (Vertical layout: logo on top, name underneath) */
.nss-ap-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.nss-ap-grid-card:hover {
    border-color: #1c5b07;
    box-shadow: 0 2px 8px rgba(28, 91, 7, 0.12);
}

/* 4. Active state: Nền xám nhẹ, viền xanh lá 1px, chữ tối */
.nss-ap-grid-card.nss-ap-grid-active {
    background-color: #ffffff !important;
    border: 1px solid #1c5b07 !important;
    box-shadow: 0 4px 12px rgba(28, 91, 7, 0.15);
}

/* Logo tự động co giãn theo padding của thẻ (không cố định kích thước) */
.nss-loc-card-logo {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    margin: 0 auto 0px;
    display: block;
}

.nss-loc-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

/* 4. Tên dưới logo nhỏ lại */
.nss-ap-grid-city {
    font-size: 0.72rem;
    font-weight: 500;
    color: #4b5563;
    margin: 0;
    line-height: 1.25;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nss-ap-grid-card.nss-ap-grid-active .nss-ap-grid-city {
    color: #111827 !important;
    font-weight: 700 !important;
}

/* Hint */
.nss-coverage-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-style: italic;
    color: #d97706;
    margin-top: 1.25rem;
}

/* Detail Panel Header: Xanh lá #1c5b07 */
.nss-coverage-detail {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.nss-coverage-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background-color: #1c5b07;
    color: #ffffff;
}

.nss-coverage-detail-header-left {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.nss-detail-logo-wrap {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: #fff;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.nss-detail-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nss-detail-airport-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.nss-detail-close {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.25rem 0.65rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s;
}

.nss-detail-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Detail Body */
.nss-coverage-detail-body {
    padding: 1.1rem;
    background-color: #ffffff;
}

/* Specs Grid */
.nss-detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.nss-detail-spec {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
}

.nss-detail-spec-full {
    grid-column: 1 / -1;
}

/* Icons accent: Nền xám #fafafa & Icon đỏ #c10024 */
.nss-detail-spec-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 0.4rem;
    color: #c10024;
}

.nss-detail-spec-icon svg {
    width: 16px;
    height: 16px;
}

.nss-detail-spec-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.nss-detail-spec-value {
    display: block;
    font-size: 0.75rem;
    color: #1f2937;
    line-height: 1.35;
    word-break: break-word;
}

/* About Section */
.nss-detail-about {
    display: flex;
    gap: 0.8rem;
    margin-top: 0.95rem;
    padding-top: 0.95rem;
    border-top: 1px solid #e5e7eb;
}

.nss-detail-about-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 0.4rem;
    color: #c10024;
}

.nss-detail-about-icon svg {
    width: 16px;
    height: 16px;
}

.nss-detail-about-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #6b7280;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.nss-detail-about-text {
    font-size: 0.75rem;
    color: #4b5563;
    line-height: 1.45;
    margin: 0;
}

/* 3. CTA Buttons: Nền đỏ #c10024 */
.nss-detail-cta {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.95rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e5e7eb;
    justify-content: center;
}

.nss-detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nss-detail-btn-outline {
    color: #c10024;
    border: 1px solid #c10024;
    background: #ffffff;
}

.nss-detail-btn-outline:hover {
    border-color: #a0001e;
    color: #a0001e;
    background: #fff5f5;
}

.nss-detail-btn-filled {
    color: #ffffff;
    border: 1px solid #c10024;
    background-color: #c10024;
}

.nss-detail-btn-filled:hover {
    background-color: #a0001e;
    border-color: #a0001e;
    box-shadow: 0 4px 12px rgba(193, 0, 36, 0.3);
}

/* Slide Animations */
.nss-detail-slide-in {
    animation: nss-slide-down 0.35s ease-out forwards;
}

.nss-detail-slide-out {
    animation: nss-slide-up 0.3s ease-in forwards;
}

@keyframes nss-slide-down {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nss-slide-up {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .nss-coverage-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nss-coverage {
        padding: 2.5rem 0 2rem;
    }

    .nss-coverage-title {
        font-size: 1.8rem;
    }

    .nss-coverage-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .nss-coverage-map-wrap {
        padding: 1.5rem;
    }

    .nss-coverage-map-inner {
        max-width: 280px;
        margin: 0 auto;
    }

    /* Khoảng cách giữa Logo và Icon ghim trên di động giảm 1 nửa (~40px) */
    .nss-pin-logo-right {
        left: calc(100% + 40px);
    }

    .nss-pin-logo-right::before {
        width: 32px;
    }

    .nss-pin-logo-left {
        right: calc(100% + 40px);
    }

    .nss-pin-logo-left::before {
        width: 32px;
    }

    .nss-pin-logo-top {
        bottom: calc(100% + 40px);
    }

    .nss-pin-logo-top::before {
        height: 32px;
    }

    .nss-pin-logo-bottom {
        top: calc(100% + 40px);
    }

    .nss-pin-logo-bottom::before {
        height: 32px;
    }

    .nss-map-pin-logo {
        min-width: 45px;
        max-width: 90px;
        height: 28px;
    }

    .nss-coverage-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.4rem;
    }

    .nss-detail-specs-grid {
        grid-template-columns: 1fr;
    }

    .nss-detail-cta {
        flex-direction: column;
    }

    .nss-detail-btn {
        justify-content: center;
    }

    .nss-map-pin-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .nss-coverage-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.35rem;
    }

    .nss-ap-grid-card {
        padding: 0.7rem;
    }
}