:root {
    --color-stone: #D2C6B5;
    --color-olive: #8B8B6E;
    --color-sand: #F5EFE6;
    --color-sea: #4A789C;
    --color-text: #2C3E50;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-text);
    background-color: var(--color-sand);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, .navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* ======== NAVBAR STYLES ======== */

.navbar {
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(44, 62, 80, 0.95) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: white !important;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--color-stone) !important;
}

/* ======== HERO SECTION STYLES ======== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
    z-index: 1;
}

.hero-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -10;
    object-fit: cover;
    transition: opacity 0.8s ease;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.6));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* ======== SECTION STYLES ======== */

.section {
    position: relative;
    padding: 6rem 0;
    background-color: var(--color-sand);
    z-index: 2;
}

.section-stone {
    background-color: var(--color-stone);
    position: relative;
    overflow: hidden;
}

.section-stone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h60v60H0z" fill="none"/><path d="M30 30l15-15M30 30l-15 15M30 30l15 15M30 30l-15-15" stroke="rgba(0,0,0,0.05)" stroke-width="1"/></svg>') repeat;
    opacity: 0;
    transition: opacity 1s ease;
}

.section-stone.reveal::before {
    opacity: 0.2;
}

.about-content {
    background-color: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Special handling for gallery section */
#gallery {
    position: relative;
    z-index: 1;
    background-color: rgba(245, 239, 230, 0.85); /* Slightly transparent sand color */
}

/* ======== GALLERY STYLES ======== */

.photo-gallery {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.main-photo {
    grid-row: 1 / span 2;
}

.main-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.secondary-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.secondary-photos img {
    width: 100%;
    height: 246px;
    object-fit: cover;
}

.photo-gallery img {
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 0;
    transform: scale(0.8);
}

.photo-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.show-all-photos {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}

.show-all-photos:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ======== MODAL GALLERY STYLES ======== */

.carousel-item img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    margin: auto;
    display: block;
}

.modal-dialog {
    max-width: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.75rem auto;
}

.modal-content {
    background-color: rgba(0,0,0,0.9);
}

.modal-header {
    border: none;
    padding: 1rem;
}

.btn-close {
    background-color: white;
    opacity: 1;
}

/* ======== AMENITIES STYLES ======== */

.amenity-item {
    transition: all 0.3s ease;
    padding: 1rem;
    border-radius: 8px;
}

.amenity-item:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.amenity-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-sea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-sea);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

.amenity-item:hover .amenity-icon {
    transform: scale(1.1);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ======== BOOKING SECTION STYLES ======== */

.calendar-section {
    background-color: var(--color-sand);
    padding: 4rem 0;
}

.calendar-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.flatpickr-calendar {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
    margin: 1rem auto !important;
}

.date-inputs {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.price-info {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.booking-form {
    margin-top: 2rem;
}

.success-message {
    display: none;
    padding: 1rem;
    margin: 1rem 0;
    background-color: #c8e6c9;
    border: 1px solid #a5d6a7;
    color: #2e7d32;
    border-radius: 4px;
}

.error-message {
    display: none;
    padding: 1rem;
    margin: 1rem 0;
    background-color: #ffcdd2;
    border: 1px solid #ef9a9a;
    color: #c62828;
    border-radius: 4px;
}

.availability-info {
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* ======== BUTTON STYLES ======== */

.btn-primary {
    background-color: var(--color-sea);
    border-color: var(--color-sea);
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #3A6682;
    border-color: #3A6682;
    transform: translateY(-2px);
}

/* ======== ANIMATION CLASSES ======== */

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Slide animations */
.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

slide-in-left.appear, .slide-in-right.appear {
                                                   opacity: 1;
                                                   transform: translateX(0);
                                               }

/* Scale animation */
.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.appear {
    opacity: 1;
    transform: scale(1);
}

/* Animation delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

/* ======== REVIEWS SECTION STYLES ======== */

.reviews-section {
    background-color: var(--color-sand);
}

.reviews-header {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.rating-score-large {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.rating-number-large {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.rating-star-large {
    font-size: 3rem;
    color: #FFD700;
    line-height: 1;
}

.rating-text strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 0.25rem;
}

.rating-text p {
    font-size: 0.9rem;
}

.rating-categories {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rating-category {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-name {
    min-width: 120px;
    font-size: 0.9rem;
    color: var(--color-text);
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF5A5F, #FF385C);
    transition: width 0.3s ease;
}

.category-score {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text);
}

/* Review Cards */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.review-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.reviewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-sea), var(--color-olive));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.reviewer-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-text);
}

.review-date {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.review-rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .reviews-header {
        padding: 1.5rem;
    }

    .reviews-header .col-md-4 {
        margin-bottom: 1.5rem;
    }

    .overall-rating {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .rating-score-large {
        justify-content: center;
    }

    .rating-number-large {
        font-size: 3rem;
    }

    .rating-star-large {
        font-size: 2.5rem;
    }

    .rating-text {
        text-align: center;
    }

    .rating-categories {
        margin-top: 0;
    }

    .category-name {
        min-width: 100px;
        font-size: 0.85rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ======== AIRBNB RATING STYLES ======== */


.airbnb-rating-badge {
    background: linear-gradient(135deg, #FF5A5F 0%, #FF385C 100%);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 90, 95, 0.3);
    transition: all 0.3s ease;
}

.airbnb-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 90, 95, 0.4);
}

.rating-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.rating-left {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-shrink: 0;
}

.rating-number {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.rating-star {
    font-size: 1.8rem;
    color: #FFD700;
    line-height: 1;
}

.rating-center {
    flex-grow: 1;
    margin-left: 0.5rem;
}

.rating-reviews {
    font-size: 0.95rem;
    font-weight: 600;
    opacity: 0.95;
    white-space: nowrap;
}

.airbnb-link {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.airbnb-link:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.5);
}

.airbnb-link i {
    font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .airbnb-rating-badge {
        padding: 0.9rem 1rem;
    }

    .rating-content {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .rating-number {
        font-size: 1.9rem;
    }

    .rating-star {
        font-size: 1.5rem;
    }

    .rating-reviews {
        font-size: 0.85rem;
    }

    .airbnb-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        margin-left: auto;
    }
}

@media (max-width: 576px) {
    .airbnb-rating-badge {
        padding: 0.8rem;
    }

    .rating-content {
        gap: 0.5rem;
    }

    .rating-left {
        gap: 0.25rem;
    }

    .rating-number {
        font-size: 1.7rem;
    }

    .rating-star {
        font-size: 1.3rem;
    }

    .rating-center {
        margin-left: 0.3rem;
    }

    .rating-reviews {
        font-size: 0.8rem;
    }

    .airbnb-link {
        font-size: 0.75rem;
        padding: 0.35rem 0.7rem;
    }

    .airbnb-link i {
        font-size: 0.9rem;
    }
}

.airbnb-rating-wrapper {
    margin-top: 1rem;
    text-align: center;
    color: #fff;
}

.airbnb-rating-wrapper .rating-value {
    font-size: 2rem;
    font-weight: 700;
}

.airbnb-rating-wrapper .rating-reviews {
    font-size: 1rem;
    margin-top: 0.25rem;
}

.pinch-zoom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 90vh;
    overflow: hidden;
}

.pinch-zoom-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
}

/* ======== RESPONSIVE STYLES ======== */

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    /* Improved hamburger menu */
    .navbar-collapse {
        background-color: rgba(44, 62, 80, 0.95);
        padding: 15px;
        border-radius: 0 0 8px 8px;
        margin-top: 5px;
    }

    .navbar-nav {
        text-align: center;
    }

    .nav-item {
        padding: 8px 0;
    }

    /* Fix the hamburger button appearance */
    .navbar-toggler {
        border: 2px solid rgba(255, 255, 255, 0.5);
        padding: 6px 10px;
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
        outline: none;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 100vh; /* Full viewport height */
        min-height: 600px; /* Minimum height to ensure content fits */
        position: relative;
        overflow: hidden; /* Hide overflow */
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-video {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        top: 0;
        left: 0;
    }

    .hero-content {
        z-index: 2;
        position: relative;
        padding: 0 20px;
        text-align: center;
        width: 100%;
    }

    /* Improve hero text readability */
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }

    .hero-content p {
        font-size: 1.1rem;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
        margin-bottom: 1.5rem;
    }

    /* Improve button visibility */
    .hero-content .btn-primary {
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        border-width: 2px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    /* Ensure proper spacing between sections */
    .section {
        padding: 3rem 0;
        position: relative;
        z-index: 1;
        background-color: var(--color-sand);
    }

    /* Ensure no other sections peek through */
    #details, #gallery, #amenities, #booking, #contact {
        position: relative;
        z-index: 1;
        background-color: var(--color-sand);
        margin-top: 0;
        padding-top: 3rem;
    }

    #details{
        padding-top: 1rem;
    }

    .photo-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }

    .main-photo {
        grid-row: auto;
    }

    .secondary-photos {
        grid-template-columns: 1fr;
    }

    .secondary-photos img {
        height: auto;
        aspect-ratio: 16/9;
    }

    .fade-in, .slide-in-left, .slide-in-right, .scale-in {
        transition: opacity 0.5s ease, transform 0.5s ease;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;


    }

    .section {
        padding: 2.5rem 0;
    }

    .about-content {
        padding: 1.5rem;
    }

    .amenity-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }

    .calendar-container {
        padding: 1.5rem 1rem;
    }

    .date-inputs {
        padding: 1rem;
    }
}