/* Base styles and color theme */
:root {
    /* Primary Colors */
    --forest-green: #1a3c0e;
    /* Darker, richer forest green for better text contrast */
    --sandalwood: #8c6b4a;
    /* Slightly darker to be visible on white */

    /* Accent Colors */
    --accent-gold: #c5a028;
    /* Darker gold for better visibility on light backgrounds */
    --accent-gold-light: #d4af37;
    /* Original gold for dark backgrounds */
    --earth-brown: #755c3d;

    /* Neutrals */
    --cream: #f9f7f2;
    /* Cleaner, lighter cream */
    --stone-gray: #757575;
    --light-green: #e/f5e9;
    --dark-green: #0f2605;
    /* Very dark green for footers/darkest sections */
    --white: #ffffff;
    --black: #2c2c2c;
    /* Softer black for text */
    --text-on-dark: #f0f0f0;
    /* Off-white for text on dark backgrounds */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Navbar Custom Styles */
.navbar {
    background-color: var(--forest-green) !important;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.resort-name {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white) !important;
    font-family: 'Playfair Display', serif;
    text-transform: uppercase;
}

.location {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--accent-gold-light) !important;
}

.tagline {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    padding: 0.2rem 0;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 300;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-gold-light) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 1rem;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold-light);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 2rem);
}

/* Hero Carousel */
.hero-carousel {
    height: 90vh;
    width: 100%;
}

.carousel-item {
    height: 90vh;
    background-color: var(--black);
}

.carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(15, 38, 5, 0.5), rgba(15, 38, 5, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
    color: var(--white);
    animation: fadeInUp 1s ease;
}

.hero-title span {
    color: var(--accent-gold-light);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.3s backwards;
}

.hero-btn-wrapper {
    animation: fadeInUp 1s ease 0.6s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-primary {
    background-color: var(--accent-gold);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 40, 0.3);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-gold-light);
    border-color: var(--accent-gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 40, 0.4);
}

.btn-outline-primary {
    color: var(--forest-green);
    border: 2px solid var(--forest-green);
    padding: 0.6rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--forest-green);
    color: var(--white);
    border-color: var(--forest-green);
}

/* Section Styles */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--forest-green);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-gold);
}

.section-subtitle {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--sandalwood);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
}

.bg-forest {
    background-color: var(--forest-green);
    color: var(--white);
}

.bg-forest .section-title {
    color: var(--white);
}

.bg-forest .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Ensure text inside white cards in dark sections remains readable */
.bg-forest .card .text-muted,
.bg-forest .feature-card .text-muted {
    color: var(--stone-gray) !important;
}

.bg-forest .section-subtitle {
    color: var(--accent-gold-light);
}

.bg-cream {
    background-color: var(--cream);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--forest-green);
    font-weight: 700;
}

.card-text {
    color: var(--stone-gray);
    font-size: 0.95rem;
}

.price {
    font-size: 1.8rem;
    color: var(--sandalwood);
    font-weight: 700;
    margin: 0.5rem 0 1rem;
    font-family: 'Playfair Display', serif;
}

/* Product Features List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    color: var(--black);
    font-size: 0.95rem;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '✓';
    color: var(--forest-green);
    font-weight: 800;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* Amenities Grid */
.amenity-card {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.amenity-icon {
    font-size: 2.5rem;
    color: var(--sandalwood);
    margin-bottom: 1.2rem;
}

.amenity-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--forest-green);
    font-weight: 600;
}

/* Gallery */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(10, 26, 4, 0.85));
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--white);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h4 {
    margin-bottom: 0.4rem;
    font-size: 1.4rem;
    color: var(--accent-gold-light);
}

.gallery-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Benefits Section */
.benefit-item {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item h3 {
    color: var(--forest-green);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--light-green);
    padding-bottom: 0.8rem;
}

.benefit-item ul {
    list-style: none;
    padding: 0;
}

.benefit-item ul li {
    padding: 0.6rem 0;
    padding-left: 1.8rem;
    position: relative;
    color: var(--stone-gray);
}

.benefit-item ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* Contact Form */
.contact-form {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.8rem 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
}

.form-control:focus {
    border-color: var(--sandalwood);
    box-shadow: 0 0 0 3px rgba(140, 107, 74, 0.1);
    background-color: var(--white);
}

.contact-info-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 2rem;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    background-color: var(--dark-green);
    color: rgba(255, 255, 255, 0.85);
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-section h4 {
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold-light);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold-light);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--accent-gold-light);
    color: var(--forest-green);
    transform: translateY(-3px);
    border-color: var(--accent-gold-light);
}

.copyright {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 4rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Page Header (for inner pages) */
.page-header {
    background: linear-gradient(rgba(45, 80, 22, 0.8), rgba(45, 80, 22, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 8rem 0 5rem;
    text-align: center;
    color: var(--white);
    margin-top: 76px;
}

.page-header h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-header p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* Testimonials */
.testimonial-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    height: 100%;
}

/* Professional Card Styles */
.card-img-custom {
    height: 250px;
    object-fit: cover;
    width: 100%;
    transition: transform 0.6s ease;
}

.feature-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-card:hover .card-img-custom {
    transform: scale(1.05);
}

.feature-card .card-body {
    padding: 2rem;
}

.feature-card .card-title {
    color: var(--forest-green);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.8rem;
}

.feature-card .card-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-gold);
}

/* Icon List Styling */
.icon-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.icon-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    color: var(--stone-gray);
    font-size: 0.95rem;
}

.icon-list li i {
    color: var(--forest-green);
    min-width: 25px;
    margin-top: 5px;
}

/* Featured Property Layout */
.featured-property-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.featured-img-col {
    position: relative;
    min-height: 400px;
    height: 100%;
}

.featured-img-col img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content-col {
    padding: 3rem !important;
}

/* Section Spacing Update */
.section {
    padding: 6rem 0;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-author {
    font-weight: bold;
    color: var(--forest-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .resort-name {
        font-size: 1.4rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, .3);
    border-radius: 50%;
    border-top-color: var(--accent-gold);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}