:root {
    --primary-color: #2c5282;
    --secondary-color: #38b2ac;
    --accent-color: #ed8936;
    --dark-color: #1a202c;
    --light-color: #f7fafc;
    --success-color: #48bb78;
    --danger-color: #f56565;
    --warning-color: #ecc94b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container, .container-fluid {
    overflow-x: hidden;
}

.row {
    margin-left: 0;
    margin-right: 0;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 32, 44, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand span {
    color: #fff !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Desktop navbar */
@media (min-width: 769px) {
    .navbar {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-brand {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .navbar-brand img {
        height: 35px !important;
    }
    
    .navbar-brand span {
        font-size: 0.95rem !important;
        white-space: nowrap;
    }
    
    .navbar-nav {
        gap: 0.3rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.95rem !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand span {
        font-size: 0.9rem;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
}

.btn-admin {
    background: var(--secondary-color);
    border-radius: 50px;
    padding: 8px 20px !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-image: url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?w=1600');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.8), rgba(56, 178, 172, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
}

/* Search Box */
.search-box-wrapper {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    z-index: 3;
}

.search-box {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.search-box .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.search-box .form-label i {
    color: var(--secondary-color);
    margin-right: 5px;
}

.search-box .form-control {
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.search-box .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(56, 178, 172, 0.25);
}

/* Section */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #718096;
}

/* Bungalow Card */
.bungalow-card {
    position: relative;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.bungalow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.bungalow-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.bungalow-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.bungalow-card:hover .bungalow-image img {
    transform: scale(1.1);
}

.bungalow-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.bungalow-card:hover .bungalow-overlay {
    opacity: 1;
}

.bungalow-content {
    padding: 1.5rem;
}

.location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location i {
    margin-right: 5px;
}

.bungalow-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.bungalow-title a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s;
}

.bungalow-title a:hover {
    color: var(--primary-color);
}

.bungalow-description {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bungalow-features {
    display: flex;
    gap: 15px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.bungalow-features span {
    font-size: 0.85rem;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 5px;
}

.bungalow-features i {
    color: var(--secondary-color);
}

.bungalow-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.8rem;
    color: #718096;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
}

.btn-primary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #2c9a92;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(56, 178, 172, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--secondary-color);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: var(--dark-color);
}

/* Features Section */
.features-section {
    background: var(--light-color);
    padding: 80px 0;
}

.feature-box {
    text-align: center;
    padding: 2rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #fff;
    font-size: 2rem;
}

.feature-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-box p {
    color: #718096;
    font-size: 0.95rem;
    margin: 0;
}

/* Contact Box */
.contact-box {
    text-align: center;
    padding: 2.5rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.contact-box:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 1.8rem;
}

.contact-box h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-box p {
    color: #718096;
    margin: 0;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: #fff;
    padding: 50px 0 30px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--secondary-color);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-box {
        padding: 1.5rem;
        margin: 0 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .bungalow-features {
        font-size: 0.8rem;
    }
    
    .bungalow-card {
        margin-bottom: 20px;
    }
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    .navbar-brand span {
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .navbar-collapse {
        background: rgba(26, 32, 44, 0.95);
        padding: 15px;
        border-radius: 10px;
        margin-top: 10px;
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Placeholder Image */
.bungalow-image img[src*="default-bungalow.jpg"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    object-fit: contain;
    padding: 40px;
}

.bungalow-image img[src*="default-bungalow.jpg"]::after {
    content: "🏡";
    font-size: 80px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
