/* Easy Stays Yelagiri - Premium Redesign */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #f4f5f0;
    --bg-white: #ffffff;
    --text-dark: #121212;
    --text-muted: #5e5e5e;
    --primary-black: #000000;
    --accent-sage: #94a684;
    --radius-lg: 32px;
    --radius-md: 20px;
    --radius-pill: 100px;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Global Styles */
body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

section {
    padding: 100px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Navbar */
.navbar {
    padding: 24px 0;
    background: transparent !important;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark) !important;
    margin: 0 15px;
}

.btn-contact {
    background: var(--primary-black);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-contact:hover {
    transform: scale(1.05);
    background: #333;
}

/* Hero Section */
.hero-wrapper {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 5vw, 60px);
    margin-top: 20px;
}

.hero-title {
    font-size: clamp(1.2rem, 7vw, 2.8rem);
    line-height: 1.05;
    max-width: 900px;
    margin-bottom: 15px;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.hero-subtitle {
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: clamp(25px, 5vw, 45px);
}

.hero-image-container {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: clamp(300px, 50vh, 600px);
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Search Bar */
.search-bar-floating {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-pill);
    padding: 10px;
    display: flex;
    align-items: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
    max-width: 1100px;
    margin: -40px auto 0;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.5);
}

.search-item {
    padding: 10px 25px;
    border-right: 1px solid rgba(0,0,0,0.05);
    flex: 1;
}

.search-item:last-of-type {
    border-right: none;
}

.search-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.search-value {
    font-weight: 700;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    display: block;
    white-space: nowrap;
}

.btn-search {
    background: var(--primary-black);
    color: white;
    width: 140px;
    height: 54px;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 700;
    transition: var(--transition);
}

/* Services Grid */
.section-header {
    margin-bottom: clamp(30px, 6vw, 60px);
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.8rem);
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.service-grid-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 40px;
    height: 100%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-grid-card.has-image {
    padding: 0;
}

.service-grid-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-grid-card.has-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.service-overlay-content {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 2;
}

.service-overlay-content h3 {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.arrow-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-black);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    bottom: 30px;
    right: 30px;
    transition: var(--transition);
    z-index: 2;
}

/* Stats Section */
.stat-item {
    margin-bottom: 40px;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Top Offers / Villa Cards */
.villa-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    padding: 15px;
    transition: var(--transition);
    margin-bottom: 30px;
}

.villa-img-wrapper {
    height: 280px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.villa-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.villa-info {
    padding: 0 10px 10px;
}

.villa-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}

.villa-title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.villa-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.villa-price {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Floating WhatsApp Fix */
.whatsapp-float {
    background: #000; /* Matching the black themed buttons */
    bottom: 30px;
    right: 20px;
}

@media (max-width: 576px) {
    .whatsapp-float {
        bottom: 20px;
        right: 15px;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title { font-size: clamp(1.5rem, 8vw, 2.5rem); }
    .hero-wrapper { padding: 30px; }
    .search-bar-floating { 
        flex-direction: column; 
        border-radius: var(--radius-md);
        padding: 20px;
        margin-top: 20px;
    }
    .search-item { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.05); width: 100%; padding: 15px 0; }
    .btn-search { width: 100%; margin-top: 20px; }
}

@media (max-width: 576px) {
    section { padding: 60px 0; }
    .hero-wrapper { 
        padding: 25px; 
        border-radius: var(--radius-md); 
        margin-top: 10px;
    }
    .hero-title { font-size: clamp(1.2rem, 10vw, 2.5rem); text-align: left; }
    .section-header h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    
    /* Fix for blocks with fixed padding classes like p-5 */
    .rounded-5.p-5 {
        padding: 40px 25px !important;
        border-radius: var(--radius-md) !important;
    }

    footer {
        text-align: center;
        padding: 40px 0 !important;
    }

    footer .text-end {
        text-align: center !important;
        margin-top: 15px;
    }

    footer .list-inline-item {
        padding: 0 10px !important;
    }
}

/* Specific fix for 360x800 */
@media (max-width: 360px) {
    .container { padding-left: 15px; padding-right: 15px; }
    .navbar-brand { font-size: 1.2rem; }
    .hero-title { font-size: 1.8rem; line-height: 1.2; }
    .btn-contact { padding: 12px 24px; font-size: 0.95rem; }
    .search-bar-floating { padding: 15px; margin-top: 10px; }
    .service-grid-card { padding: 30px 20px; }
    .stat-number { font-size: 2.2rem; }
    .stat-label { font-size: 0.85rem; }
}

/* Service Card Responsive Image Fix */
@media (max-width: 991px) {
    .service-grid-card.has-image {
        min-height: 350px;
    }
    .service-overlay-content {
        top: 30px;
        left: 30px;
    }
}
