/* Global Styles */
:root {
    --primary-color: #8b4513;
    --secondary-color: #f0c14b;
    --dark-color: #333;
    --light-color: #f4f4f4;
    --danger-color: #dc3545;
    --success-color: #28a745;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    overflow: hidden;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    width: 100%;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.9;
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 5px;
}

.logo p {
    color: var(--dark-color);
    font-style: italic;
}

nav ul {
    display: flex;
}

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

nav ul li a {
    font-weight: 500;
    padding: 10px;
    transition: all 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/hero-bg.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 72vh; /* Increased by 20% from 60vh */
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero .container {
    width: 100%;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
}

/* Features Section */
.features {
    padding: 60px 0;
    background-color: var(--light-color);
}

.features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-10px);
}

.feature i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

/* About Preview Section */
.about-preview {
    padding: 60px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 36px;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content .btn {
    margin-top: 10px;
}

.about-slider .image-slider {
    height: 537px;
    width: 403px;
    margin: 0 auto;
}

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.slider-images {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: none;
}

.slider-image:first-child {
    opacity: 1;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: var(--primary-color);
}

/* Room Preview Section */
.room-preview {
    padding: 60px 0;
    background-color: var(--light-color);
}

.room-preview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 36px;
}

.room-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-category {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.room-category img {
    height: 200px;
    object-fit: cover;
}

.room-category h3 {
    padding: 20px 20px 10px;
    color: var(--primary-color);
}

.room-category p {
    padding: 0 20px 20px;
}

.room-category .btn {
    margin: 0 20px 20px;
}

/* Testimonials Section */
.testimonials {
    padding: 60px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/testimonial-bg.svg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.testimonial {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 30px;
    text-align: center;
}

.testimonial p {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial cite {
    font-weight: bold;
}

/* Affiliate Brands Section */
.affiliate-brands {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.affiliate-brands h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
}

.brands-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap:40px;
}

.brand-item {
    width: 180px;
    height: 170px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.brand-item:hover {
    transform: scale(1.05);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Specific adjustments for Airbnb and Homestay logos */
.brand-item img[alt="Airbnb"],
.brand-item img[alt="Homestay"] {
    height: 90%; /* 15% increase from the standard 100% */
}

/* Contact Preview Section */
.contact-preview {
    padding: 60px 0;
}

.contact-preview h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
    font-size: 36px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-details p {
    margin-bottom: 20px;
    font-size: 18px;
}

.contact-details i {
    color: var(--primary-color);
    margin-right: 10px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form textarea {
    height: 150px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-logo h2 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.footer-links h3,
.footer-social h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
}

.social-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 24px;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .about-preview .container,
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 18px;
    }
}

@media (max-width: 500px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    nav ul li {
        margin: 10px 0;
    }
    
    .feature-grid,
    .room-categories {
        grid-template-columns: 1fr;
    }
}