/* =========================================================
   SURYA INSPIRASI LOCATION SECTION
   ========================================================= */

.school-location-section {
    position: relative;

    min-height: 660px;

    overflow: hidden;

    background: #e8efe9;
}


/* =========================================================
   MAP
   ========================================================= */

.school-location-map {
    position: absolute;

    inset: 0;

    overflow: hidden;

    background:
        #e3ece6;
}

.school-location-map iframe {
    position: absolute;

    inset: -70px -20px -70px -20px;

    width: calc(100% + 40px);
    height: calc(100% + 140px);

    border: 0;

    filter:
        saturate(0.78)
        contrast(0.92)
        brightness(1.06);

    pointer-events: none;
}

.school-location-map-overlay {
    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(9, 31, 64, 0.03),
            transparent 40%,
            rgba(255,255,255,0.04)
        );
}


/* =========================================================
   CONTENT
   ========================================================= */

.school-location-content {
    position: relative;

    z-index: 5;

    min-height: 660px;

    display: flex;

    align-items: center;

    padding-top: 60px;
    padding-bottom: 60px;
}


/* =========================================================
   LOCATION CARD
   ========================================================= */

.school-location-card {
    width:
        min(
            560px,
            100%
        );

    overflow: hidden;

    border:
        1px solid
        rgba(18, 48, 95, 0.08);

    border-radius: 30px;

    background:
        rgba(255,255,255,0.97);

    box-shadow:
        0 32px 80px
        rgba(16, 33, 58, 0.20);

    transform:
        translateY(0);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.school-location-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        0 38px 90px
        rgba(16, 33, 58, 0.23);
}


/* =========================================================
   PHOTO
   ========================================================= */

.school-location-photo {
    position: relative;

    height: 255px;

    overflow: hidden;

    background:
        #e9eef3;
}

.school-location-photo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.8s
        cubic-bezier(.2,.7,.2,1);
}

.school-location-card:hover
.school-location-photo img {
    transform:
        scale(1.035);
}


/* Graphic accents */

.school-location-photo-accent {
    position: absolute;

    pointer-events: none;
}

.accent-orange {
    width: 62px;
    height: 175px;

    left: -24px;
    top: -26px;

    transform:
        rotate(10deg);

    border-radius: 10px;

    background:
        #f5a018;
}

.accent-magenta {
    width: 220px;
    height: 105px;

    right: -72px;
    top: -57px;

    transform:
        rotate(24deg);

    background:
        #b81754;
}


/* Badge */

.school-location-badge {
    position: absolute;

    left: 24px;
    bottom: 21px;

    padding:
        9px
        13px;

    border-radius:
        999px;

    color: #12305f;

    background:
        rgba(255,255,255,0.93);

    border:
        1px solid
        rgba(255,255,255,0.65);

    box-shadow:
        0 8px 24px
        rgba(20,30,45,0.10);

    backdrop-filter:
        blur(12px);

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.school-location-body {
    padding:
        30px
        32px
        32px;
}

.school-location-eyebrow {
    display: block;

    margin-bottom: 8px;

    color: #b61b58;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.15em;

    text-transform:
        uppercase;
}

.school-location-body h2 {
    margin: 0;

    color: #12305f;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size:
        clamp(
            26px,
            2.2vw,
            34px
        );

    font-weight: 800;

    line-height: 1.1;

    letter-spacing:
        -0.045em;
}

.school-location-body h2 span {
    display: block;

    margin-top: 5px;

    color: #b61b58;
}


/* =========================================================
   DETAILS
   ========================================================= */

.school-location-details {
    display: grid;

    gap: 17px;

    margin-top: 25px;
}

.location-detail {
    display: grid;

    grid-template-columns:
        40px
        minmax(0, 1fr);

    gap: 13px;

    align-items: start;
}

.location-detail-icon {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border-radius: 13px;

    color: #b61b58;

    background:
        #fbf1f5;
}

.location-detail-icon svg {
    width: 19px;
    height: 19px;

    fill: currentColor;
}

.location-detail small {
    display: block;

    margin-bottom: 4px;

    color: #9a9faa;

    font-size: 10px;

    font-weight: 700;

    letter-spacing:
        0.07em;

    text-transform:
        uppercase;
}

.location-detail p,
.location-detail a {
    margin: 0;

    color: #37465f;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.6;
}

.location-detail a {
    text-decoration: none;

    transition:
        color 0.2s ease;
}

.location-detail a:hover {
    color: #b61b58;
}


/* =========================================================
   ACTIONS
   ========================================================= */

.school-location-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 11px;

    margin-top: 27px;
}

.location-primary-button,
.location-secondary-button {
    min-height: 49px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0
        18px;

    border-radius: 14px;

    font-family:
        "Plus Jakarta Sans",
        sans-serif;

    font-size: 12px;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.location-primary-button {
    color: #ffffff;

    background:
        linear-gradient(
            130deg,
            #b51754,
            #d32967
        );

    box-shadow:
        0 12px 26px
        rgba(182,27,88,0.18);
}

.location-primary-button svg {
    width: 17px;
    height: 17px;

    fill: currentColor;
}

.location-primary-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 16px 31px
        rgba(182,27,88,0.23);
}

.location-secondary-button {
    color: #12305f;

    border:
        1px solid
        rgba(18,48,95,0.10);

    background: #fff;
}

.location-secondary-button:hover {
    transform:
        translateY(-2px);

    background:
        #fffaf6;

    box-shadow:
        0 10px 22px
        rgba(18,48,95,0.07);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .school-location-section {
        min-height: 620px;
    }

    .school-location-content {
        min-height: 620px;

        padding-top: 48px;
        padding-bottom: 48px;
    }

    .school-location-card {
        width: 500px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .school-location-section {
        min-height: auto;

        display: flex;

        flex-direction: column;

        background: #f7f5f1;
    }


    .school-location-content {
        order: 1;

        min-height: auto;

        width: 100%;

        padding:
            36px
            14px
            28px;
    }


    .school-location-card {
        width: 100%;

        border-radius: 23px;

        box-shadow:
            0 20px 48px
            rgba(17,31,54,0.12);
    }


    .school-location-photo {
        height: 205px;
    }


    .school-location-body {
        padding:
            25px
            22px
            25px;
    }


    .school-location-body h2 {
        font-size: 27px;
    }


    .location-detail {
        grid-template-columns:
            36px
            minmax(0,1fr);
    }


    .location-detail-icon {
        width: 36px;
        height: 36px;

        border-radius: 11px;
    }


    .location-detail p,
    .location-detail a {
        font-size: 12px;

        overflow-wrap: anywhere;
    }


    .school-location-actions {
        display: grid;

        grid-template-columns:
            1fr;

        width: 100%;
    }


    .location-primary-button,
    .location-secondary-button {
        width: 100%;
    }


    /* Map becomes separate lower section */

    .school-location-map {
        order: 2;

        position: relative;

        inset: auto;

        width: 100%;
        height: 335px;
    }

    .school-location-map iframe {
        inset: -30px 0;

        width: 100%;
        height: calc(100% + 60px);
    }

}


/* =========================================================
   VERY SMALL
   ========================================================= */

@media (max-width: 380px) {

    .school-location-photo {
        height: 180px;
    }

    .school-location-body {
        padding:
            22px
            18px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .school-location-card,
    .school-location-photo img,
    .location-primary-button,
    .location-secondary-button {
        transition: none !important;
    }

}


/* =========================================================
   LOCATION V9 REFINEMENT
   More compact desktop + polished mobile
   ========================================================= */


/* Avoid sticky header covering section after smooth scroll */
.school-location-section {
    scroll-margin-top: 86px;
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 901px) {

    .school-location-section {
        min-height: 540px;
    }

    .school-location-content {
        min-height: 540px;

        padding-top: 42px;
        padding-bottom: 42px;
    }


    /* Card smaller and more balanced */

    .school-location-card {
        width: min(500px, 100%);

        border-radius: 26px;

        box-shadow:
            0 24px 58px
            rgba(16, 33, 58, 0.16);
    }

    .school-location-card:hover {
        transform: translateY(-3px);

        box-shadow:
            0 28px 65px
            rgba(16, 33, 58, 0.19);
    }


    /* Building photo */

    .school-location-photo {
        height: 205px;
    }

    .school-location-photo-accent.accent-orange {
        width: 54px;
        height: 145px;
    }

    .school-location-photo-accent.accent-magenta {
        width: 190px;
        height: 90px;
    }

    .school-location-badge {
        left: 20px;
        bottom: 17px;

        padding: 8px 12px;

        font-size: 9px;
    }


    /* Body */

    .school-location-body {
        padding: 24px 27px 26px;
    }

    .school-location-eyebrow {
        margin-bottom: 6px;

        font-size: 9px;
    }

    .school-location-body h2 {
        font-size: 28px;

        line-height: 1.08;
    }

    .school-location-body h2 span {
        margin-top: 3px;
    }


    /* Details */

    .school-location-details {
        gap: 12px;

        margin-top: 19px;
    }

    .location-detail {
        grid-template-columns: 35px minmax(0, 1fr);

        gap: 11px;
    }

    .location-detail-icon {
        width: 35px;
        height: 35px;

        border-radius: 11px;
    }

    .location-detail-icon svg {
        width: 16px;
        height: 16px;
    }

    .location-detail small {
        margin-bottom: 2px;

        font-size: 8px;
    }

    .location-detail p,
    .location-detail a {
        font-size: 11px;

        line-height: 1.5;
    }


    /* Buttons */

    .school-location-actions {
        gap: 9px;

        margin-top: 20px;
    }

    .location-primary-button,
    .location-secondary-button {
        min-height: 43px;

        padding: 0 15px;

        border-radius: 12px;

        font-size: 10px;
    }

}


/* =========================================================
   LARGE DESKTOP
   Keep card slightly away from browser edges
   ========================================================= */

@media (min-width: 1200px) {

    .school-location-content {
        padding-left: 18px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (min-width: 641px) and (max-width: 900px) {

    .school-location-section {
        min-height: 570px;

        scroll-margin-top: 90px;
    }

    .school-location-content {
        min-height: 570px;

        padding-top: 38px;
        padding-bottom: 38px;
    }

    .school-location-card {
        width: 460px;
    }

    .school-location-photo {
        height: 200px;
    }

    .school-location-body {
        padding: 24px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {

    .school-location-section {
        scroll-margin-top: 72px;

        background:
            linear-gradient(
                180deg,
                #faf8f5 0%,
                #f4f1ed 100%
            );
    }


    /*
    |--------------------------------------------------------------------------
    | Card
    |--------------------------------------------------------------------------
    */

    .school-location-content {
        padding:
            24px
            14px
            22px;
    }

    .school-location-card {
        width: 100%;

        border-radius: 21px;

        box-shadow:
            0 16px 38px
            rgba(17, 31, 54, 0.10);
    }


    /*
    |--------------------------------------------------------------------------
    | Image
    |--------------------------------------------------------------------------
    */

    .school-location-photo {
        height: 175px;
    }

    .school-location-photo-accent.accent-orange {
        width: 45px;
        height: 120px;

        left: -19px;
    }

    .school-location-photo-accent.accent-magenta {
        width: 150px;
        height: 76px;

        right: -50px;
        top: -42px;
    }

    .school-location-badge {
        left: 15px;
        bottom: 14px;

        padding:
            7px
            10px;

        font-size: 8px;
    }


    /*
    |--------------------------------------------------------------------------
    | Body
    |--------------------------------------------------------------------------
    */

    .school-location-body {
        padding:
            21px
            19px
            21px;
    }

    .school-location-eyebrow {
        margin-bottom: 6px;

        font-size: 8px;
    }

    .school-location-body h2 {
        font-size: 24px;

        line-height: 1.08;
    }

    .school-location-body h2 span {
        margin-top: 3px;
    }


    /*
    |--------------------------------------------------------------------------
    | Contact details
    |--------------------------------------------------------------------------
    */

    .school-location-details {
        gap: 13px;

        margin-top: 19px;
    }

    .location-detail {
        grid-template-columns:
            34px
            minmax(0, 1fr);

        gap: 10px;
    }

    .location-detail-icon {
        width: 34px;
        height: 34px;

        border-radius: 10px;
    }

    .location-detail-icon svg {
        width: 16px;
        height: 16px;
    }

    .location-detail small {
        font-size: 8px;

        margin-bottom: 2px;
    }

    .location-detail p,
    .location-detail a {
        font-size: 11px;

        line-height: 1.55;
    }


    /*
    |--------------------------------------------------------------------------
    | Buttons
    |--------------------------------------------------------------------------
    */

    .school-location-actions {
        gap: 9px;

        margin-top: 20px;
    }

    .location-primary-button,
    .location-secondary-button {
        min-height: 46px;

        border-radius: 13px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Map
    |--------------------------------------------------------------------------
    | Map remains below card instead of behind it.
    */

    .school-location-map {
        height: 270px;

        border-top:
            1px solid
            rgba(18, 48, 95, 0.06);
    }

    .school-location-map iframe {
        inset: -20px 0;

        height: calc(100% + 40px);
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .school-location-content {
        padding-left: 11px;
        padding-right: 11px;
    }

    .school-location-photo {
        height: 155px;
    }

    .school-location-body {
        padding:
            19px
            16px;
    }

    .school-location-body h2 {
        font-size: 22px;
    }

    .location-detail {
        grid-template-columns:
            32px
            minmax(0, 1fr);
    }

    .location-detail-icon {
        width: 32px;
        height: 32px;
    }

    .school-location-map {
        height: 245px;
    }

}


/* =========================================================
   LOCATION V10
   Mobile Map Refinement
   ========================================================= */

@media (max-width: 640px) {

    /*
    |--------------------------------------------------------------------------
    | Overall section
    |--------------------------------------------------------------------------
    */

    .school-location-section {
        padding-bottom: 0;

        background:
            linear-gradient(
                180deg,
                #faf8f5 0%,
                #f6f2ed 100%
            );
    }


    /*
    |--------------------------------------------------------------------------
    | Information card
    |--------------------------------------------------------------------------
    */

    .school-location-content {
        padding:
            22px
            14px
            24px;
    }

    .school-location-card {
        border-radius: 22px;

        box-shadow:
            0 16px 40px
            rgba(16, 31, 54, 0.10);
    }


    /*
    |--------------------------------------------------------------------------
    | Map becomes its own card
    |--------------------------------------------------------------------------
    */

    .school-location-map {
        position: relative;

        order: 2;

        width:
            calc(100% - 28px);

        height: 245px;

        margin:
            0
            auto
            28px;

        overflow: hidden;

        border:
            1px solid
            rgba(18, 48, 95, 0.08);

        border-radius: 21px;

        background:
            #dfece4;

        box-shadow:
            0 15px 36px
            rgba(17, 31, 54, 0.11);

        isolation: isolate;
    }


    /*
    |--------------------------------------------------------------------------
    | Crop Google UI a little.
    |
    | Google Maps iframe is cross-origin, so internal controls cannot be
    | styled directly. We shift the iframe upward so the default
    | "Open in Maps" panel is mostly outside the visible frame.
    |--------------------------------------------------------------------------
    */

    .school-location-map iframe {
        position: absolute;

        top: -54px;
        left: -12px;

        width:
            calc(100% + 24px);

        height:
            calc(100% + 105px);

        border: 0;

        pointer-events: none;

        filter:
            saturate(0.82)
            contrast(0.95)
            brightness(1.04);
    }


    /*
    |--------------------------------------------------------------------------
    | Subtle edge treatment
    |--------------------------------------------------------------------------
    */

    .school-location-map::after {
        content: "";

        position: absolute;

        inset: 0;

        z-index: 2;

        pointer-events: none;

        border-radius: inherit;

        box-shadow:
            inset
            0 0 0 1px
            rgba(255,255,255,0.22);

        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,0.05),
                transparent 28%,
                transparent 80%,
                rgba(18,48,95,0.04)
            );
    }


    /*
    |--------------------------------------------------------------------------
    | Our own map label
    |--------------------------------------------------------------------------
    */

    .school-location-map::before {
        content: "CAMPUS LOCATION";

        position: absolute;

        top: 13px;
        left: 13px;

        z-index: 5;

        padding:
            7px
            10px;

        border:
            1px solid
            rgba(18,48,95,0.07);

        border-radius: 999px;

        color: #12305f;

        background:
            rgba(255,255,255,0.92);

        box-shadow:
            0 7px 18px
            rgba(18,48,95,0.09);

        backdrop-filter:
            blur(10px);

        -webkit-backdrop-filter:
            blur(10px);

        font-family:
            "Plus Jakarta Sans",
            sans-serif;

        font-size: 8px;

        font-weight: 800;

        letter-spacing: 0.12em;
    }


    /*
    |--------------------------------------------------------------------------
    | Keep map from feeling attached to footer
    |--------------------------------------------------------------------------
    */

    .school-location-section
    + .sis-footer {
        margin-top: 0;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {

    .school-location-map {
        width:
            calc(100% - 22px);

        height: 225px;

        margin-bottom: 22px;

        border-radius: 18px;
    }

    .school-location-map::before {
        top: 11px;
        left: 11px;

        font-size: 7px;
    }

}


/* =========================================================
   LOCATION V11
   Mobile: remove embedded map
   ========================================================= */

@media (max-width: 640px) {

    /*
    |--------------------------------------------------------------------------
    | Embedded Google Maps is intentionally hidden on phones.
    |
    | Users already have the dedicated "Open in Google Maps"
    | action in the campus card, giving a cleaner mobile experience.
    |--------------------------------------------------------------------------
    */

    .school-location-map {
        display: none !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Location section
    |--------------------------------------------------------------------------
    */

    .school-location-section {
        min-height: auto !important;

        padding:
            0
            0
            34px !important;

        background:
            linear-gradient(
                180deg,
                #faf8f5 0%,
                #f7f3ee 100%
            ) !important;
    }

    .school-location-content {
        width: 100% !important;

        min-height: auto !important;

        padding:
            26px
            14px
            0 !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Campus card
    |--------------------------------------------------------------------------
    */

    .school-location-card {
        width: 100% !important;

        margin:
            0
            auto !important;

        overflow: hidden;

        border-radius:
            22px !important;

        border:
            1px solid
            rgba(
                18,
                48,
                95,
                0.07
            ) !important;

        background:
            #ffffff !important;

        box-shadow:
            0 16px 38px
            rgba(
                17,
                31,
                54,
                0.09
            ) !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Photo
    |--------------------------------------------------------------------------
    */

    .school-location-photo {
        height:
            168px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Body
    |--------------------------------------------------------------------------
    */

    .school-location-body {
        padding:
            21px
            19px
            22px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Buttons
    |--------------------------------------------------------------------------
    */

    .school-location-actions {
        display: grid !important;

        grid-template-columns:
            1fr !important;

        gap:
            9px !important;

        margin-top:
            19px !important;
    }

    .location-primary-button,
    .location-secondary-button {
        width: 100% !important;

        min-height:
            47px !important;

        border-radius:
            13px !important;

        font-size:
            11px !important;
    }


    /*
    |--------------------------------------------------------------------------
    | Prevent excessive white space before footer
    |--------------------------------------------------------------------------
    */

    .school-location-section
    + .sis-footer {
        margin-top:
            0 !important;
    }

}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 380px) {

    .school-location-section {
        padding-bottom:
            26px !important;
    }

    .school-location-content {
        padding-left:
            11px !important;

        padding-right:
            11px !important;
    }

    .school-location-photo {
        height:
            150px !important;
    }

}
