/* ========================================
   MAP EXPLORER - PREMIUM LOCATION SECTION
   ======================================== */

.map-explorer-section {
    position: relative;
    padding: 3rem 0;
    background: linear-gradient(135deg, #2D1F26 0%, #1F1418 50%, #1A1015 100%);
    overflow: visible;
}

/* Animated Background */
.map-explorer-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.me-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 15s ease-in-out infinite;
}

.me-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(199, 125, 143, 0.6) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.me-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(139, 69, 88, 0.5) 0%, transparent 70%);
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}

.me-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(232, 180, 188, 0.4) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(40px, 10px) scale(1.05);
    }
}

.map-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(199, 125, 143, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(199, 125, 143, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Section Header */
.map-explorer-header {
    text-align: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.map-explorer-header h2 {
    font-size: clamp(1.6rem, 4vw, 2.25rem);
}

.me-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(199, 125, 143, 0.15);
    border: 1px solid rgba(199, 125, 143, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #E8B4BC;
}

.me-badge-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.map-explorer-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #fff;
    font-weight: 700;
    margin: 0 0 1rem;
}

.gradient-text {
    background: linear-gradient(135deg, #E8B4BC 0%, #C77D8F 50%, #8B4558 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.map-explorer-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Interactive Map Container */
.map-interactive-container {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
    padding-top: 140px; /* Space for popup cards */
}

@media (max-width: 1024px) {
    .map-interactive-container {
        grid-template-columns: 1fr;
        padding-top: 0;
    }
}

/* Abstract Map Area */
.abstract-map {
    position: relative;
    min-height: 350px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(199, 125, 143, 0.2);
    border-radius: 16px;
    overflow: visible;
}

.map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.connection-line {
    stroke-dasharray: 10, 5;
    animation: dashMove 3s linear infinite;
}

.connection-line.delay-1 {
    animation-delay: -1s;
}

.connection-line.delay-2 {
    animation-delay: -2s;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -30;
    }
}

/* Map Pins */
.map-pins-container {
    position: absolute;
    inset: 0;
    overflow: visible;
}

.map-pin {
    position: absolute;
    z-index: 10;
    cursor: pointer;
}

.pin-pulse {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(199, 125, 143, 0.3);
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: pinPulse 2s ease-out infinite;
}

@keyframes pinPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.pin-marker {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #C77D8F, #8B4558);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(139, 69, 88, 0.4);
    transition: all 0.3s ease;
}

.map-pin:hover .pin-marker {
    transform: scale(1.2);
    box-shadow: 0 6px 25px rgba(139, 69, 88, 0.6);
}

/* Pin Hover Card - Glassmorphism */
.pin-card {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 15px);
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 20;
    text-decoration: none;
}

.map-pin:hover .pin-card,
.map-pin.is-active .pin-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.map-pin.is-active .pin-marker {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(139, 69, 88, 0.6);
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.pin-card-image {
    width: 100%;
    height: 100px;
    overflow: hidden;
}

.pin-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pin-card:hover .pin-card-image img {
    transform: scale(1.1);
}

.pin-card-content {
    padding: 1rem;
    text-align: center;
}

.pin-card-content h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.pin-card-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #E8B4BC;
    font-size: 0.8rem;
    transition: gap 0.3s ease;
}

.pin-card:hover .pin-card-label {
    gap: 0.75rem;
}

/* Locations Panel - Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(199, 125, 143, 0.2);
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    max-height: 350px;
}

@media (max-width: 1024px) {
    .glass-panel {
        max-height: none;
    }
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-header h3 {
    color: #fff;
    font-size: 0.95rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-header h3 i {
    color: #C77D8F;
}

.location-count {
    background: rgba(199, 125, 143, 0.2);
    color: #E8B4BC;
    padding: 0.2rem 0.5rem;
    border-radius: 15px;
    font-size: 0.65rem;
}

.locations-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(199, 125, 143, 0.3) transparent;
}

.locations-scroll::-webkit-scrollbar {
    width: 4px;
}

.locations-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.locations-scroll::-webkit-scrollbar-thumb {
    background: rgba(199, 125, 143, 0.3);
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .locations-scroll {
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
    }
}

.location-region {
    margin-bottom: 0.9rem;
}

.region-label {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.4rem;
}

.region-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.location-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.3rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.location-pill:hover {
    background: rgba(199, 125, 143, 0.2);
    border-color: rgba(199, 125, 143, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.pill-dot {
    width: 5px;
    height: 5px;
    background: #C77D8F;
    border-radius: 50%;
}

.panel-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C77D8F, #8B4558);
    color: #fff;
    padding: 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
}

.panel-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 88, 0.4);
    color: #fff;
}

.panel-cta i {
    transition: transform 0.3s ease;
}

.panel-cta:hover i {
    transform: translateX(4px);
}

/* Featured Location Cards Row */
.featured-locations-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
    z-index: 2;
}

@media (max-width: 1024px) {
    .featured-locations-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .featured-locations-row {
        grid-template-columns: 1fr;
    }
}

.featured-loc-card {
    position: relative;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.featured-loc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.flc-bg {
    position: absolute;
    inset: 0;
}

.flc-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 69, 88, 0.9), rgba(26, 26, 46, 0.9));
    z-index: 1;
}

.flc-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.featured-loc-card:hover .flc-bg img {
    transform: scale(1.1);
}

.flc-content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
}

.flc-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    color: #E8B4BC;
    font-size: 0.8rem;
}

.flc-content h4 {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 0.35rem;
    font-weight: 600;
}

.flc-link {
    color: #E8B4BC;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: gap 0.3s ease;
}

.featured-loc-card:hover .flc-link {
    gap: 0.7rem;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .map-explorer-section {
        padding: 2rem 0 3rem;
    }

    .map-interactive-container {
        padding-top: 0;
        gap: 1.5rem;
    }

    /* Hide the map with pins on mobile */
    .abstract-map {
        display: none;
    }

    /* Hide featured cards on mobile */
    .featured-locations-row {
        display: none;
    }

    .glass-panel {
        max-height: none;
        padding: 1.25rem;
        border-radius: 16px;
    }

    .panel-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .panel-header h3 {
        font-size: 1rem;
    }

    .location-region {
        margin-bottom: 1rem;
    }

    .region-label {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
    }

    .location-pill {
        padding: 0.35rem 0.65rem;
        font-size: 0.75rem;
    }

    .pill-dot {
        width: 5px;
        height: 5px;
    }

    .panel-cta {
        padding: 0.85rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .featured-locations-row {
        gap: 1rem;
    }

    .featured-loc-card {
        height: 150px;
        border-radius: 12px;
    }

    .flc-icon {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .flc-content h4 {
        font-size: 1.1rem;
    }

    .flc-link {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .map-explorer-section {
        padding: 1.5rem 0 2.5rem;
    }

    .map-explorer-header {
        margin-bottom: 0.5rem;
    }

    .map-explorer-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .map-explorer-header p {
        font-size: 0.9rem;
    }

    .me-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.85rem;
        margin-bottom: 0.75rem;
    }

    .map-interactive-container {
        gap: 1rem;
    }

    .glass-panel {
        padding: 1rem;
    }

    .featured-loc-card {
        height: 130px;
    }

    .flc-content h4 {
        font-size: 1rem;
    }
}

/* Scroll Animation */
.map-explorer-section .map-explorer-header,
.map-explorer-section .map-interactive-container,
.map-explorer-section .featured-locations-row {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-explorer-section.is-visible .map-explorer-header {
    opacity: 1;
    transform: translateY(0);
}

.map-explorer-section.is-visible .map-interactive-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.map-explorer-section.is-visible .featured-locations-row {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}
