/* ==========================================================================
   CASA SAANJH - DESIGN SYSTEM & LUXURY HOSPITALITY STYLESHEET
   Brand: Casa Saanjh - A Home Away From Home (Patna, Bihar)
   Palette: Forest Green (#1E3A2F), Sunset Terracotta (#C27D48), Warm Cream (#FBF9F5)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --casa-primary: #1E3A2F;
    --casa-primary-hover: #152921;
    --casa-primary-light: #EBF2EE;
    --casa-secondary: #C27D48;
    --casa-secondary-hover: #A86533;
    --casa-secondary-light: #F9EFE7;
    --casa-ochre: #E8A857;
    --casa-bg: #FBF9F5;
    --casa-surface: #FFFFFF;
    --casa-dark: #1F2421;
    --casa-muted: #6B7280;
    --casa-border: #E6E1D8;
    --casa-border-light: #F0EDE6;
    
    --casa-success: #16A34A;
    --casa-warning: #F59E0B;
    --casa-danger: #DC2626;
    --casa-info: #2563EB;

    --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --casa-radius-sm: 8px;
    --casa-radius-md: 14px;
    --casa-radius-lg: 20px;
    --casa-radius-xl: 28px;
    --casa-radius-full: 9999px;

    --casa-shadow-sm: 0 2px 6px rgba(30, 58, 47, 0.04);
    --casa-shadow-md: 0 6px 20px rgba(30, 58, 47, 0.08);
    --casa-shadow-lg: 0 14px 36px rgba(30, 58, 47, 0.12);
    --casa-shadow-hover: 0 16px 40px rgba(194, 125, 72, 0.18);
}

body {
    font-family: var(--font-body);
    background-color: var(--casa-bg);
    color: var(--casa-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: var(--font-heading);
    color: var(--casa-dark);
    font-weight: 700;
}

/* ================== NAVBAR ================== */
.casa-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--casa-border);
    transition: all 0.3s ease;
    padding: 0.75rem 0;
}

.casa-brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.casa-brand-logo img {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--casa-secondary);
}

.casa-brand-text {
    line-height: 1.15;
}

.casa-brand-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--casa-primary);
    letter-spacing: 0.5px;
}

.casa-brand-subtitle {
    font-size: 0.72rem;
    color: var(--casa-secondary);
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.nav-link {
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 1rem !important;
    border-radius: var(--casa-radius-sm);
    transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--casa-primary);
    background-color: var(--casa-primary-light);
}

/* ================== BUTTONS ================== */
.btn-casa-primary {
    background-color: var(--casa-primary);
    border-color: var(--casa-primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--casa-radius-full);
    padding: 0.6rem 1.4rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(30, 58, 47, 0.15);
}

.btn-casa-primary:hover {
    background-color: var(--casa-primary-hover);
    border-color: var(--casa-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 58, 47, 0.22);
}

.btn-casa-secondary {
    background-color: var(--casa-secondary);
    border-color: var(--casa-secondary);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--casa-radius-full);
    padding: 0.6rem 1.4rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(194, 125, 72, 0.2);
}

.btn-casa-secondary:hover {
    background-color: var(--casa-secondary-hover);
    border-color: var(--casa-secondary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(194, 125, 72, 0.3);
}

.btn-casa-outline {
    background: transparent;
    border: 1.5px solid var(--casa-border);
    color: var(--casa-dark);
    font-weight: 600;
    border-radius: var(--casa-radius-full);
    padding: 0.55rem 1.3rem;
    transition: all 0.2s ease;
}

.btn-casa-outline:hover {
    border-color: var(--casa-primary);
    color: var(--casa-primary);
    background-color: var(--casa-primary-light);
}

/* ================== HERO & SEARCH BOX ================== */
.hero-section {
    position: relative;
    background: linear-gradient(180deg, rgba(30, 58, 47, 0.75) 0%, rgba(31, 36, 33, 0.85) 100%),
                url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    padding: 6.5rem 0 7rem 0;
    color: #ffffff;
    border-radius: 0 0 var(--casa-radius-xl) var(--casa-radius-xl);
    box-shadow: var(--casa-shadow-lg);
}

.hero-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--casa-ochre);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}

.hero-search-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    border-radius: var(--casa-radius-xl);
    padding: 1.25rem;
    box-shadow: var(--casa-shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    margin-top: 2rem;
}

.search-field-group {
    padding: 0.5rem 1rem;
    border-right: 1px solid var(--casa-border-light);
}

.search-field-group:last-child {
    border-right: none;
}

.search-field-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--casa-primary);
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.search-field-input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--casa-dark);
    padding: 0;
    width: 100%;
}

.search-field-input:focus {
    outline: none;
    box-shadow: none;
}

/* ================== PROPERTY CARDS ================== */
.property-card {
    background: var(--casa-surface);
    border-radius: var(--casa-radius-md);
    border: 1px solid var(--casa-border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--casa-shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--casa-shadow-hover);
    border-color: rgba(194, 125, 72, 0.3);
}

.property-card-img-wrap {
    position: relative;
    width: 100%;
    padding-top: 66%; /* 3:2 ratio */
    overflow: hidden;
    background-color: #E5E7EB;
}

.property-card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-card-img {
    transform: scale(1.05);
}

.property-badge-type {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(30, 58, 47, 0.88);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.28rem 0.75rem;
    border-radius: var(--casa-radius-full);
}

.property-fav-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.property-fav-btn:hover, .property-fav-btn.active {
    color: #DC2626;
    background: #ffffff;
    transform: scale(1.1);
}

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

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    line-height: 1.35;
    color: var(--casa-dark);
}

.property-location {
    font-size: 0.85rem;
    color: var(--casa-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-meta-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: #4B5563;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--casa-border-light);
}

.property-pricing-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-top: auto;
}

.property-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--casa-primary);
}

.property-price-sub {
    font-size: 0.8rem;
    color: var(--casa-muted);
    font-weight: 500;
}

/* ================== BADGES & ACCENTS ================== */
.badge-digilocker {
    background-color: #E8F5E9;
    color: #1B5E20;
    border: 1px solid #A5D6A7;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--casa-radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
}

.badge-superhost {
    background-color: var(--casa-secondary-light);
    color: var(--casa-secondary-hover);
    border: 1px solid rgba(194, 125, 72, 0.3);
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: var(--casa-radius-full);
    font-size: 0.76rem;
}

.badge-status {
    padding: 0.35rem 0.85rem;
    border-radius: var(--casa-radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.badge-status-confirmed, .badge-status-live, .badge-status-completed {
    background: #DCFCE7;
    color: #15803D;
}
.badge-status-pending, .badge-status-under_review, .badge-status-submitted {
    background: #FEF3C7;
    color: #B45309;
}
.badge-status-cancelled, .badge-status-rejected {
    background: #FEE2E2;
    color: #B91C1C;
}

/* ================== STICKY BOOKING CARD ================== */
.sticky-booking-box {
    background: #ffffff;
    border-radius: var(--casa-radius-lg);
    border: 1px solid var(--casa-border);
    padding: 1.75rem;
    box-shadow: var(--casa-shadow-md);
    position: sticky;
    top: 90px;
}

.booking-price-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--casa-border-light);
}

.price-breakdown-table {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.price-breakdown-table td {
    padding: 0.4rem 0;
    color: #4B5563;
}

.price-breakdown-table tr.total-row {
    border-top: 1.5px solid var(--casa-border);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--casa-dark);
}

/* ================== DASHBOARDS & SIDEBAR ================== */
.dashboard-wrapper {
    display: flex;
    min-height: calc(100vh - 72px);
}

.dashboard-sidebar {
    width: 270px;
    background: #ffffff;
    border-right: 1px solid var(--casa-border);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.dashboard-main {
    flex-grow: 1;
    background: var(--casa-bg);
    padding: 2rem;
    overflow-y: auto;
}

.sidebar-brand-badge {
    padding: 0.75rem 1rem;
    background: var(--casa-primary-light);
    border-radius: var(--casa-radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.75rem 1rem;
    color: #4B5563;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--casa-radius-sm);
    text-decoration: none;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.sidebar-nav-item:hover, .sidebar-nav-item.active {
    color: var(--casa-primary);
    background: var(--casa-primary-light);
}

.sidebar-nav-item i {
    font-size: 1.15rem;
}

/* ================== AR LOCATION SIMULATION ================== */
.ar-view-container {
    position: relative;
    background: #111827;
    border-radius: var(--casa-radius-lg);
    overflow: hidden;
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: #ffffff;
    border: 2px solid var(--casa-secondary);
    box-shadow: var(--casa-shadow-lg);
}

.ar-camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1577495508048-b635879837f1?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    opacity: 0.45;
    filter: saturate(1.2);
    z-index: 1;
}

.ar-content {
    position: relative;
    z-index: 2;
}

.ar-compass-arrow {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(194, 125, 72, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 0 30px rgba(194, 125, 72, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0 auto;
    animation: arPulse 2s infinite ease-in-out;
}

@keyframes arPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); box-shadow: 0 0 45px rgba(194, 125, 72, 0.95); }
    100% { transform: scale(1); }
}

/* ================== FOOTER ================== */
.casa-footer {
    background-color: var(--casa-primary);
    color: #D1D5DB;
    padding: 4rem 0 2rem 0;
    margin-top: 5rem;
    border-top: 3px solid var(--casa-secondary);
}

.casa-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.casa-footer a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
}

.casa-footer a:hover {
    color: var(--casa-ochre);
}

/* ================== RESPONSIVE UTILITIES ================== */
@media (max-width: 992px) {
    .dashboard-wrapper {
        flex-direction: column;
    }
    .dashboard-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--casa-border);
    }
    .hero-title {
        font-size: 2.2rem;
    }
}
