/* Global Presets & Variables */
.seaneb-global-presence {
    display: flex;
    gap: 40px;
    --loc-primary: var(--seaneb-primary, #0056b3);
    --loc-map-fill: #e0e6ed;
    --loc-card-bg: #ffffff;
    --loc-card-radius: 16px;
    --loc-card-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    --loc-card-hover-shadow: 0 16px 50px rgba(0, 0, 0, 0.1);
}

.seaneb-global-presence.layout-row {
    flex-direction: row;
    align-items: flex-start;
}

.seaneb-global-presence.layout-row-reverse {
    flex-direction: row-reverse;
    align-items: flex-start;
}

.seaneb-global-presence.layout-column {
    flex-direction: column;
}

.seaneb-global-presence.layout-column-reverse {
    flex-direction: column-reverse;
}

@media(max-width: 991px) {

    .seaneb-global-presence.layout-row,
    .seaneb-global-presence.layout-row-reverse {
        flex-direction: column !important;
    }
}

/* Map Section */
.seaneb-map-container {
    flex: 1 1 50%;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    padding: 30px;
}

.seaneb-map-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    line-height: 0;
}

.seaneb-world-dotted-map {
    width: 100%;
    aspect-ratio: 4378 / 2435;
    background-image: radial-gradient(var(--loc-map-fill, #cbd5e1) 1.2px, transparent 1.2px);
    background-size: 2px 8px;
    background-position: 0 0;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-size: 100% 100%;
    mask-repeat: no-repeat;
}

.seaneb-map-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.seaneb-connection-line {
    fill: none;
    stroke: var(--loc-line-color, var(--loc-primary));
    stroke-width: 1.5px;
    opacity: 0.6;
}

.seaneb-animated-line {
    stroke-dasharray: 6 6;
    animation: locLineFlow 2s linear infinite;
}

@keyframes locLineFlow {
    to {
        stroke-dashoffset: -12;
    }
}

.seaneb-map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 2;
}

.seaneb-pin-dot {
    width: 8px;
    height: 8px;
    background-color: var(--loc-primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--loc-primary) 20%, transparent);
}

.seaneb-map-pin.active .seaneb-pin-dot,
.seaneb-map-pin:hover .seaneb-pin-dot {
    transform: scale(1.3);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--loc-primary) 40%, transparent);
}

.seaneb-pin-pulse {
    display: none;
}

@keyframes locPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.6;
    }

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

/* Tooltips matching Image 1 exact aesthetic (hidden until hover) */
.seaneb-pin-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: #ffffff;
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: 0.2px;
    border: 1px solid #f1f5f9;
    transition: all 0.2s ease;
}

.seaneb-map-pin.active .seaneb-pin-tooltip,
.seaneb-map-pin:hover .seaneb-pin-tooltip {
    opacity: 1;
    visibility: visible;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transform: translateX(-50%) translateY(0);
}

/* Custom Zoom Controls Top-Left */
.seaneb-map-zoom-controls {
    position: absolute;
    bottom: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    z-index: 10;
}

.seaneb-zoom-row {
    display: flex;
    gap: 8px;
}

.seaneb-map-zoom-controls button {
    background: #334155;
    border: none;

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.seaneb-zoom-row button {
    width: 32px;
    height: 32px;
    font-size: 20px;
    font-weight: 600;
}

.seaneb-zoom-in {
    background: #334155 !important;
    color: #ffffff;
}

.seaneb-zoom-out {
    background: var(--loc-primary) !important;
    color: #ffffff;
    /* using a vibrant blue or primary */
}

.seaneb-zoom-in:hover,
.seaneb-zoom-out:hover {
    opacity: 0.8;
}

.seaneb-zoom-reset {
    width: 100%;
    height: auto;
    background: transparent !important;
    color: #47494b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    justify-content: flex-start !important;
    padding: 4px 0 !important;
    text-transform: uppercase;
}

.seaneb-zoom-reset:hover {
    opacity: 0.7;
}

/* List Section */
.seaneb-locations-list {
    flex: 1 1 50%;
    display: grid;
    gap: 16px;
    align-content: start;
}

.seaneb-global-presence.layout-row .seaneb-locations-list,
.seaneb-global-presence.layout-row-reverse .seaneb-locations-list {
    max-height: 580px;
    overflow-y: auto;
    padding: 20px;
}

/* Custom Scrollbar for the list */
.seaneb-locations-list::-webkit-scrollbar {
    width: 6px;
}

.seaneb-locations-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.seaneb-locations-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.seaneb-locations-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.seaneb-locations-list[data-cols="1"] {
    grid-template-columns: 1fr;
}

.seaneb-locations-list[data-cols="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.seaneb-locations-list[data-cols="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.seaneb-locations-list[data-cols="4"] {
    grid-template-columns: repeat(4, 1fr);
}

.seaneb-locations-list[data-cols="5"] {
    grid-template-columns: repeat(5, 1fr);
}

.seaneb-locations-list[data-cols="6"] {
    grid-template-columns: repeat(6, 1fr);
}

.seaneb-locations-list[data-cols="7"] {
    grid-template-columns: repeat(7, 1fr);
}

.seaneb-locations-list[data-cols="8"] {
    grid-template-columns: repeat(8, 1fr);
}

@media(max-width: 991px) {
    .seaneb-locations-list[data-cols-tablet="1"] {
        grid-template-columns: 1fr;
    }

    .seaneb-locations-list[data-cols-tablet="2"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .seaneb-locations-list[data-cols-tablet="3"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width: 767px) {
    .seaneb-locations-list[data-cols-mobile="1"] {
        grid-template-columns: 1fr;
    }

    .seaneb-locations-list[data-cols-mobile="2"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

.seaneb-location-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 24px;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    position: relative;
}

.seaneb-location-card.active,
.seaneb-location-card:hover {
    background: #ffffff;
    border-color: var(--loc-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.seaneb-loc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.seaneb-loc-flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.seaneb-loc-title-wrap {
    display: flex;
    flex-direction: column;
}

.seaneb-loc-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.seaneb-loc-city {
    font-size: 13px;
    color: #64748b;
    margin-top: 2px;
    font-weight: 500;
}

.seaneb-loc-body {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

.seaneb-loc-address {
    margin-bottom: 16px;
}

.seaneb-loc-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.seaneb-loc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.2s;
}

.seaneb-loc-link:hover {
    color: var(--loc-contact-color-hover, var(--loc-primary));
}

.seaneb-loc-link svg {
    color: #9ca3af;
    width: 14px;
    height: 14px;
    stroke-width: 1.5px;
}


.seaneb-btn-copy:hover {
    background: #e2e8f0;
    color: #0f172a;
}