/* Global Box-Sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base Styles */
body {
    margin: 0;
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #fffffe;
    /* Updated to white background */
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip to main content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid #7f8860;
    outline-offset: 2px;
}

a {
    text-decoration: none;
    color: inherit;
}

h1,
h2 {
    font-family: 'Merriweather', serif;
    color: #4a4a4a;
}

/* Improve heading hierarchy for SEO */
h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: bold;
}

h2 {
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #7f8860;
    display: inline-block;
    padding-bottom: 5px;
    color: #7f8860;
}

h3 {
    font-size: 1.5em;
    color: #4a4a4a;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    font-family: 'Merriweather', serif;
}

/* Header Styles with Overlay and Gradient */
header {
    position: relative;
    background: url('assets/pattern.png') no-repeat center center;
    /* Prevent repeating */
    background-size: cover;
    /* Scale the image to cover the header */
    color: #333;
    padding: 150px 20px;
    text-align: center;
    overflow: hidden;
    /* Ensure pseudo-elements are contained */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    /* Overlay opacity */
    z-index: 1;
}

header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Adjust height as needed */
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
}

header>* {
    position: relative;
    z-index: 3;
    /* Ensure content is above all overlays */
}

/* Property Information Overlay */
.property-info {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.property-info div {
    background-color: #c5cd9f;
    /* Light green background */
    color: #333;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-info div i {
    color: #7f8860;
    /* Darker green for icons */
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    font-weight: bold;
}

header p {
    font-size: 1.3em;
    margin-top: 0;
}

/* Navigational Menu */
nav {
    margin-top: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    font-size: 1em;
    color: #333;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    color: #7f8860;
}

nav ul li a[aria-current="page"] {
    font-weight: bold;
    color: #7f8860;
}

/* Container */
.container {
    padding: 30px 20px;
    max-width: 1200px;
    margin: auto;
}

/* Masonry Grid Styles */
.gallery {
    column-count: 3;
    column-gap: 1em;
    padding-top: 2em;
}

.gallery h2 {
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #7f8860;
    /* Darker green border */
    display: inline-block;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #7f8860;
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1em;
    background-color: #fffffe;
    /* White background */
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.gallery-item p {
    margin-top: 8px;
    font-size: 1em;
    color: #555;
}

/* Fade-In Effect for Gallery Images */
.gallery-item img {
    opacity: 0;
    filter: blur(10px); /* Optional: Adds a slight blur initially */
    transition: opacity 0.5s ease-in-out, filter 0.5s ease-in-out;
}

.gallery-item img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* Responsive Masonry Grid */
@media (max-width: 768px) {
    .gallery {
        column-count: 1;
    }
}

/* Description */
.description h2 {
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #7f8860;
    /* Darker green border */
    display: inline-block;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #7f8860;
    /* Darker green text */
}

.description p {
    font-size: 1.1em;
    color: #555;
    width: 100%;
    /* Full width */
    margin: 10px 0;
    /* Remove auto margins */
    line-height: 1.8;
}

/* Booking Buttons - Only Airbnb and Booking.com Styles */
.booking {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin: 30px 0;
}

.booking-airbnb {
    padding: 12px 0;
    margin: 0;
    border: none;
    background-color: #FF5A5F;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(255,90,95,0.08);
    flex: 1 1 calc(50% - 10px);
    min-width: 150px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.booking-airbnb:hover {
    background-color: #e04850;
    color: #fff;
}

.booking-bookingcom {
    padding: 12px 0;
    margin: 0;
    border: none;
    background-color: #003580;
    color: #fff;
    cursor: pointer;
    font-size: 1em;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,53,128,0.08);
    flex: 1 1 calc(50% - 10px);
    min-width: 150px;
    text-align: center;
    font-weight: bold;
    letter-spacing: 0.5px;
}
.booking-bookingcom:hover {
    background-color: #0051a8;
    color: #fff;
}

.booking button:nth-child(3) {
    flex: 1 1 calc(33.33% - 10px);
}

@media (max-width: 768px) {
    .booking-airbnb,
    .booking-bookingcom {
        flex: 1 1 100%;
    }
    .booking button:nth-child(3) {
        flex: 1 1 100%;
    }
}

/* Contact Form */
.contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #7f8860;
    /* Darker green border */
    display: inline-block;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #7f8860;
    /* Darker green text */
}

.contact form {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    background-color: #fffffe;
    /* White background */
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    /* Ensure it doesn't exceed container */
    width: 100%;
}

.contact form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact form input,
.contact form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-size: 1em;
    transition: border-color 0.3s;
}

.contact form input:focus,
.contact form textarea:focus {
    border-color: #7f8860;
    /* Darker green on focus */
    outline: none;
}

.contact form button {
    padding: 12px;
    border: none;
    background-color: #7f8860;
    /* Darker green */
    color: white;
    cursor: pointer;
    font-size: 1em;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact form button:hover {
    background-color: #c5cd9f;
    /* Light green on hover */
    color: #333;
    transform: translateY(-2px);
}

.map iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Styles with Overlay and Gradient */
footer {
    position: relative;
    background: url('assets/pattern.png') no-repeat center center;
    /* Match header pattern */
    background-size: cover;
    /* Ensure it scales properly */
    color: #333;
    text-align: center;
    padding: 150px 20px;
    overflow: hidden;
    /* Ensure pseudo-elements are contained */
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.5);
    /* Overlay opacity */
    z-index: 1;
}

footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    /* Adjust height as needed */
    background: linear-gradient(to top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 2;
}

footer>* {
    position: relative;
    z-index: 3;
    /* Ensure content is above all overlays */
}

footer p {
    margin: 5px 0;
    font-size: 0.95em;
}

/* Footer Social Icons */
footer .social-icon {
    display: inline-flex;
    align-items: center;
    margin-top: 10px;
    font-size: 1.2em;
    color: #7f8860;
    /* Darker green for icons */
    transition: color 0.3s;
}

footer .social-icon i {
    margin-right: 8px;
}

footer .social-icon:hover {
    color: #c5cd9f;
    /* Light green on hover */
}

.walks h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #7f8860;
    /* Darker green border */
    display: inline-block;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #7f8860;
    /* Darker green text */
}

.walks .walk-list {
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    gap: 20px;
    /* Remove justify-content: center; */
}

.walks .walk-item {
    background-color: #fffffe;
    /* White background */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    /* Full width */
    display: flex;
    flex-direction: row;
    /* Arrange content horizontally */
    gap: 20px;
    /* Space between elements if needed */
    align-items: flex-start;
    /* Align items at the top */
}

.walks .walk-item h3 {
    margin-top: 0;
    color: #7f8860;
    /* Darker green */
    flex: 1;
    /* Allow heading to take available space */
}

.walks .walk-item p {
    margin: 5px 0;
    color: #555;
    flex: 2;
    /* Allow paragraphs to take more space */
}

/* Reviews Section */
.reviews {
    padding: 30px 0 30px 0;
    background-color: transparent;
    max-width: 1200px;
    margin: 50px auto;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5em;
    margin-bottom: 18px;
    font-family: 'Merriweather', serif;
}

.average-score {
    font-size: 2em;
    color: #7f8860;
    font-weight: bold;
    margin-right: 4px;
}

.average-stars {
    color: #ffd700;
    font-size: 1.5em;
    letter-spacing: 2px;
    margin-right: 8px;
}

.average-label {
    font-size: 1em;
    color: #555;
    font-weight: normal;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding-right: 0;
    max-height: none;
    overflow: visible;
}

.show-more-reviews {
    display: block;
    margin: 24px auto 0 auto;
    padding: 12px 32px;
    background-color: #7f8860;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.show-more-reviews:hover {
    background-color: #c5cd9f;
    color: #333;
    transform: translateY(-2px);
}

/* Remove old scroll and sort styles */
.reviews-header {
    display: block;
    margin-bottom: 0;
}

.review-count, .reviews-sort { display: none !important; }

@media (max-width: 768px) {
    .average-rating {
        font-size: 1.1em;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .show-more-reviews {
        width: 100%;
        padding: 14px 0;
        font-size: 1.1em;
    }
}

/* Contact Form */
.reviews h2 {
    font-size: 2em;
    margin-bottom: 20px;
    border-bottom: 2px solid #7f8860;
    /* Darker green border */
    display: inline-block;
    padding-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #7f8860;
    /* Darker green text */
}

.review-item {
    background-color: #fffffe;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.review-item .stars {
    color: #ffd700; /* Gold color for stars */
    font-size: 1.2em;
    margin-bottom: 10px;
}

.review-item p {
    font-size: 1em;
    color: #333;
    margin-bottom: 5px;
}

/* Review Platform Indicator */
.review-platform {
    font-size: 0.9em;
    color: #7f8860;
    margin-top: 5px;
    font-style: italic;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 120px 20px;
    }

    header h1 {
        font-size: 2.5em;
    }

    header p {
        font-size: 1.1em;
    }

    .gallery {
        column-count: 1;
    }

    .booking button {
        flex: 1 1 100%;
        /* Stack buttons vertically on smaller screens */
    }

    .booking button:nth-child(3) {
        flex: 1 1 100%;
    }

    .contact form {
        padding: 20px;
    }

    .walks .walk-list {
        flex-direction: column;
        align-items: center;
    }

    .walks .walk-item {
        flex-direction: column;
        /* Stack content vertically on smaller screens */
    }

    .reviews {
        padding: 20px 10px;
    }

    .review-item {
        padding: 15px;
    }

    .reviews h2 {
        font-size: 1.8em;
    }

    .review-item .stars {
        font-size: 1em;
    }

    .review-platform {
        font-size: 0.8em;
    }
}

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

    header p {
        font-size: 1em;
    }

    .map iframe {
        height: 300px;
    }

    .contact form {
        padding: 15px;
    }
}

/* Hero + About Section */
.hero-about {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}
.hero-about-image {
    flex: 1 1 380px;
    max-width: 420px;
    min-width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-about-image img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    display: block;
}
.hero-about-text {
    flex: 2 1 400px;
    max-width: 600px;
    padding: 20px 0;
}
.hero-about-text h2 {
    font-size: 2em;
    margin-bottom: 15px;
    border-bottom: 2px solid #7f8860;
    display: inline-block;
    padding-bottom: 5px;
    color: #7f8860;
}
.hero-about-text p {
    font-size: 1.15em;
    color: #555;
    line-height: 1.7;
    margin: 0;
}
@media (max-width: 900px) {
    .hero-about {
        gap: 20px;
    }
    .hero-about-image {
        max-width: 260px;
    }
}
@media (max-width: 700px) {
    .hero-about {
        flex-direction: column;
        gap: 18px;
        padding: 0 8px;
    }
    .hero-about-image {
        max-width: 100%;
        width: 100%;
    }
    .hero-about-text {
        max-width: 100%;
        padding: 0;
    }
}
/* Remove old .hero-image styles */
.hero-image, .hero-image img, .hero-image::after { display: none !important; }

/* About Features List in Hero Section */
.hero-about-text .about-features {
    margin: 18px 0 18px 0;
    padding-left: 22px;
    list-style: none;
}
.hero-about-text .about-features li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
    font-size: 1.08em;
    color: #444;
    line-height: 1.6;
}
.hero-about-text .about-features li::before {
    content: '\2713'; /* checkmark */
    position: absolute;
    left: 0;
    top: 0;
    color: #7f8860;
    font-size: 1em;
    line-height: 1.2;
}

/* Instagram Button in Hero About */
.instagram-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #E1306C;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 1em;
    margin-top: 12px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(225,48,108,0.08);
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
}
.instagram-btn:hover {
    background-color: #C13584;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Icon spacing for booking buttons */
.booking-airbnb i,
.booking-bookingcom i {
    margin-right: 8px;
    font-size: 1.1em;
    vertical-align: middle;
}
