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

:root {
    --primary-color: #2563eb;
    --secondary-color: #059669;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --border-color: #d1d5db;
    --green-600: #059669;
    --green-500: #10b981;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

/* About Section */
.about-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5rem 0;
    position: relative;
    min-height: 60vh;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    min-height: 50vh;
}

.about-content {
    max-width: 800px;
    text-align: left;
    color: var(--white);
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .about-section {
        padding: 3rem 0;
        min-height: 50vh;
    }
    .about-container {
        padding: 0 1rem;
        min-height: 40vh;
    }
    .about-content h2 {
        font-size: 2rem;
    }
    .about-content p {
        font-size: 1rem;
    }
}


/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)),
    url('/images/cottage-hero.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 1200px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5), 
                 0 4px 16px rgba(0, 0, 0, 0.3),
                 0 0 20px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 
                 0 2px 8px rgba(0, 0, 0, 0.6),
                 0 0 12px rgba(0, 0, 0, 0.4);
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Styles */
.section {
    margin-bottom: 4rem;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.view-all-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    align-items: stretch;
}

/* Property Cards */
.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.save-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.save-btn i {
    font-size: 15pt;
    margin: auto;
}

.save-btn:hover {
    background: var(--white);
}

.property-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.property-location {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.property-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.feature-tag {
    background: var(--gray-100);
    color: var(--text-dark);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.property-price {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: auto;
}

/* Destination Cards */
.destination-card {
    background-size: cover;
    background-position: center;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: end;
    padding: 1rem;
    color: var(--white);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    transition: background 0.3s ease;
}

.destination-card span {
    position: relative;
    z-index: 1;
    font-weight: 600;
    transition: transform 0.3s ease;
}

.destination-card:hover {
    color: var(--white);
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.destination-card:hover::before {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.destination-card:hover span {
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
}

/* Group Size Cards */
.group-size-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.group-size-card:hover {
    transform: translateY(-2px);
}

.group-icon {
    width: 60px;
    height: 60px;
    background: var(--green-600);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

.group-size-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.group-size-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.group-size-card .btn {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.2s ease;
}

.group-size-card .btn:hover {
    background: #1d4ed8;
}

/* Feature Cards */
.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--green-600);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.feature-card .btn {
    background: var(--green-600);
    color: var(--white);
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: background 0.2s ease;
}

.feature-card .btn:hover {
    background: var(--green-500);
}

/* Featured Cottages Carousel */
.featured-cottages-wrapper {
    position: relative;
    overflow: hidden;
}

.featured-cottages {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: fit-content;
}

.featured-cottages .property-card {
    flex: 0 0 calc((100vw - 8rem) / 3 - 1rem);
    max-width: 350px;
    min-width: 280px;
}

@media (min-width: 1200px) {
    .featured-cottages .property-card {
        flex: 0 0 calc((1200px - 6rem) / 3 - 1rem);
    }
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-nav-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
    background: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.carousel-nav-btn i {
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: color 0.2s ease;
}

.carousel-nav-btn:hover i {
    color: var(--primary-color);
}

.carousel-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.carousel-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.carousel-nav-btn:disabled i {
    color: var(--text-lighter);
}

/* Carousel dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-200);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.carousel-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.carousel-dot:hover {
    background: var(--primary-color);
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {

    .hero h1 {
        font-size: 2rem;
    }

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

    .main-content {
        padding: 2rem 0rem;
    }

    .grid-2,
    .grid-4:not(.featured-cottages),
    .grid-6 {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    /* Featured cottages wrapper on mobile */
    .featured-cottages-wrapper {
        margin: 0 -1rem;
        padding: 0 1rem;
        position: relative;
    }

    /* Featured cottages carousel on mobile */
    .featured-cottages {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding: 0 0.5rem;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        width: 100%;
        transform: none;
    }

    .featured-cottages::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }

    .featured-cottages .property-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 320px;
        scroll-snap-align: start;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        background: var(--white);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .featured-cottages .property-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    }

    .featured-cottages .property-card .property-image {
        height: 240px;
        border-radius: 16px 16px 0 0;
        background-size: cover;
        background-position: center;
    }

    .featured-cottages .property-card .property-info {
        padding: 1.5rem;
    }

    .featured-cottages .property-card .property-name {
        font-size: 1.125rem;
        font-weight: 600;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .featured-cottages .property-card .property-location {
        font-size: 0.875rem;
        color: var(--text-light);
        margin-bottom: 1rem;
    }

    .featured-cottages .property-card .property-features {
        margin-bottom: 1rem;
    }

    .featured-cottages .property-card .property-price {
        font-size: 1.125rem;
        font-weight: 700;
        color: var(--green-600);
    }

    /* Hide desktop carousel navigation on mobile */
    .carousel-nav {
        display: none;
    }

    .carousel-dots {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0 1rem;
    }

    .carousel-dot {
        width: 8px;
        height: 8px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .property-image {
        height: 180px;
    }

    .destination-card {
        height: 100px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0 1rem;
    }

    .hero {
        height: 50vh;
    }
}
