@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    --rspacing: 0.1fr;
    --cspacing: 1fr;
}

body {
    background-color: #ffffff;
    display: grid;
    grid-template-columns: var(--cspacing) repeat(8, 1fr) var(--cspacing);
    grid-template-rows: 0.1fr var(--rspacing) repeat(5, 0.15fr) var(--rspacing) repeat(6, 0.15fr) repeat(1, 0.15fr);
    font-family: "Lato", sans-serif;
    font-style: normal;
    font-size: 1.25vw;
    padding-top: 72px;
}
.logo img{
    max-height: 56px;
    height: auto;
    width: auto;
}

h1 {
    font-family: 'Playfair Display';
    color: #1c613e;
    font-size: 4vw;
    font-weight: 200;
}

h2 {
    font-family: 'Playfair Display';
    font-size: 2vw;

}

h3 {
    font-family: 'Playfair Display';
    color: #000000;
    font-size: 1.2vw;
    font-style: italic;
    font-weight: 100;


}

h4 {
    color: #832414;
    font-family: "Lato", sans-serif;

}

.scroll-button {
    background-color: #ffffff;
    color: #832414;
    border: none;
    font-family: "Lato", sans-serif;
    padding: 1vw;
    font-size: 1.2vw;
    font-weight: 300;
    cursor: pointer;
}
.scroll-button:hover {
    background-color: #ead9a7;
}

.lang-select {
    background-color: #ffffff;
    color: #832414;
    border: 1px solid #832414;
    border-radius: 4px;
    font-family: "Lato", sans-serif;
    padding: 4px 24px 4px 8px;
    font-size: 13px;
    font-weight: 300;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    height: auto;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23832414'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}
.heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.heading .logo {
    display: flex;
    align-items: center;
}

.heading .sections {
    display: flex;
    align-items: center;
}

.heading .sections nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
}

.scroll-button.active {
    background-color: #ead9a7;
    border-bottom: 2px solid #832414;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
}
.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #832414;
    border-radius: 2px;
}
.nav-close {
    display: none;
}

.gallery {
    grid-area: 3/2/8/10;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(5, 1fr);
    height: 56vh;
    gap: 6px;
    padding-top: 12px;
}
.image1{
    grid-area: 1/1/4/4;
    width: 95%;
    height: 90%;
    margin: auto;
    border-radius: 7px; /* Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow */

}
.image2{
    grid-area: 4/1/6/4;
    width: 95%;
    height: 90%;
    margin: auto;
    border-radius: 7px; /* Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow */
    object-position: top center; /* Crops from the bottom-right */
    

}

.image3 {
    grid-area: 1/4/3/7;
    width: 95%;
    height: 85%;
    margin: auto;
    border-radius: 7px; /* Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow */
}

.image4 {
    grid-area: 3/4/6/7;
    width: 95%;
    height: 90%;
    margin: auto;
    border-radius: 7px; /* Adds rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow */
}

.image5 {
    grid-area: 1/7/6/9;
    width: 95%;
    height: 93%;
    margin: auto;
    border-radius: 7px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Shared: prevent stretching on all gallery images */
.gallery img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    margin: 0;
    object-position: center center;
}

.room-amenities{
    grid-area: 9/2/14/7;
    display: grid;
    grid-template-columns: repeat(5, 1fr); 
    grid-template-rows: repeat(3, 1fr);
}

.room-amenities .title-container{
    grid-area: 1/1/2/4;
}


.room-amenities .amenities{
    grid-area: 2/1/4/6;
    font-family: 'Playfair Display';
    color: #000000;
    font-size: 1.2vw;
    font-weight: 100;

}

.reserve-form {
    grid-area: 9/7/14/10;
    margin-bottom: 24px;
    margin-left: auto;
}
.container {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow */
    width: 25vw;
    

}
h2 {
    margin-bottom: 20px;
    font-weight: 100;
}
.check-info {
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}
.check-info > div {
    display: flex;
}
.check-info > div:last-child {
    border-bottom: none;
}
.check-date {
    flex: 1;
    position: relative;
}
.check-date:first-child {
    border-right: 1px solid #7a7a7a;
    border: none;
}

.input-container {
    position: relative;
    margin-bottom: 15px;
}
.input-label {
    position: absolute;
    top: 7px;
    left: 10px;
    font-size: 0.8vw;
    font-weight: bold;
    color: #000000;
    transition: all 0.3s ease;
}
input:focus + .input-label, input:not(:placeholder-shown) + .input-label {
    top: 3px;
    font-size: 0.5vw;
}
input, select {
    width: 100%;
    padding: 20px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
}
input::placeholder {
    color: transparent;
}
.reserve-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(to bottom, #E7C038, #C9A114);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.5vw;;
}
.reserve-button:hover{
    background: linear-gradient(to bottom, #C9A114, #E7C038);
}

.input-container.error input,
.check-date.error input, 
.select-container.error select {
    border-color: red;
}

.error-message {
    color: red;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.input-container.error .error-message {
    display: block;
}
.check-date.error .error-message {
    display: block;
}
.select-container.error .error-message {
    display: block;
}

.reserve-button.submitted {
    background: linear-gradient(to bottom, #309026, #1c613e);
}
.reserve-button.submitted:hover {
    background: linear-gradient(to bottom,  #1c613e, #309026);
}
.reserve-button.submit-error {
    background: linear-gradient(to bottom, #b44343, #611c1c);
}
.reserve-button.submit-error:hover {
    background: linear-gradient(to bottom,  #611c1c, #b44343);
}
.reserve-button.animating {
    animation: pulse 1s;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.footer {
    grid-area: 16 / 1 / 17 / 11;
    display: grid;
    grid-template-columns: repeat(1, 1fr); 
    grid-template-rows: repeat(1, 1fr);
}

footer {
    background-color: #832414;
    color: white;
    text-align: center;
    padding: 20px 0;
  }
  
.footer-container {
max-width: 1200px;
margin: 0 auto;
}

.social-media {
list-style-type: none;
padding: 0;
}

.social-media li {
display: inline;
margin: 0 10px;
}

.social-media a img {
width: 30px;
height: 30px;
}

footer p {
margin-top: 15px;
font-size: 14px;
}

img {
    object-position: center center;
}

.custom-link {
    color: inherit; /* Inherits the color of the parent element, like the h3 */
    text-decoration: none; /* Removes underline */
}

.custom-link:hover {
    color: inherit; /* Keeps the color unchanged on hover */
}
.custom-link:visited {
    color: inherit; /* Keeps the color unchanged after being clicked */
}

ul li {
    margin-bottom: 7px;
}

@media (max-width: 900px) {
    body {
        display: block;
        font-size: 4vw;
    }

    body {
        padding-top: 56px;
    }
    .heading {
        padding: 8px 16px;
        height: 56px;
    }
    .heading .logo img {
        max-width: 120px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        position: fixed;
        inset: 0;
        background: white;
        z-index: 2000;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links .scroll-button,
    .nav-links a .scroll-button {
        font-size: 1.3rem;
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }
    .nav-close {
        display: block;
        position: absolute;
        top: 16px;
        right: 20px;
        background: none;
        border: none;
        font-size: 2rem;
        color: #832414;
        cursor: pointer;
        line-height: 1;
    }
    .hamburger {
        display: flex;
    }
    .lang-select {
        font-size: 0.85rem;
        padding: 4px 22px 4px 6px;
        background-position: right 6px center;
    }

    /* Gallery: single column */
    .gallery {
        display: none;
    }

    /* Room info + form: stacked */
    .room-amenities {
        grid-area: unset;
        display: block;
        padding: 16px;
    }
    .room-amenities .title-container,
    .room-amenities .amenities {
        grid-area: unset;
        display: block;
    }
    .room-amenities .amenities {
        font-size: 1rem;
    }

    .reserve-form {
        grid-area: unset;
        display: block;
        padding: 16px;
        margin: 0;
    }
    .container {
        width: 100%;
        box-sizing: border-box;
    }

    h1 { font-size: 8vw; }
    h2 { font-size: 5.5vw; }
    h3 { font-size: 4.5vw; }

    .reserve-button {
        font-size: 1rem;
    }
    input, select {
        font-size: 1rem;
    }

    .footer { grid-area: unset; }
}