/* =========================================
   ACADEMY GOOGLE MAP PRE-FOOTER SECTION
========================================= */
html {                      
    scroll-behavior: smooth;
}                           

.academy-map-section,
.academy-map-section * {
    box-sizing: border-box;
}

.academy-map-section {
    padding: 75px 20px 85px;
    background: linear-gradient(180deg, #f7faf5 0%, #eef5ea 100%);
    border-top: 1px solid #dce8d5;
}

/* =========================================
   SECTION HEADER
========================================= */

.map-section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
}

.map-tag {
    display: inline-block;
    color: #ae842c;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.map-section-header h2 {
    color: #285b40;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
}

.map-section-header p {
    color: #344b38;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.map-section-header p i {
    color: #ae842c;
    font-size: 16px;
}

/* =========================================
   MAP CARD & IFRAME CONTAINER
========================================= */

.map-card-wrapper {
    background: #ffffff;
    border: 2px solid #d7e8d1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(23, 53, 45, 0.1);
}

.map-frame-container {
    position: relative;
    width: 100%;
    height: 430px;
    background: #e5ece2;
}

.map-frame-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================
   CUSTOM LOGO PIN OVERLAY
========================================= */

.custom-logo-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.25s ease;
}

.custom-logo-pin:hover {
    transform: translate(-50%, -106%) scale(1.05);
}

.pin-badge {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #285b40;
    outline: 3px solid #c9a64e;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(23, 53, 45, 0.35);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.pin-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.pin-pointer {
    width: 0;
    height: 0;
    border-left: 11px solid transparent;
    border-right: 11px solid transparent;
    border-top: 15px solid #285b40;
    margin-top: -1px;
    z-index: 2;
}

.pin-pulse {
    position: absolute;
    bottom: -6px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(164, 122, 34, 0.45);
    animation: mapPulse 2s infinite ease-out;
    z-index: 1;
}

@keyframes mapPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    100% {
        transform: scale(2.1);
        opacity: 0;
    }
}

/* =========================================
   BOTTOM ADDRESS & DIRECTIONS BAR
========================================= */

.map-info-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 28px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9f1 100%);
    border-top: 1px solid #dce8d5;
}

.map-address-box {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.map-address-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #285b40 0%, #17352d 100%);
    color: #e8cb7a;
    border: 1.5px solid #c9a64e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.map-address-text h4 {
    color: #285b40;
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
}

.map-address-text p {
    color: #596957;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.map-directions-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: linear-gradient(100deg, #285b40, #3b7a57);
    color: #ffffff;
    border: 2px solid #e8cb7a;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.map-directions-btn:hover {
    background: linear-gradient(100deg, #b58a32, #d6b45d);
    border-color: #b58a32;
    color: #ffffff;
    transform: translateY(-2px);
}

/* =========================================
   RESPONSIVE BREAKPOINTS
========================================= */

@media (max-width: 991px) {
    .academy-map-section {
        padding: 60px 20px 70px;
    }

    .map-section-header h2 {
        font-size: 32px;
    }

    .map-frame-container {
        height: 380px;
    }
}

@media (max-width: 767px) {
    .academy-map-section {
        padding: 48px 16px 58px;
    }

    .map-section-header h2 {
        font-size: 28px;
    }

    .map-section-header p {
        font-size: 14px;
        flex-direction: column;
        gap: 4px;
    }

    .map-frame-container {
        height: 320px;
    }

    .map-info-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 16px;
    }

    .map-directions-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .academy-map-section {
        padding: 38px 14px 48px;
    }

    .map-section-header h2 {
        font-size: 24px;
    }

    .map-frame-container {
        height: 270px;
    }

    .pin-badge {
        width: 52px;
        height: 52px;
    }

    .map-address-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 16px;
    }

    .map-address-text h4 {
        font-size: 15px;
    }

    .map-address-text p {
        font-size: 13px;
    }
}