/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', sans-serif;
    color: #1a1a1a;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

/* Navigation */
nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: fixed;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

nav .nav-logo:hover {
    opacity: 0.8;
}

nav .nav-logo img {
    height: 40px;
    width: auto;
}

nav .nav-logo span {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #2c3e50;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

nav ul li a:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 100px 20px 40px;
    animation: fadeIn 1s ease-in;
}

.content {
    padding: 100px 20px 40px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    flex-grow: 1;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 2px solid rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

a:hover {
    border-bottom-color: #3498db;
    color: #2980b9;
}

/* Logo */
.logo {
    max-width: 450px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* Booking Buttons */
.booking-buttons {
    margin: 40px 0;
    text-align: center;
}

.booking-buttons a {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px;
    background: #3498db;
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(52, 152, 219, 0.3);
}

.booking-buttons a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.4);
}

/* Kaysville Airbnb Two-Column Layout */
.airbnb-container {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.airbnb-left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.airbnb-right-column {
    display: flex;
    flex-direction: column;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Featured image (first image) spans full width */
.gallery img:first-child {
    grid-column: 1 / -1;
    height: 350px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    transition: opacity 0.3s ease;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 20px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Amenities */
.amenities {
    max-width: 100%;
    margin: 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.amenities h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: left;
    color: #2c3e50;
}

.amenities-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.amenities h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #3498db;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 8px;
}

.amenities ul {
    list-style: none;
    padding: 0;
}

.amenities ul li {
    font-size: 0.95rem;
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    color: #555;
}

.amenities ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Map */
.map {
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 15px;
}

/* Footer */
footer {
    color: #555;
    font-size: 1rem;
    text-align: center;
    padding: 25px;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1.1rem;
    }

    .logo {
        max-width: 90%;
    }

    nav .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .booking-buttons a {
        display: block;
        width: 90%;
        margin: 10px auto;
    }

    /* Stack Airbnb layout on mobile: pictures, amenities, map */
    .airbnb-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .airbnb-left-column {
        order: 2;
    }

    .airbnb-right-column {
        order: 1;
    }

    .gallery {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 15px;
    }

    .gallery img {
        height: 200px;
    }

    .gallery img:first-child {
        height: 250px;
    }

    .amenities {
        padding: 20px;
    }

    .amenities h2 {
        font-size: 1.8rem;
    }

    .amenities-grid {
        gap: 20px;
    }

    .amenities ul li {
        font-size: 1rem;
    }

    .map iframe {
        height: 300px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 30px;
        padding: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .content {
        padding: 80px 20px 20px;
    }

    .main-content {
        padding: 80px 20px 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }

    nav .nav-logo span {
        font-size: 1rem;
    }

    nav ul li a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}