@import url('https://fonts.googleapis.com/css2?family=Neucha&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html,
body,
.wrapper,
.main-split {
    overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

html,
body {
    height: 100%;
}

.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

body {
    display: flex;
    flex-direction: column;
    text-align: center;
    background-color: rgb(190, 179, 164);
}

header {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 20px;
    border-bottom: 3px solid rgb(71, 38, 20);
    background-color: #f5f0e6;
}

main nav {
    padding-bottom: 20px;
    padding-top: 20px;
    background-color: #eee2cb;
}

main nav a {
    font-family: 'Lora', serif;
    font-weight: bold;
    font-size: 1.5rem;
    text-decoration: none;
    color: #097d4c;
}

main nav a:hover {
    color: rgb(30, 126, 30);
    cursor: pointer;
}

main a {
    text-decoration: none;
}

.primary-links li:nth-child(2) a::before {
    content: "🖼️ ";
    margin-right: 8px;
}

.primary-links li {
    list-style-type: none;
}

footer {
    padding: 20px;
    background-color: #f5f0e6;
    font-family: 'Lora', serif;
    font-size: 1rem;
    color: rgb(56, 45, 45);
}

footer>.mapAndReviews {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.reviews {
    grid-column: 3;
    justify-self: end;
}

footer>.mapAndReviews>.reviews {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

footer>.mapAndReviews>.reviews> :first-of-type {
    font-weight: bold;
}

.map-container {
    width: min(400px, 100%);
    aspect-ratio: 4/3;
    margin: 10px auto;
    grid-column: 2;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.language-switcher {
    margin-top: 1em;
    margin-bottom: 1em;
}

.language-switcher button {
    padding: 0.5em 1em;
    margin: 0 0.3em;
    background-color: #fff3e0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.language-switcher button:hover {
    background-color: #e4d7c3;
}

.social {
    display: flex;
    justify-content: center;
    gap: 10px;
}

svg {
    fill: blue;
}

.main-split {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
    align-items: stretch;
}

.main-left {
    overflow: hidden;
}

.main-left img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    display: block;
}

.main-right {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.main-right>nav {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-right [aria-label="Primary"] {
    width: 100%;
    height: 100vh;
    text-align: center;
}

.main-right .primary-links {
    display: flex;
    flex-direction: column;
    gap: 45px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 56px;
    box-sizing: border-box;
    font-size: 1.4rem;
    color: #f3e9d9;
    background: #5e3b1f;
    border: 2px solid #532c0d;
    border-radius: 9999px;
    padding: 0 18px;
    transition: background .2s, box-shadow .2s, transform .05s;
    text-decoration: none;
    cursor: pointer;
}

.primary-links a:hover {
    background: #e5d9c5;
}

.primary-links a:active {
    transform: translateY(1px);
}

.primary-links a:focus-visible {
    outline: 3px solid #2d6a4f;
    outline-offset: 2px;
}

/* ✅ Responsive Adjustments */
@media (max-width: 1024px) {
    .main-split {
        grid-template-columns: 55% 45%;
        min-height: 80vh;
    }

    header h1 {
        font-size: 2.2rem;
    }

    .primary-links a {
        font-size: 1.3rem;
    }
}

@media (max-width: 800px) {
    .main-split {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .main-left {
        height: auto;
    }

    .main-left img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .main-right .primary-links {
        display: flex;
        flex-direction: column;
        gap: 16px;
        align-items: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .primary-links a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 220px;
        min-height: 52px;
        padding: 0 16px;
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    header {
        padding: 15px;
    }

    header nav a {
        font-size: 1.2rem;
    }

    .main-split {
        grid-template-columns: 1fr;
    }

    .main-left {
        height: auto;
    }

    .main-left img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    footer {
        font-size: 0.9rem;
        padding: 15px;
    }

    .language-switcher {
        flex-wrap: wrap;
        justify-content: center;
    }

    .language-switcher button {
        width: 100px;
        justify-content: center;
    }

    .main-right {
        display: block;
        padding: 12px 0;
        background-color: #eee2cb;
    }

    .main-right>nav {
        display: block;
        padding: 8px 0;
        background: transparent;
        border: 0;
    }

    .main-right [aria-label="Primary"] {
        height: fit-content;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .main-right .primary-links {
        gap: 8px;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .primary-links a {
        width: min(100%, 320px);
        max-width: 100%;
        min-height: 40px;
        padding: 4px 10px;
        font-size: 1rem;
    }

    footer > .mapAndReviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    }

    .reviews,
.map-container {
    grid-column: auto;
}

    footer > .mapAndReviews > .reviews {
        align-items: center;
    }

     .map-container {
        width: min(400px, 90vw);
    }

}

@media (max-width: 480px) {
    .map-container {
        width: clamp(200px, 50vw, 320px);
    }
}