/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Red Hat Display', sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ebebeb;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo {
    font-weight: 800;
    color: #FF385C; /* Airbnb-style Brand Color */
    font-size: 1.8rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    text-decoration: none;
    color: #222;
    font-weight: 400;
    font-size: 0.9rem;
}

/* Hero Section */
#hero {
    height: 300px;
    text-align: center;
  
    margin-top: 20px;
    border-radius: 12px;
    background-image: url("images/image_0.jpg");
    background-size: 100% auto;
    background-position: center;
   
}

#hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Sections */
section {
    padding: 60px 0;
    border-bottom: 1px solid #ebebeb;
}

h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* This creates two equal columns */
    gap: 15px 20px;                 /* First number is vertical gap, second is horizontal */
    align-items: center;

}

.amenity {
    font-size: 1.1rem;
}

/* Image Gallery Grid */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 images per row */
    gap: 15px;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Keeps images uniform size */
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.02);
}

/* Contact Card */
.contact-card {
    background: #f7f7f7;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: #717171;
    font-size: 0.8rem;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: 1fr; /* 1 image per row on mobile */
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }

    nav {
        padding: 20px 0;
    }

    #hero {
        height: 200px;
    } {
    /* Make the image take up almost the entire screen width */
    .modal-content {
        max-width: 100%; 
        width: 100%;
        max-height: 85vh; /* Leaves a little room for the caption/close button */
        border-radius: 0; /* Edge-to-edge looks cleaner on mobile */
    }

    /* Move the "X" button so it's easier to hit with a thumb */
    .close {
        top: 10px;
        right: 20px;
        font-size: 35px;
        background: rgba(0,0,0,0.5); /* Adds a little circle background to see it better */
        width: 45px;
        height: 45px;
        line-height: 45px;
        text-align: center;
        border-radius: 50%;
    }

    /* Adjust navigation arrows for thumbs */
    .prev, .next {
        padding: 12px;
        font-size: 30px;
        background-color: rgba(0, 0, 0, 0.3); /* Makes arrows visible over bright photos */
        margin-top: -30px;
    }
    
    .next { right: 5px; }
    .prev { left: 5px; }
}


}
/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top of everything */
    padding-top: 50px; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

/* Modal Content (Image) */
.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80vh;
    border-radius: 8px;
    animation-name: zoom;
    animation-duration: 0.3s;
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
}

/* Caption Text */
#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}
/* Navigation Arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2100; /* Higher than modal content */
}

/* Position the "next button" to the right */
.next {
    right: 30px;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 30px;
}

/* Hover effect for arrows */
.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* Adjust close button to stay on top */
.close {
    z-index: 2200;
}
