/* --- Peer-to-Peer Collaboration & Map Discovery --- */
.collab-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.collab-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 3rem;
    position: relative;
    z-index: 20;
}

.search-bar-modern {
    flex: 1;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-bar-modern:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--studio-primary);
    box-shadow: 0 0 30px rgba(225, 48, 108, 0.15);
}

.search-bar-modern i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.3rem;
}

.search-bar-modern input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.05rem;
    outline: none;
    font-family: 'Outfit', sans-serif;
}

.map-discovery-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 4rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    background: #0b0b0d;
}

.discovery-map {
    height: 650px;
    width: 100%;
    z-index: 10;
}

.map-view-controls {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(20px);
    padding: 7px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.map-toggle {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    letter-spacing: 0.5px;
}

.map-toggle.active {
    background: var(--studio-primary);
    color: #fff;
    box-shadow: 0 6px 18px rgba(225, 48, 108, 0.35);
}

/* Custom Popup Premium Styling */
.map-popup-premium {
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    min-width: 250px;
    padding: 5px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1.5px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.popup-header strong {
    color: var(--studio-primary);
    font-size: 1.15rem;
    letter-spacing: -0.3px;
}

.popup-header span {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 800;
    text-transform: uppercase;
}

.popup-skill {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 8px;
    color: #2c3e50;
}

.popup-contact {
    margin-bottom: 15px;
}

.popup-contact a {
    color: #0084ff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.popup-bio {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    white-space: normal;
    background: rgba(0, 0, 0, 0.02);
    padding: 10px;
    border-radius: 8px;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (max-width: 900px) {
    .collab-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .search-bar-modern {
        max-width: none;
    }

    .discovery-map {
        height: 500px;
    }
}

/* --- Registration Modal Glassmorphism --- */
.registration-modal {
    max-width: 650px;
    background: rgba(255, 255, 255, 0.99) !important;
    backdrop-filter: blur(40px);
    border-radius: 24px;
    color: #1a1a1a;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 800;
    color: #666;
    margin-bottom: 0.6rem;
}

.form-group input,
.form-group textarea {
    background: rgba(0, 0, 0, 0.03);
    border: 2px solid transparent;
    border-radius: 14px;
    padding: 14px 18px;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--studio-primary);
    box-shadow: 0 8px 25px rgba(225, 48, 108, 0.12);
}

/* --- Anu Bot Fixes --- */
.bot-header {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.audio-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-toggle-btn:hover {
    background: var(--studio-primary);
}

.audio-toggle-btn i {
    font-size: 1.1rem;
}

.audio-toggle-btn.muted i::before {
    content: "\F28E";
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

/* --- 🏛️ Premium NIFT Campus Pin Pulse Highlight --- */
.custom-campus-marker {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    animation: marker-pulse 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes marker-pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(225, 48, 108, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(225, 48, 108, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(225, 48, 108, 0);
    }
}
