@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');

/* ========= ROOT & BASE ========= */
:root {
    --header-dark: #639AFF;
    --bg-light: #ffffff;
    --text: #000000;
    --gutter: 18px;
}

* { box-sizing: border-box; }

body {
    font-family: Roboto, sans-serif;
    margin: 0;
    color: var(--text);
    background: var(--bg-light);
}

/* ========= HEADER (MAIN) ========= */
.header {
    background: var(--header-dark);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Centered logo */
.logo-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-center img {
    height: 50px;
    width: auto;
}

/* Navigation */
.nav-left a {
    color: var(--text);
    text-decoration: none;
    margin-right: 12px;
}

.nav-right button {
    margin-left: 6px;
    padding: 6px 10px;
    cursor: pointer;
    font-weight: 700;
}

/* ========= MAIN LAYOUT ========= */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

.split {
    display: flex;
    gap: var(--gutter);
    height: calc(100vh - 140px);
}

.map-pane {
    flex: 0 0 70%;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.side-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-photo {
    flex: 7;
    overflow: hidden;
}

.side-photo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
    border-radius: 10px;
    display: block;
}

.side-video { flex: 3; }

.side-video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========= TEXT ========= */
.page-title {
    font-size: 28px;
    margin: 12px 0;
}

.section-title {
    font-size: 20px;
    margin-bottom: 4px;
    font-weight: 700;
}

.location {
    font-size: 14px;
    font-weight: 400;
    margin-top: 0;
}

/* ========= MOBILE ≤ 900px ========= */
@media (max-width: 900px) {

    /* Restore normal centered header layout */
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 16px 10px;
    }

    /* Logo becomes normal flow element */
    .logo-center {
        position: relative;
        left: auto;
        transform: none;
        order: -1;
        margin-bottom: 8px;
    }

    .logo-center img {
        max-width: 120px;
        height: auto;
    }

    .nav-left {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .nav-left a {
        margin: 0;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
        font-size: 16px;
        font-weight: 500;
    }

    .nav-right {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

    /* Content stacking */
    .split {
        flex-direction: column;
        height: auto;
    }

    .map-pane iframe {
        width: 100%;
        height: 450px;
    }

    .side-video iframe {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ========= VERY SMALL ≤ 500px ========= */
@media (max-width: 500px) {

    .header {
        padding: 12px 8px;
        gap: 8px;
    }

    .logo-center img {
        max-width: 100px;
    }

    .nav-left a {
        font-size: 14px;
        padding: 6px 10px;
        border-radius: 6px;
    }

    .nav-right button {
        font-size: 13px;
        padding: 5px 9px;
    }
}

/* ========= LANGUAGE ACTIVE ========= */
.lang-btn.active-lang {
    background: #000 !important;
    color: #fff !important;
    border: 1px solid #000;
    opacity: 0.9;
    cursor: default;
}

.active-lang {
    background-color: #333 !important;
    color: #fff !important;
    border: 1px solid #000 !important;
    opacity: 0.7;
}

/* ========= FOOTER ========= */
.footer {
    padding: 20px;
    text-align: center;
    color: #222;
    opacity: 0.8;
}
