/* Portfolio Map — extracted from static source, adapted for WP template */

/* Hero */
.portfolio-map-hero {
    padding: 3rem 5vw;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.portfolio-map-hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 0 0 0.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: bicyclette, sans-serif;
}

.portfolio-map-hero p {
    max-width: 640px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    color: var(--slate, #5c6068);
}

/* Map container */
.portfolio-map-section {
    position: relative;
}

#lsMap {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 600px;
    border-top: 8px solid var(--navy, #2c2d82);
}

.ls-map-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.1rem;
    color: var(--muted, #8d9098);
}

/* Modal overlay */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-overlay.is-open {
    display: block;
    animation: lsMapFadeIn 0.2s ease;
}

@keyframes lsMapFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Modal panel */
.modal-panel {
    position: relative;
    background-color: #fff;
    margin: 3% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 720px;
    box-shadow: 0 30px 70px rgba(4, 3, 9, 0.35);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 400;
    cursor: pointer;
    z-index: 100;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    line-height: 0;
    transition: 0.2s;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Modal media / header */
.modal-media {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, rgba(44, 45, 130, 0.9), rgba(18, 18, 43, 0.95));
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.modal-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.modal-media::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.25) 0%, rgba(2, 2, 8, 0.75) 100%);
    z-index: 1;
}

.modal-category {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

/* Modal body */
.modal-body {
    padding: 2rem;
}

.modal-body h2 {
    font-size: 1.8rem;
    margin: 0 0 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted, #8d9098);
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.modal-section p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

/* Award badge */
.modal-award-wrapper {
    margin-bottom: 1.5rem;
}

.modal-award {
    display: inline-block;
    background: #fff8e1;
    border: 1px solid #ffd54f;
    color: #f57f17;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
}

/* Info grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.info-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted, #8d9098);
    font-weight: 600;
}

.info-value {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Modal actions */
.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.modal-actions .btn-outline {
    background: transparent;
    border: 2px solid var(--navy, #2c2d82);
    color: var(--navy, #2c2d82);
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: 0.2s;
}

.modal-actions .btn-outline:hover {
    background: var(--navy, #2c2d82);
    color: #fff;
}

/* Google Maps info window overrides */
.gm-style-iw {
    border-radius: 12px !important;
}

.gm-style .gm-style-iw-c {
    border-radius: 12px !important;
    padding: 12px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-panel {
        width: 95%;
        margin: 5% auto;
    }

    .modal-media {
        height: 220px;
    }

    .modal-body h2 {
        font-size: 1.4rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
