/* CSS Variables */
:root {
    --primary: #e76011;
    --primary-dark: #c2410c;
    --border: #e5e7eb;
    --text: #111827;
    --text-light: #6b7280;
    --bg: #ffffff;
    --bg-subtle: #f9fafb;
    --success: #10b981;
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
}

/* Global Resets */
html {
    scrollbar-gutter: stable;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    padding-top: 0 !important;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

/* Header Base */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.main-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* Desktop Navigation */
.nav-link {
    position: relative;
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e76011;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #e76011;
}

.nav-link:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.5rem;
    padding: 0.5rem;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background: #fff7ed;
    color: #e76011;
    padding-left: 1.25rem;
}

/* CTA Button */
.cta-btn {
    background: var(--primary);
    color: white !important;
    font-weight: 700;
    padding: 0.625rem 1.25rem;
    border-radius: 12px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.cta-btn:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 73px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 1);
    border-bottom: 1px solid #e5e7eb;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.mobile-menu.active {
    max-height: calc(100vh - 73px);
    overflow-y: auto;
}

/* Hamburger Icon */
.hamburger {
    width: 24px;
    height: 20px;
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2.5px;
    width: 100%;
    background: #374151;
    border-radius: 10px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.active span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
    background: #e76011;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    left: -40px;
}

.hamburger.active span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
    background: #e76011;
}

/* Property Detail Page Styles */
.propertySwiper {
    width: 100%;
    height: 300px;
    border-radius: 0.75rem;
    overflow: hidden;
}

.propertySwiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
}

.propertySwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: white !important;
    background: rgba(0, 0, 0, 0.5);
    width: 40px !important;
    height: 40px !important;
    border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    /* Mobile */
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
        /* Matches sm:px-6 */
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
        /* Matches lg:px-8 */
    }
}

.section {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.property-header {
    padding: 1rem 0;
}

.property-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.price-display {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    color: var(--text-light);
    font-size: 0.9375rem;
}

.deposit-info {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.stat-card {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.detail-table {
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.detail-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.amenity-icon {
    color: var(--primary);
    /* Changed to primary for better consistency */
    font-size: 1rem;
    width: 20px;
    display: flex;
    justify-content: center;
}

.info-card {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: var(--bg-subtle);
}

.info-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.info-item {
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    font-size: 0.875rem;
}

.place-card {
    display: flex;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.625rem;
}

.place-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-subtle);
    border-radius: 0.375rem;
    color: var(--primary);
    font-size: 1.125rem;
}

.place-info {
    flex: 1;
    min-width: 0;
}

.place-name {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.25rem 0;
}

.place-type {
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0 0 0.25rem 0;
}

.place-distance {
    font-size: 0.8125rem;
    color: var(--primary);
    font-weight: 500;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid var(--border);
}

.category-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.contact-card {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    border-radius: 16px;
}

.btn-full {
    width: 100%;
    display: flex;
}

.faq-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    margin-bottom: 0.625rem;
}

.faq-question {
    font-weight: 600;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.faq-answer {
    color: var(--text-light);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.6;
}

.breadcrumb {
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 0;
    padding: 0;
    list-style: none;
}

.breadcrumb-link {
    color: var(--primary);
    text-decoration: none;
}

@media (min-width: 768px) {
    .propertySwiper {
        height: 450px;
    }

    .property-title {
        font-size: 1.875rem;
    }

    .price-display {
        font-size: 2.25rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }

    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .layout-grid {
        display: grid;
        grid-template-columns: 1fr 350px;
        gap: 2rem;
        align-items: start;
    }

    .sticky-sidebar {
        position: sticky;
        top: 2rem;
    }
}

/* Ad specific refinements */
.cyber-ad-container {
    max-height: 120px;
    overflow: hidden;
    margin: 2rem 0;
    background: #f9fafb;
}

.cyber-ad-container img {
    max-height: 120px;
    object-fit: cover;
    width: 100%;
}

.inline-ad-container img {
    border-radius: 0.75rem;
}

@media (max-width: 767px) {
    .layout-grid {
        display: block;
    }

    .sticky-sidebar {
        margin-top: 2rem;
    }
}


/* Listing Report System */
.report-listing-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.report-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.report-btn:hover {
    color: #ef4444;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.report-modal {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .report-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.report-form {
    display: grid;
    gap: 1rem;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.report-option:hover {
    border-color: var(--primary);
    background: #fff7ed;
}

.report-option input {
    accent-color: var(--primary);
}

.report-option span {
    font-size: 0.9375rem;
    font-weight: 500;
}

.report-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    resize: none;
    outline: none;
}

.report-textarea:focus {
    border-color: var(--primary);
}

.report-submit-btn {
    background: var(--primary);
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.report-submit-btn:hover {
    background: var(--primary-dark);
}

.report-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Hero Bangalore - High Trust & Professional */
.hero-bangalore {
    min-height: 600px;
    display: flex;
    align-items: center;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Mobile Alignment Fixes & Native Feel */
@media (max-width: 768px) {
    .main-header {
        height: 64px !important;
    }

    .main-header .flex {
        height: 64px !important;
    }

    .hero-bangalore {
        padding: 5rem 0 3.5rem;
        min-height: auto;
        text-align: center;
    }

    .hero-bangalore h1 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
        margin-bottom: 1.5rem !important;
        letter-spacing: -0.02em !important;
    }

    .hero-bangalore p {
        font-size: 0.9375rem !important;
        line-height: 1.6 !important;
        margin-bottom: 2.5rem !important;
        padding: 0 1rem;
    }

    .search-card {
        margin-top: 0;
        border-radius: 32px !important;
        padding: 1.75rem 1.25rem !important;
        border: 1px solid var(--gray-100) !important;
        width: 100% !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    }

    .search-card h2 {
        justify-content: center;
        font-size: 1.25rem !important;
        margin-bottom: 1.25rem !important;
    }

    /* Standardized Section Spacing for Mobile */
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    .hp-section-title {
        font-size: 1.875rem !important;
        line-height: 1.2;
        padding: 0 1rem;
    }

    .hp-section-subtitle {
        font-size: 0.9375rem !important;
        padding: 0 1.5rem;
        line-height: 1.5;
    }

    /* Grid Alignment Fixes */
    .grid {
        gap: 0.875rem !important;
    }

    .property-type-box {
        padding: 1.25rem 0.75rem !important;
    }

    .property-type-icon {
        width: 44px !important;
        height: 44px !important;
        margin-bottom: 0.75rem !important;
    }

    .property-type-box h3 {
        font-size: 0.875rem !important;
    }

    .locality-item {
        padding: 0.75rem !important;
    }

    .locality-item .w-12 {
        width: 2.5rem !important;
        height: 2.5rem !important;
    }

    .locality-item h3 {
        font-size: 0.875rem !important;
    }

    .stats-grid {
        gap: 1rem !important;
    }

    .stats-number {
        font-size: 1.875rem !important;
    }

    .feature-box {
        padding: 2.5rem 1.5rem !important;
    }

    .mobile-menu {
        top: 64px !important;
    }

    .mobile-menu.active {
        max-height: calc(100vh - 64px) !important;
    }
}

.hero-bangalore::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(231, 96, 17, 0.05) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.search-container {
    background: white;
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    padding: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container:focus-within {
    border-color: var(--primary);
    background: #fff;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.property-type-box {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.property-type-box:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-6px);
}

.property-type-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.locality-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.locality-item:hover {
    border-color: var(--primary);
    background: var(--gray-50);
    transform: translateY(-4px);
}

.feature-box {
    background: #fcfcfc;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: border-color 0.3s;
}

.feature-box:hover {
    border-color: var(--primary);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.hp-section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

.hp-section-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.property-card-wrapper {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-card-wrapper:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
}