:root {
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --color-primary: #C89F91;
    --color-dark: #2E282A;
    --color-light: #FDFBF8;
    --color-text: #333;
    --border-color: #e5e7eb;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: #fff;
    color: var(--color-text);
}

h1, h2, h3 { font-family: var(--font-heading); color: var(--color-dark); }
hr { border: 0; border-top: 1px solid var(--border-color); margin: 2.5rem 0; }

.page-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}



.hero-gallery {
    display: grid;
    gap: 10px;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    height: 450px; 
}

.hero-image-item {
    overflow: hidden;
    height: 100%;
    width: 100%;
}

.hero-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-gallery img:hover {
    transform: scale(1.05);
}


.hero-gallery.hero-count-1 {
    grid-template-columns: 1fr;
    height: auto; 
}
.hero-gallery.hero-count-1 .hero-image-item {
    height: auto; 
}
.hero-gallery.hero-count-1 img {
    height: auto; 
    max-height: 60vh; 
    object-fit: cover;
}



.hero-gallery.hero-count-2 {
    grid-template-columns: 1fr 1fr;
}


.hero-gallery.hero-count-3 {
    grid-template-columns: 2fr 1fr;
}
.hero-gallery.hero-count-3 .hero-image-item:nth-child(1) {
    grid-row: 1 / 3; 
}
.hero-gallery.hero-count-3 .hero-image-item:nth-child(2) {
    grid-row: 1 / 2;
}
.hero-gallery.hero-count-3 .hero-image-item:nth-child(3) {
    grid-row: 2 / 3; 
}



.hero-gallery.hero-count-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}



.hero-gallery:not(.hero-count-1):not(.hero-count-2):not(.hero-count-3):not(.hero-count-4) {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.hero-gallery:not(.hero-count-1):not(.hero-count-2):not(.hero-count-3):not(.hero-count-4) .hero-image-item:nth-child(1) {
    grid-row: 1 / 3; 
    grid-column: 1 / 2; 
}



.content-wrapper { 
    display: flex; 
    gap: 80px; 
    align-items: flex-start; 
}
.details-column { flex: 2; }
.booking-column { 
    flex: 1; 
    position: sticky; 
    top: 120px; 
}

.booking-column > img {
    display: block;
    max-width: 100%; 
    height: auto;
    margin: 0 auto 1.5rem auto; 
    border-radius: 12px;
}

.unit-title { font-size: 2.8rem; margin-bottom: 0.5rem; }
.location { font-size: 1.1rem; color: #666; }

.description { 
    line-height: 1.8; 
    color: #444; 
    margin-top: 1rem; 
    overflow-wrap: break-word;
    word-break: break-word; 
}

.detail-section { margin-bottom: 1.5rem; }
.detail-section h2 { font-size: 1.8rem; margin-bottom: 1.5rem; }
.detail-section p { line-height: 1.7; margin-bottom: 0.5rem; }

.booking-box {
    border: 1px solid var(--border-color); padding: 25px;
    border-radius: 12px; box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.booking-box .price-display { font-size: 1.2rem; margin-bottom: 1rem; }
.booking-box label { font-weight: 500; font-size: 0.9em; margin-top: 15px; display: block; }
.booking-box input { width: 100%; padding: 12px; margin-top: 5px; border: 1px solid #ccc; border-radius: 6px; }
.book-now-btn {
    display: block; width: 100%; padding: 15px; margin-top: 20px;
    background: var(--color-primary); color: #fff;
    border: none; border-radius: 8px; font-size: 1.1rem; font-weight: 600;
    cursor: pointer; transition: background-color 0.3s ease;
}
.book-now-btn:hover { background-color: #b48a7d; }

.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.amenity-item { display: flex; align-items: center; gap: 12px; }
.amenity-item img { width: 24px; height: 24px; }
.amenity-item span { font-size: 0.95rem; }


.gallery-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 1.5rem;
}
.gallery-preview-item {
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 4 / 3;
}
.gallery-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.gallery-preview-item img:hover { transform: scale(1.05); }
.see-more-container { text-align: left; margin-top: 1.5rem; }
.see-more-btn {
    background: #fff;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
    padding: 10px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.see-more-btn:hover { background: var(--color-dark); color: #fff; }


.reviews-section { padding: 4rem 0; text-align: center; border-top: 1px solid var(--border-color); margin-top: 4rem; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; }
.reviews-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: left; }
.review-card { border: 1px solid var(--border-color); border-radius: 12px; padding: 25px; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.review-author { font-weight: 600; font-size: 1.1rem; }
.review-stars { color: #f59e0b; }
.review-text { font-style: italic; color: #555; line-height: 1.7; }


@media (max-width: 992px) {
    .page-wrapper { margin-top: 1rem; }
    
    .content-wrapper { 
        flex-direction: column-reverse; 
        gap: 40px; 
    }
    
    .booking-column { 
        position: relative; 
        top: 0; 
        width: 100%; 
    }
    
    .unit-title { font-size: 2.4rem; }
    .detail-section h2 { font-size: 1.6rem; }
    
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .page-wrapper { margin-top: 0; padding: 0 10px; }
    
    .hero-gallery {
        height: auto; 
        margin-bottom: 2rem;
        gap: 5px;
    }
    
  
    .hero-gallery.hero-count-1,
    .hero-gallery.hero-count-2,
    .hero-gallery.hero-count-3,
    .hero-gallery.hero-count-4,
    .hero-gallery:not(.hero-count-1):not(.hero-count-2):not(.hero-count-3):not(.hero-count-4) {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    
    .hero-gallery .hero-image-item,
    .hero-gallery.hero-count-3 .hero-image-item:nth-child(1),
    .hero-gallery:not(.hero-count-1):not(.hero-count-2):not(.hero-count-3):not(.hero-count-4) .hero-image-item:nth-child(1) {
        grid-row: auto;
        grid-column: auto;
    }

    .hero-gallery img { 
        height: 250px;
        object-fit: cover;
    } 
   
    .hero-gallery.hero-count-1 img {
        height: auto;
        max-height: 50vh; 
    }

    .content-wrapper { gap: 30px; }
    
    .unit-title { font-size: 2rem; }
    .detail-section h2 { font-size: 1.5rem; }
    .description { line-height: 1.7; }
    
    .amenities-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    
    .gallery-preview-grid { 
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .reviews-section { padding: 3rem 0; margin-top: 3rem; }
    .section-title { font-size: 2rem; margin-bottom: 2rem; }
    .review-card { padding: 20px; }
}



.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 1.5rem;
}

.rule-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    background: #fdfdfd;
}

.rule-item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--color-dark);
}

.rule-item span {
    font-size: 0.95rem;
    color: #555;
}


@media (max-width: 768px) {
    .rules-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .rule-item {
        padding: 15px;
    }
}



.review-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0; 
    overflow: hidden; 
}

.review-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.review-content {
    padding: 25px; 
}

@media (max-width: 768px) {
    .review-image {
        height: 200px;
    }
    .review-content {
        padding: 20px;
    }
}