@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #e81123;
    /* Bright Red */
    --secondary-color: #000000;
    /* Pure Black */
    --accent-color: #ff3b3f;
    /* Lighter Red */
    --bg-color: #ffffff;
    /* White */
    --white: #ffffff;
    --grey-100: #f8f9fa;
    --grey-200: #e9ecef;
    --grey-300: #dee2e6;
    --grey-600: #6c757d;
    --grey-800: #343a40;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 12px;
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Light.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-BoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('../assets/fonts/Lato-BoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* JioHotstar Font Utility */
.jio-hotstar-font {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-transform: lowercase;
    /* The viral logo often used lowercase or specific casing */
}

/* Rounded Hotstar-like font for UI elements */
.hotstar-style {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--secondary-color);
    line-height: 1.6;
    font-size: 18px;
    letter-spacing: -0.01em;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* --- Navigation --- */
header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Anchor for mega menu */
}

.logo {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    /* Removed text styling as we are using an image now */
}

.logo img {
    height: 48px;
    /* Adjusted height for navbar */
    max-width: 100%;
    object-fit: contain;
}

/* Removed .logo span styles as they are no longer needed */


/* Horizontal on Windows (Desktop) */
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 769px) {
    .nav-links {
        margin-left: auto;
        margin-right: 2.5rem;
    }
}

.mobile-auth-item {
    display: none;
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--grey-800);
    cursor: pointer;
}

.user-name-display {
    font-weight: 700;
    color: var(--grey-800);
    margin-right: 0.5rem;
    cursor: default;
}

/* --- Mega Menu & Navigation --- */
.nav-links li {
    position: relative;
    padding: 0.5rem 0;
}

/* Force static for mega menu parents to anchor to navbar */
.nav-links li.has-mega-menu {
    position: static;
}

.nav-links a {
    font-weight: 500;
    color: var(--grey-800);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a i {
    font-size: 0.7rem;
    color: #888;
}

.badge-new {
    background: #FF4D4D;
    color: white;
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0;
    background: white;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 2000;
    margin-top: 0;
}

.has-mega-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
}

.mega-menu-inner {
    display: flex;
    min-height: 400px;
}

.mega-menu-sidebar {
    width: 200px;
    background: #F4F7FB;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mega-menu-sidebar ul li {
    padding: 0.8rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    list-style: none;
}

.mega-menu-sidebar ul li:hover,
.mega-menu-sidebar ul li.active {
    background: white;
    color: var(--primary-color);
}

.mega-menu-contact {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.mega-menu-contact p {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.mega-menu-contact strong {
    font-size: 0.85rem;
    display: block;
    color: #333;
}

.mega-menu-contact strong span {
    font-size: 0.7rem;
    font-weight: 400;
    color: #888;
}

.mega-menu-main {
    flex: 1;
    padding: 2rem;
    display: flex;
    gap: 3rem;
}

.menu-column h3 {
    font-size: 0.85rem;
    color: #999;
    font-weight: 600;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
}

.menu-column ul li {
    list-style: none;
    margin-bottom: 0.8rem;
}

.menu-column ul li a {
    font-size: 0.9rem;
    font-weight: 400;
    color: #444;
}

.menu-column ul li a:hover {
    color: var(--primary-color);
}

.mega-menu-promo {
    width: 250px;
    padding: 2rem;
    background: #F9FCFF;
}

.promo-box {
    background: #E8F4FF;
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    position: relative;
}

.promo-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.promo-icon {
    width: 35px;
    height: 35px;
    background: #2C8EF4;
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-title span {
    font-size: 0.6rem;
    font-weight: 700;
    color: #2C8EF4;
    display: block;
}

.promo-title h4 {
    font-size: 1.1rem;
    margin: 0;
    color: #1a2233;
}

.promo-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #2C8EF4;
    font-size: 0.9rem;
}

.promo-features {
    padding: 0;
}

.promo-features li {
    list-style: none;
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.promo-features li i {
    color: #2C8EF4;
    font-size: 0.9rem;
}

.mega-menu-footer {
    padding: 1rem 2rem;
    background: #f8f8f8;
    border-top: 1px solid #eeeeee;
    font-size: 0.8rem;
    color: #888;
}

.mega-menu-footer a {
    color: var(--primary-color);
    display: inline;
}

/* --- Buttons --- */
.btn {
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #c40e1d;
}

/* --- Hero & Search (Stacked on Mobile, Row on Desktop) --- */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    max-height: 750px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 120px;
    width: 100%;
}

.hero-slider-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Hero Slider Background */
.hero-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.hero-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
    z-index: 2;
}

.hero-slider-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.hero-slider-slide img,
.hero-slider-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.search-box-wrapper {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 950px;
    transform: translateY(60%);
    /* Adjusted overlap */
    z-index: 100;
    position: relative;
}

.search-tabs {
    display: flex;
    border-bottom: 1px solid var(--grey-200);
    padding: 0 1rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    padding: 1.2rem 1.5rem;
    font-weight: 600;
    color: var(--grey-800);
    cursor: pointer;
    white-space: nowrap;
    position: relative;
}

.search-tab.active {
    color: var(--primary-color);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.search-bar-inner {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 1;
}

.city-dropdown {
    position: relative;
    border-right: 1px solid var(--grey-200);
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    margin-right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px 0 0 8px;
}

.city-dropdown:hover {
    background: var(--grey-100);
}

.search-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-input-group input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
}

.search-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === Search Bar V2 (New Tabbed Design) === */
.search-box-wrapper {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.search-tabs {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 0.5rem;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.search-tabs::-webkit-scrollbar {
    display: none;
}

.search-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.search-tab:hover {
    color: var(--primary-color);
}

.search-tab.active {
    color: var(--secondary-color);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.search-bar-v2 {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    padding: 0;
    /* Important: must be visible for dropdown to show */
    overflow: visible;
    min-height: 64px;
    position: relative;
    z-index: 1000;
}

.search-v2-locality {
    flex: 2;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem;
    min-width: 0;
}

.selection-tags-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    overflow-x: auto;
    padding: 2px 0;
    scrollbar-width: none;
    /* Hide scrollbar for cleaner look */
}

.selection-tags-wrapper::-webkit-scrollbar {
    display: none;
}

.selected-tag {
    background: #f0f4ff;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d0deff;
}

.selected-tag i {
    cursor: pointer;
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.selected-tag i:hover {
    opacity: 1;
}

.search-v2-locality input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    min-width: 150px;
    flex: 1;
    background: transparent;
    font-family: inherit;
}

.search-v2-locality input::placeholder {
    color: #aaa;
}

.search-v2-divider {
    width: 1px;
    height: 36px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.search-v2-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.25rem;
    position: relative;
    min-width: 0;
}

.search-v2-select select {
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: #555;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    font-weight: 500;
}

.search-v2-chevron {
    font-size: 0.7rem;
    color: #aaa;
    pointer-events: none;
    flex-shrink: 0;
}

.btn-search-v2 {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    height: 64px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s;
    border-radius: 0 0 16px 0;
    flex-shrink: 0;
}

.btn-search-v2:hover {
    background: var(--accent-color);
}

.custom-dropdown-trigger {
    cursor: pointer;
    position: relative;
}

.property-type-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    width: 450px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
    border-radius: 12px;
    padding: 1.5rem;
    display: none;
    z-index: 1001;
    border: 1px solid #eee;
}

.property-type-dropdown::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 16px;
    height: 16px;
    background: white;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

.property-type-dropdown.active {
    display: block;
}

.dropdown-header-options {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.75rem;
}

.radio-tab {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #444;
}

.radio-tab input[type="radio"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.category-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-tag {
    padding: 0.5rem 1rem;
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.category-tag:hover {
    background: #eee;
}

.category-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.loading-tags {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* Voice Search UI */
.voice-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.search-tab {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    color: #555;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.search-tab:hover {
    color: var(--primary-color);
}

.search-tab.active {
    color: var(--secondary-color);
}

.search-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.search-bar-v2 {
    background: white;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    align-items: center;
    padding: 0;
    min-height: 64px;
    position: relative;
    z-index: 100;
}

.selection-tags-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}

.selection-tags-wrapper::-webkit-scrollbar {
    display: none;
}

.selected-tag {
    background: #f1f3f6;
    color: #1a2233;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: 1px solid #dee2e6;
}

.selected-tag i {
    cursor: pointer;
    font-size: 0.75rem;
    color: #888;
}

.selected-tag i:hover {
    color: var(--primary-color);
}

.search-v2-locality input {
    border: none !important;
    outline: none !important;
    min-width: 150px !important;
    flex: 1 !important;
}

#propertyTypeDisplay,
#citySearchDisplay,
#localitySearchDisplay,
#budgetDisplay {
    flex: 1;
    font-size: 0.92rem;
    color: #555;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 5px;
}

.suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 2000;
    display: none;
    margin-top: 5px;
    border: 1px solid #eee;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f9f9f9;
    transition: background 0.2s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f5f5f5;
}

.suggestion-locality {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-align: left;
}

.suggestion-city {
    font-size: 0.8rem;
    color: #888;
    text-align: left;
}

.search-v2-locality {
    flex: 1.8;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem;
    min-width: 0;
}

.search-v2-locality input {
    border: none;
    outline: none;
    font-size: 0.95rem;
    color: #333;
    width: 100%;
    background: transparent;
    font-family: inherit;
}

.search-v2-locality input::placeholder {
    color: #aaa;
}

.search-v2-divider {
    width: 1px;
    height: 36px;
    background: #e8e8e8;
    flex-shrink: 0;
}

.search-v2-select {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 1.25rem;
    position: relative;
    min-width: 0;
}

.search-v2-select select {
    border: none;
    outline: none;
    font-size: 0.92rem;
    color: #555;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    font-weight: 500;
}

.search-v2-select select option[value=""] {
    color: #aaa;
}

.search-v2-chevron {
    font-size: 0.7rem;
    color: #aaa;
    pointer-events: none;
    flex-shrink: 0;
}

.btn-search-v2 {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 2rem;
    height: 64px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: background 0.2s;
    border-radius: 0 0 16px 0;
    flex-shrink: 0;
}

.btn-search-v2:hover {
    background: var(--accent-color);
}

/* Old styles below – kept for compatibility */
.voice-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.voice-search-overlay.active {
    display: flex;
}

.voice-listening-anim {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    box-shadow: 0 0 0 0 rgba(232, 17, 35, 0.7);
    animation: pulse-red 1.5s infinite;
}

.voice-listening-anim i {
    animation: none;
}

@keyframes pulse-red {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(232, 17, 35, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 20px rgba(232, 17, 35, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(232, 17, 35, 0);
    }
}

.voice-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.voice-subtext {
    margin-top: 0.5rem;
    color: #ccc;
}

/* Close button for voice search */
.voice-close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    background: none;
    border: none;
}

.search-icon-btn {
    background: #fff5f5;
    color: var(--primary-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-search-main {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* --- Slider Section --- */
.slider-section {
    max-width: 1200px;
    margin: 3rem auto 4rem;
    padding: 0 1.5rem;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    position: relative;
}

.slider-slide img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.slides-desktop {
    display: contents !important;
}

.slides-mobile {
    display: none !important;
}

@media (max-width: 768px) {
    .slides-desktop {
        display: none !important;
    }

    .slides-mobile {
        display: contents !important;
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: all 0.3s ease;
    z-index: 100;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.slider-dots {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.slider-dot.active {
    background: var(--primary-color);
    border-color: white;
    transform: scale(1.2);
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

/* --- All Banners Section --- */
.all-banners-section {
    max-width: 1200px;
    margin: 2rem auto 3rem;
    padding: 0 1.5rem;
}

.banners-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.banner-item {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.banner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.banner-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* --- Category Quick Links (Vertical on Mobile) --- */
.get-started-section {
    max-width: 1200px;
    margin: 5rem auto 3rem;
    padding: 0 1.5rem;
    text-align: center;
}

.get-started-title {
    font-size: 0.9rem;
    color: var(--grey-600);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: 1.5px;
}

/* Desktop: Horizontal */
.category-grid {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-card {
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-img {
    width: 100%;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Property Grid --- */
.section {
    max-width: 1200px;
    margin: 8px auto;
    padding: 0 1.5rem;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 8px;
}

/* --- Premium Property Card --- */
.property-card {
    background: transparent;
    position: relative;
    margin-bottom: 8px;
}

.card-image-container {
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .card-image-container img {
    transform: scale(1.08);
}

.card-badge-new {
    position: absolute;
    top: 1rem;
    left: 0;
    background: #a020f0;
    color: white;
    padding: 4px 15px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    border-radius: 0 4px 4px 0;
}

.fav-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    letter-spacing: 0.5px;
}

.fav-btn.liked {
    color: #e81123;
    background: white;
    box-shadow: 0 2px 14px rgba(232, 17, 35, 0.35);
    animation: heartPop 0.35s ease;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.35);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

.fav-btn:hover {
    transform: scale(1.12);
    background: rgba(255, 255, 255, 0.9);
    color: #e81123;
}

/* === Property Details V2 (HomeOnline Style) === */
.details-v2-container {
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.details-v2-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.details-v2-title-box h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: #111;
}

.details-v2-location {
    color: #666;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.details-v2-price-box {
    text-align: right;
}

.details-v2-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-color);
}

.details-v2-price-sqft {
    color: #888;
    font-size: 0.9rem;
}

.details-v2-hero {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.details-v2-main-visual {
    height: 480px;
    border-radius: 16px;
    overflow: hidden;
    background: #eee;
    position: relative;
    border: 1px solid #eee;
}

.details-v2-main-visual img,
.details-v2-main-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-v2-sticky-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.details-v2-stats-bar {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #f0f0f0;
}

.stat-v2-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stat-v2-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    letter-spacing: 0.5px;
}

.stat-v2-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #222;
}

/* Sections */
.details-v2-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid #f0f0f0;
}

.details-v2-section h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #111;
    position: relative;
    padding-left: 1rem;
}

.details-v2-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    border-radius: 4px;
}

.details-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.spec-v2-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1.5px dashed #f0f0f0;
}

.spec-v2-icon {
    width: 40px;
    height: 40px;
    background: #fff5f5;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.spec-v2-info {
    display: flex;
    flex-direction: column;
}

.spec-v2-label {
    font-size: 0.85rem;
    color: #888;
}

.spec-v2-value {
    font-weight: 700;
    color: #333;
}

/* Sidebar Inquiry */
.sidebar-v2-inquiry {
    background: white;
    border-radius: 16px;
    padding: 1.8rem;
    border: 1px solid #e81123;
    box-shadow: 0 10px 30px rgba(232, 17, 35, 0.08);
}

.sidebar-v2-inquiry h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.inq-input-v2 {
    width: 100%;
    padding: 0.85rem;
    border: 1.5px solid #eee;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.inq-input-v2:focus {
    border-color: #e81123;
}

.btn-inq-v2 {
    width: 100%;
    padding: 1rem;
    background: #e81123;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.btn-inq-v2:hover {
    background: #ff3b3f;
    transform: translateY(-2px);
}

.card-info-box {
    background: var(--white);
    padding: 8px;
    border-radius: 15px;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.developer-logo {
    position: absolute;
    top: -35px;
    left: 25px;
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    padding: 5px;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title-new {
    font-size: 1.2rem;
    font-weight: 800;
    color: #002e5b;
    margin-top: 1rem;
}

.card-details-new {
    color: var(--grey-600);
    font-size: 0.95rem;
    margin: 0.5rem 0 1rem;
}

.card-price-new {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary-color);
}

/* --- Footer --- */
footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 5rem 1.5rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo-box {
    background: white;
    padding: 12px 20px;
    border-radius: 14px;
    display: inline-block;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.footer-logo-box img {
    height: 45px;
    display: block;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul li {
    margin-bottom: 1rem;
    color: var(--grey-300);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* --- Responsive Strategy (Vertical on Mobile) --- */
@media (max-width: 768px) {

    /* Navbar Vertical Stacking */
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
        text-align: center;
        max-height: 80vh;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-actions .btn-outline,
    .nav-actions .btn-primary {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .nav-actions .btn-outline {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

    .nav-actions .btn-outline i {
        font-size: 0.8rem;
    }

    .navbar {
        padding: 0.8rem 1rem;
        height: 60px;
    }

    .logo img {
        height: 35px;
        /* Smaller logo for mobile to fit everything */
    }

    /* Hide User Info and Desktop Login on Mobile */
    .nav-actions #loginBtn,
    .nav-actions .user-name-display {
        display: none !important;
    }

    .mobile-auth-item {
        display: block;
        width: 100%;
        text-align: center;
    }

    #mobileUserName {
        display: block;
        margin-bottom: 1rem;
    }

    /* Hero & Search Vertical */
    .hero {
        height: 300px;
        align-items: flex-end;
        margin-bottom: 60px;
        /* Position search bar between slider and page content */
    }

    .search-box-wrapper {
        width: 94%;
        transform: translateY(50%);
        position: relative;
        z-index: 1001;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    }

    .search-tabs {
        justify-content: flex-start;
        padding: 0 0.5rem;
    }

    .search-tab {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    .search-bar-inner {
        flex-direction: row;
        flex-wrap: wrap;
        /* Enable 2-row layout */
        padding: 0;
        gap: 0;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
    }

    .search-v2-locality {
        flex: 1 1 100%;
        /* Top Row: Full Width */
        padding: 0 1.2rem;
        border-bottom: 1px solid #f0f0f0;
        height: 54px;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .search-v2-select {
        flex: 1 1 35%;
        /* Bottom Row: Half Width (approx) */
        padding: 0 0.8rem;
        height: 52px;
        border-right: 1px solid #f0f0f0;
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }

    .search-v2-locality i,
    .search-v2-select i {
        font-size: 1rem;
        color: var(--primary-color);
    }

    .search-v2-locality input {
        font-size: 0.9rem !important;
        width: 100%;
        background: transparent;
    }

    .search-v2-select select,
    .search-v2-select span {
        font-size: 0.8rem !important;
        font-weight: 600;
        color: #333;
    }

    .search-v2-divider {
        display: none;
        /* Handled by borders now */
    }

    .btn-search-v2 {
        flex: 1 1 20%;
        /* Search Button on the end of Row 2 */
        width: auto;
        height: 52px;
        padding: 0;
        border-radius: 0;
        font-size: 0;
        margin: 0;
    }

    .btn-search-v2 i {
        font-size: 1.2rem;
        margin: 0;
    }

    .search-v2-locality input::placeholder {
        font-size: 0.85rem;
    }

    .property-type-dropdown {
        width: calc(100% - 40px);
        max-width: 400px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        max-height: 80vh;
        overflow-y: auto;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }

    .property-type-dropdown::after {
        display: none;
    }

    .city-dropdown {
        border-right: none;
        border-bottom: 1px solid var(--grey-200);
        width: 100%;
        padding-bottom: 0.6rem;
        margin: 0;
        justify-content: space-between;
        font-size: 0.9rem;
        /* Slightly smaller text */
    }

    .search-input-group {
        width: 100%;
        border-bottom: 1px solid var(--grey-200);
        padding-bottom: 0.6rem;
    }

    .search-input-group input {
        font-size: 0.9rem;
        /* Smaller font size for mobile input */
    }

    .search-actions {
        width: 100%;
        display: flex;
        flex-direction: row;
        /* Row layout on mobile as requested */
        align-items: center;
        gap: 0.5rem;
    }

    .search-icon-btn {
        width: 40px !important;
        height: 40px;
        flex-shrink: 0;
        border-radius: 8px !important;
    }

    .btn-search-main {
        flex: 1;
        /* Take remaining space */
        padding: 0.8rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    /* Category Grid Vertical */
    .category-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .category-card {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
        background: var(--white);
        padding: 0.8rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
    }

    .category-img {
        width: 80px;
        height: 80px;
        margin-bottom: 0;
    }

    /* Slider Mobile Adjustments */
    .hero-slider-slide img {
        height: 300px;
        object-position: center top;
    }

    .banner-item img {
        height: 250px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
        top: 50%;
        /* Centered vertically as requested */
        transform: translateY(-50%);
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .slider-dots {
        bottom: 85px;
        /* Positioned right above the search bar */
        width: 100%;
        justify-content: center;
    }

    .slider-dot {
        width: 8px;
        height: 8px;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }

    /* Listing Page */
    .listing-layout {
        flex-direction: column;
    }

    .filter-sidebar {
        width: 100%;
    }

    /* Grid adjustments */
    .property-grid {
        grid-template-columns: 1fr;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Shared UI Components */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.5rem;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    outline: none;
}

/* Post Property Redesign (Matching Image) */
.post-property-wrapper {
    max-width: 1250px;
    /* Increased width */
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    /* Reduced gap */
}

.post-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-steps {
    background: #f8faff;
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.sidebar-step {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.sidebar-step:last-child {
    padding-bottom: 0;
}

.sidebar-step::before {
    content: '';
    position: absolute;
    left: 8px;
    /* Center of circle */
    top: 20px;
    bottom: -10px;
    width: 2px;
    background: #f1f1f1;
    z-index: 1;
}

.sidebar-step:last-child::before {
    display: none;
}

.step-circle {
    width: 18px;
    height: 18px;
    background: white;
    border: 2px solid #f1f1f1;
    border-radius: 50%;
    z-index: 2;
    margin-top: 3px;
}

.sidebar-step.active .step-circle {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(232, 17, 35, 0.2);
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #444;
}

.step-sub {
    font-size: 0.75rem;
    color: #888;
}

.edit-link {
    color: var(--primary-color);
    font-weight: 700;
    margin-left: 5px;
    text-decoration: none;
    cursor: pointer;
}

.edit-link:hover {
    text-decoration: underline;
}

.property-score-box {
    background: #f0f4f8;
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-circle {
    width: 50px;
    height: 50px;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--primary-color);
}

.score-text p {
    font-size: 0.75rem;
    color: #777;
    line-height: 1.2;
}

/* Post Content Area */
.post-content-area {
    flex: 1;
    background: var(--white);
    padding: 2.5rem 2rem 1.5rem 2rem;
    /* Balanced padding */
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    /* Prevent flex blowout */
}

.welcome-msg {
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.welcome-msg span {
    color: var(--primary-color);
}

.form-section {
    margin-bottom: 1rem;
    /* Further reduced bottom margin */
}

.section-label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #444;
}

/* Pill Select Style */
.pill-group,
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.pill-group input,
.pill-grid input {
    display: none;
}

.pill-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ebf0f4;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #444;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.pill-group.numbers .pill-btn {
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
}

.pill-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

input:checked+.pill-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #fff5f5;
    font-weight: 700;
}

/* Custom Radio style for Residential/Commercial */
.radio-inline-group {
    display: flex;
    gap: 2rem;
}

.radio-custom {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
}

.radio-custom input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Vertical view on mobile */
@media (max-width: 900px) {
    .post-property-wrapper {
        flex-direction: column;
    }

    .post-sidebar {
        width: 100%;
    }

    .post-right-info {
        display: none;
    }

    .sidebar-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 1rem;
    }

    .sidebar-step {
        padding-bottom: 0;
        min-width: 150px;
    }

    .sidebar-step::before {
        display: none;
    }
}

/* Step 2 Premium Styles */
.form-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #002e5b;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.btn-back {
    background: none;
    border: none;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.btn-back:hover {
    color: var(--primary-color);
}

.floating-group {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.floating-label {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.form-input-premium {
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: #fff;
    color: #1a2233;
}

.input-with-icon .form-input-premium {
    padding-right: 160px;
}

.form-input-premium:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(232, 17, 35, 0.1);
}



.input-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--grey-600);
}

.input-action-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff5f5;
    color: var(--primary-color);
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    line-height: 1;
}

/* Right Info Sidebar */
.post-right-info {
    width: 320px;
    flex-shrink: 0;
}

.info-card {
    background: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin-top: 5rem;
}

.location-promo-img {
    width: 120px;
    height: 120px;
    background: #fff5f5;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.info-card h4 {
    color: #002e5b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.info-card p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.help-box-footer {
    margin-top: 2rem;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.help-box-footer p {
    font-size: 0.8rem;
    color: #888;
}

.help-box-footer strong {
    color: var(--primary-color);
}

/* Step Form visibility */
.step-form {
    display: none;
}

.step-form.active {
    display: block;
}

/* Details Page */
.details-container {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.gallery-main {
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.details-main {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
}

.details-sidebar {
    position: sticky;
    top: 100px;
}

.contact-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

/* Custom Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #f1f1f1;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 1rem 1.2rem;
    cursor: pointer;
    border-bottom: 1px solid #f5f8fa;
    transition: background 0.2s;
    font-size: 0.95rem;
    color: #444;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #fff5f5;
}

.suggestion-item b {
    color: #000;
    font-weight: 700;
}

.suggestion-secondary {
    display: block;
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.2rem;
}

.suggestion-footer {
    padding: 12px 20px;
    background: #fff9f0;
    border-top: 1px solid #ffe8cc;
    font-size: 0.85rem;
    color: #666;
}

.suggestion-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Step 3 Profile Styles */
.section-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.small-text {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 1rem;
}

.area-input-wrapper {
    display: flex;
    max-width: 400px;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    overflow: hidden;
}

.area-input-wrapper input {
    border: none !important;
    border-radius: 0;
    flex: 1;
}

.unit-select {
    border: none;
    border-left: 1px solid #f1f1f1;
    padding: 0 1rem;
    background: #fdfdfd;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.add-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.8rem;
}

.blue-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.blue-link:hover {
    text-decoration: underline;
}

.sub-label {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.floor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 500px;
}

.select-classic {
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 0.65rem auto;
}

.check-container {
    display: block;
    position: relative;
    padding-left: 2rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #444;
    user-select: none;
}

.check-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 1.2rem;
    width: 1.2rem;
    background-color: #eee;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.check-container:hover input~.checkmark {
    background-color: #ccc;
}

.check-container input:checked~.checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
}

.check-container input:checked~.checkmark:after {
    display: block;
}

.check-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Date Picker Premium Styles */
.date-picker-premium {
    cursor: pointer;
    position: relative;
    color: #333;
    font-family: inherit;
}

.date-picker-premium::-webkit-calendar-picker-indicator {
    filter: invert(34%) sepia(98%) saturate(1450%) hue-rotate(189deg) brightness(92%) contrast(98%);
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.date-picker-premium::-webkit-calendar-picker-indicator:hover {
    background: rgba(232, 17, 35, 0.05);
}

/* Add Other Styles */
.other-input-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1rem;
    max-width: 300px;
}

.short-input {
    flex: 1;
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem;
}

.btn-done {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-done:hover {
    background: #0060b0;
}

/* Furnishing Details CSS */
.furnishing-details-card {
    background: #fff;
    border: 1px solid #ebf0f4;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.furnishing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.furnishing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.counter-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f8fafc;
    padding: 4px 8px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
}

.counter-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #cbd5e1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.counter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f9ff;
}

.counter-control span {
    font-weight: 600;
    min-width: 15px;
    text-align: center;
    color: #1e293b;
}

.furnish-label {
    font-size: 0.95rem;
    color: #334155;
    font-weight: 500;
}

/* Step 4: Photos Styles */
.upload-section-premium {
    margin-top: 2rem;
}

.dropzone-area {
    border: 2px dashed #e8112344;
    background: #fff5f5;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.dropzone-area:hover {
    background: #ffeded;
    border-color: var(--primary-color);
}

.main-add-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.main-add-icon i {
    font-size: 2.5rem;
    opacity: 0.8;
}

.drop-text {
    font-size: 1.1rem;
    color: #1a2233;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.drop-hint {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 2rem;
}

.btn-upload-photos {
    padding: 0.8rem 2.5rem;
    background: #fff;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-upload-photos:hover {
    background: var(--primary-color);
    color: #fff;
}

.photo-tip-box {
    background: #001e32;
    color: #fff;
    padding: 0.8rem 1.2rem;
    border-radius: 6px;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    position: relative;
}

.photo-tip-box::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20%;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #001e32;
}

.mobile-upload-promo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 2rem;
    padding: 1.2rem;
    background: #fff;
    border: 1px solid #ebf0f4;
    border-radius: 10px;
}

.promo-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.promo-text strong {
    font-size: 0.95rem;
    color: #1a2233;
}

.upload-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-option-card {
    border: 1px solid #ebf0f4;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.radio-option-card:hover {
    border-color: var(--primary-color);
    background: #f8fbff;
}

.warning-ignore-box {
    background: #fff9f0;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #856404;
    font-size: 0.9rem;
}

/* Textarea Styles */
.form-textarea-premium {
    width: 100%;
    min-height: 150px;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    padding: 1rem;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.2s;
}

.form-textarea-premium:focus {
    outline: none;
    border-color: var(--primary-color);
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: #888;
}

.ai-write-link {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #1a2233;
}

.ai-write-link a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

/* Photo Preview Styles */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #ebf0f4;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-photo {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}

.remove-photo:hover {
    background: #ff4d4d;
}

/* Cover Photo Styling */
.preview-item {
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}

.preview-item.is-cover {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.cover-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    display: none;
    z-index: 2;
}

.preview-item.is-cover .cover-tag {
    display: block;
}

.preview-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.2s;
}

.preview-item:hover .preview-actions {
    opacity: 1;
}

.cover-checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: white;
    font-size: 0.75rem;
    cursor: pointer;
}

.cover-radio {
    width: 14px;
    height: 14px;
    cursor: pointer;
}

/* Step 5: Other Details Styles */
.optional-text {
    font-weight: 400;
    font-size: 0.9rem;
    color: #888;
    margin-left: 0.5rem;
}

.parking-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.parking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 400px;
}

.parking-label {
    font-size: 1rem;
    color: #444;
    font-weight: 500;
}

/* Area Input Premium Container (99acres style) */
.area-input-wrapper-premium {
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    transition: all 0.2s;
    max-width: 420px;
    margin-bottom: 1rem;
}

.area-input-wrapper-premium:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(232, 17, 35, 0.05);
}

.area-content {
    flex: 1;
}

.area-label-sub {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 2px;
    display: block;
    font-weight: 500;
}

.area-field-input {
    border: none;
    outline: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1a2233;
    width: 100%;
    padding: 0;
    background: transparent;
}

.area-unit-select {
    border: none;
    border-left: 1px solid #ebf0f4;
    padding-left: 1rem;
    font-size: 1rem;
    color: #444;
    background: transparent;
    cursor: pointer;
    outline: none;
}

/* Layout Fixes for squashed fields */
.floor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.floor-grid>.floating-group {
    flex: 1;
    margin-bottom: 0;
    min-width: 0;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pill-btn {
    white-space: nowrap;
}

/* Premium Property Card (99acres style) */
.fav-btn-premium {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff;
    font-size: 1.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 2;
    transition: scale 0.2s;
}

.fav-btn-premium:hover {
    transform: scale(1.1);
}

.price-badge-premium {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: #fff;
    color: #1a2233;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-info-box-premium {
    padding: 1.2rem 0;
}

.card-title-premium {
    font-size: 1.15rem;
    font-weight: 700;
    color: #002e5b;
    margin-bottom: 0.4rem;
}

.card-locality-premium {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.card-locality-premium strong {
    color: #333;
}

.card-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f0f0f0;
    padding-top: 0.8rem;
}

.posted-by {
    font-size: 0.85rem;
    color: #888;
}

.posted-time {
    font-size: 0.8rem;
    color: #999;
}


/* Layout Overrides for 99acres Grid */
.property-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

@media (max-width: 1100px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .property-grid {
        grid-template-columns: 1fr !important;
    }
}



/* Card Style Overrides */
.property-card {
    background: #fff !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
    border-radius: 8px !important;
}

.card-info-box {
    display: none !important;
    /* Hide old overlapping style */
}

.property-card .card-image-container {
    height: 200px !important;
    margin: 0 !important;
    border-radius: 8px !important;
}

/* ===== PROPERTY DETAILS PAGE (99acres Style) ===== */
.details-page-container {
    background: #f9f9f9;
    min-height: 100vh;
    padding-bottom: 3rem;
}

.details-breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    color: #666;
}

.details-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.details-breadcrumb a:hover {
    text-decoration: underline;
}

/* Header Section */
.details-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.details-header-left {
    flex: 1;
}

.details-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 0.3rem;
}

.details-price-sub {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.details-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.3rem;
}

.details-subtitle {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.details-location {
    font-size: 0.95rem;
    color: #666;
}

.details-location i {
    color: var(--primary-color);
    margin-right: 0.3rem;
}

.details-header-right {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.details-contact-btn,
.details-shortlist-btn {
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    white-space: nowrap;
}

/* RERA Badge */
.rera-badge-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    background: #fff;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
}

.rera-badge {
    background: #00a699;
    color: #fff;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
}

.rera-registered {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 700;
}

.rera-number {
    color: #666;
}

/* Tabs */
.details-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    background: #fff;
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #f0f0f0;
    overflow-x: auto;
}

.details-tab {
    padding: 1rem 0;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    transition: color 0.3s;
}

.details-tab.active {
    color: var(--primary-color);
}

.details-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
}

/* Content Grid */
.details-content-grid {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

.details-left-column {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Gallery Section */
.details-gallery-section {
    position: relative;
}

.details-gallery-main {
    position: relative;
    height: 450px;
    background: #000;
}

.details-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-controls {
    position: absolute;
    bottom: 80px;
    right: 20px;
    display: flex;
    gap: 0.5rem;
}

.gallery-control-btn {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.gallery-control-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-tabs {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    gap: 1rem;
    padding: 0 1.5rem;
}

.gallery-tab {
    padding: 1rem 0;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    position: relative;
}

.gallery-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #fff;
}

/* Property Info Cards */
.property-info-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.info-card-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-card-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 0.2rem;
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.info-card-value {
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.2rem;
}

.info-card-sub {
    font-size: 0.85rem;
    color: #666;
}

.view-price-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-price-link:hover {
    text-decoration: underline;
}

/* Key Highlights */
.key-highlights-section {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.section-header-details {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.section-header-details i {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.section-header-details h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.section-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #333;
}

.highlight-item i {
    color: #4caf50;
    font-size: 0.9rem;
}

.view-more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.view-more-link:hover {
    text-decoration: underline;
}

/* Property Details Table */
.property-details-table {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.details-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.details-row:last-child {
    border-bottom: none;
}

.details-col {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-label {
    font-size: 0.9rem;
    color: #666;
}

.details-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000;
}

.details-value i {
    color: #999;
    font-size: 0.8rem;
    margin-left: 0.3rem;
}

/* About Property */
.about-property-section {
    padding: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.about-property-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
}

.about-address {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 1rem;
}

.about-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.more-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.more-link:hover {
    text-decoration: underline;
}

/* Features Section */
.features-section {
    padding: 2rem;
}

.features-section h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f9f9f9;
    border-radius: 6px;
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-item span {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

/* Right Sidebar */
.details-right-column {
    position: relative;
}

.details-sticky-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dealer-card,
.report-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dealer-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0.5rem;
}

.dealer-name {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.dealer-note {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    margin-top: 1rem;
}

.report-card p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Details V2 Styles */
.details-v2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.details-v2-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
    gap: 2rem;
}

.details-v2-title-box {
    flex: 1;
}

.details-v2-price-box {
    text-align: right;
}

.details-v2-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.details-v2-price-sqft {
    font-size: 0.9rem;
    color: #666;
}

.details-v2-hero {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.details-left {
    flex: 1;
    min-width: 0;
}

.details-v2-sticky-sidebar {
    width: 350px;
    position: sticky;
    top: 100px;
}

.details-v2-main-visual {
    border-radius: 12px;
    overflow: hidden;
    height: 450px;
    background: #000;
    margin-bottom: 2rem;
}

.details-v2-main-visual img,
.details-v2-main-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-v2-stats-bar {
    display: flex;
    justify-content: space-around;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    gap: 1rem;
}

.details-v2-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.spec-v2-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.spec-v2-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.spec-v2-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

.spec-v2-value {
    font-weight: 600;
    font-size: 0.95rem;
}

.sidebar-v2-inquiry {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.inq-input-v2 {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: inherit;
    font-size: 0.95rem;
}

.btn-inq-v2 {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-inq-v2:hover {
    background: var(--primary-dark);
}

/* Responsive — Tablet */
@media (max-width: 900px) {
    .details-content-grid {
        grid-template-columns: 1fr;
    }

    .details-sticky-sidebar {
        position: static;
    }

    .property-info-cards,
    .highlights-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }

    .details-header {
        flex-direction: column;
    }

    .details-header-right {
        width: 100%;
    }

    .details-v2-hero {
        flex-direction: column;
    }

    .details-v2-sticky-sidebar {
        width: 100%;
        position: static;
    }

    .details-v2-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .details-v2-price-box {
        text-align: left;
    }
}

/* Responsive — Mobile */
@media (max-width: 768px) {
    .details-page-container {
        padding-bottom: 5rem;
        /* space for bottom contact bar */
    }

    /* Breadcrumb */
    .details-breadcrumb {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        overflow-x: auto;
    }

    /* Header */
    .details-header {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .details-price-main {
        font-size: 1.4rem;
    }

    .details-title {
        font-size: 1.1rem;
    }

    .details-subtitle,
    .details-location {
        font-size: 0.85rem;
    }

    /* Hide header-right on mobile — show sticky bottom bar instead */
    .details-header-right {
        display: none;
    }

    /* RERA badge scrollable */
    .rera-badge-container {
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    /* Tabs scrollable */
    .details-tabs {
        padding: 0 0.5rem;
        gap: 1.2rem;
    }

    .details-tab {
        font-size: 0.85rem;
        padding: 0.8rem 0;
    }

    /* Content grid single column */
    .details-content-grid {
        grid-template-columns: 1fr;
        margin: 0.8rem auto;
        padding: 0 0.5rem;
        gap: 0.8rem;
    }

    /* Gallery */
    .details-gallery-main {
        height: 220px;
    }

    .gallery-controls {
        bottom: 55px;
        right: 10px;
    }

    .gallery-control-btn {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .gallery-tabs {
        gap: 0.6rem;
        padding: 0 0.8rem;
    }

    .gallery-tab {
        padding: 0.7rem 0;
        font-size: 0.8rem;
    }

    /* Info cards — 2 columns on mobile */
    .property-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .info-card-value {
        font-size: 0.9rem;
    }

    .info-card-label,
    .info-card-sub {
        font-size: 0.78rem;
    }

    /* Highlights */
    .key-highlights-section {
        padding: 1rem;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }

    .highlight-item {
        font-size: 0.85rem;
    }

    /* Details Table */
    .property-details-table {
        padding: 1rem;
    }

    .details-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .details-col {
        padding: 0.3rem 0;
        border-bottom: 1px solid #f5f5f5;
    }

    /* About property */
    .about-property-section {
        padding: 1rem;
    }

    /* Features */
    .features-section {
        padding: 1rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .feature-item {
        padding: 0.6rem;
        font-size: 0.85rem;
    }

    /* Sidebar — show below content, not sticky */
    .details-sticky-sidebar {
        position: static;
    }

    .dealer-card,
    .report-card {
        padding: 1rem;
    }

    /* Sticky Contact Bar at bottom of screen */
    .details-mobile-contact-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.12);
        padding: 0.8rem 1rem;
        display: flex;
        gap: 0.8rem;
        z-index: 999;
    }

    .details-mobile-contact-bar .btn {
        flex: 1;
        text-align: center;
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    /* Section headers */
    .section-header-details h3 {
        font-size: 1rem;
    }

    .details-v2-container {
        padding: 1rem;
        padding-bottom: 5rem;
    }

    .details-v2-main-visual {
        height: 250px;
    }

    .details-v2-stats-bar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        padding: 1rem;
    }

    .details-v2-grid {
        grid-template-columns: 1fr;
    }

    .details-v2-price {
        font-size: 1.5rem;
    }

    .details-image-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .details-v2-header h1 {
        font-size: 1.5rem !important;
    }

    .details-breadcrumb {
        margin-bottom: 1rem !important;
    }

    /* Sticky Mobile Contact Bar */
    .mobile-fixed-contact-v2 {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        display: flex;
        padding: 0.8rem;
        gap: 0.8rem;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .mobile-fixed-contact-v2 a,
    .mobile-fixed-contact-v2 button {
        flex: 1;
        padding: 0.8rem;
        border-radius: 8px;
        text-align: center;
        font-weight: 700;
        text-decoration: none;
        font-size: 0.9rem;
    }
}




/* Photo Grid Container */
.photo-grid-container {
    background: #fff;
    padding: 2rem;
    min-height: 400px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.photo-grid-item {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
    background: #f0f0f0;
}

.photo-grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }

    .photo-grid-item {
        height: 250px;
    }
}

/* --- Auth Modal Enhancements --- */
.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--grey-600);
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 3rem;
    /* Make space for icon */
}

.auth-toggle-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--grey-600);
    font-size: 0.95rem;
}

.auth-toggle-text a {
    color: var(--primary-color);
    font-weight: 700;
}

/* OTP Input Styling */
.otp-input-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.otp-digit,
.otp-digit-reg {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.otp-digit:focus,
.otp-digit-reg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

/* --- Auth Modal (Restored Custom Styles) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content.auth-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--grey-800);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--grey-600);
    font-size: 1rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.otp-digit,
.otp-digit-reg {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.otp-digit:focus,
.otp-digit-reg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

.auth-toggle-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--grey-600);
}

.auth-toggle-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle-text a:hover {
    text-decoration: underline;
}

#loginSection button[type="submit"],
#registerSection button[type="submit"] {
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem;
    font-size: 1rem;
}

.filters-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 90px;
    min-width: 280px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-200);
    padding-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h5 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--grey-800);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--grey-600);
}

.filter-group input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

/* Photo Preview Enhancements */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}

.preview-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 3px solid transparent;
    transition: var(--transition);
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-item.is-cover {
    border-color: var(--primary-color);
}

.cover-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 4px;
    z-index: 10;
}

.cover-btn {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    white-space: nowrap;
}

.preview-item:hover .cover-btn {
    opacity: 1;
}

.remove-photo-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff3b3f;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    z-index: 10;
}

#videoPreviewContainer {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.remove-video-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #ff3b3f;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
}

/* --- Auth Modal (Restored Custom Styles) --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: block;
}

.modal-content.auth-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles within Modal */
.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--grey-800);
    font-size: 0.95rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 1rem;
    color: var(--grey-600);
    font-size: 1rem;
    pointer-events: none;
}

.input-with-icon input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

/* OTP Input Styles */
.otp-input-container {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.otp-digit,
.otp-digit-reg {
    width: 45px;
    height: 45px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border: 1px solid var(--grey-300);
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
}

.otp-digit:focus,
.otp-digit-reg:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(232, 17, 35, 0.1);
}

/* Switch Link Styles */
.auth-toggle-text {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--grey-600);
}

.auth-toggle-text a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.auth-toggle-text a:hover {
    text-decoration: underline;
}

/* Filters Sidebar Styling */
.filters-sidebar {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    height: fit-content;
    position: sticky;
    top: 90px;
    min-width: 280px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--grey-200);
    padding-bottom: 1rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group h5 {
    font-size: 1rem;
    margin-bottom: 0.8rem;
    color: var(--grey-800);
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--grey-600);
}

.filter-group input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 16px;
    height: 16px;
}

/* Details Video Container - Added for Mobile Fix */
.details-gallery-main {
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
    width: 100%;
    height: 450px;
    /* Desktop fixed height */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.details-gallery-main video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .details-gallery-main {
        height: auto !important;
        /* aspect-ratio: 16/9; Remove forced aspect ratio */
        min-height: 200px;
        display: block;
        /* Ensure block formatting context */
    }

    .details-gallery-main video {
        width: 100%;
        height: auto !important;
        max-height: 80vh;
        /* Prevent extremely tall videos from taking over */
        object-fit: contain;
    }

    .post-content-area {
        padding: 1.5rem 1rem !important;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}

.lightbox:fullscreen {
    background-color: #000;
}

.lightbox-content {
    width: 95vw;
    height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    animation: zoom 0.25s ease-out;
}

@keyframes zoom {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #bbb;
}

.gallery-item-v2 img:hover {
    filter: brightness(0.8);
    transition: 0.3s;
}

/* ===== Device-Specific Slider Banners ===== */
/* Desktop: hide mobile banners */
@media (min-width: 769px) {
    .slides-mobile {
        display: none !important;
    }

    .slides-desktop {
        display: contents !important;
    }
}

@media (max-width: 768px) {
    .listing-layout-modern {
        padding-top: 1.5rem;
    }

    .search-box-wrapper {
        margin: 1rem auto !important;
    }

    .desktop-search-only {
        display: none !important;
    }

    .mobile-search-container {
        display: block !important;
        transform: translateY(50%);
        width: 90% !important;
        margin: 0 auto !important;
        z-index: 100;
        position: relative;
    }

    /* Fixed Hero Slider Height for mobile inconsistency fix */
    .hero {
        height: 50vh !important;
        min-height: 350px !important;
        max-height: 500px !important;
        display: flex !important;
        justify-content: center !important;
        align-items: flex-end !important;
        margin-bottom: 40px !important;
    }

    .hero-slider-wrapper {
        height: 100% !important;
    }

    .hero-slider-slide {
        height: 100% !important;
    }

    .hero-slider-slide video,
    .hero-slider-slide img {
        height: 100% !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }

    .hero-content {
        justify-content: flex-start;
        padding-top: 3rem;
    }
}

/* Mobile Search Trigger Bar (Restored Display None for Desktop) */
.mobile-search-container {
    display: none;
    position: relative;
    z-index: 100;
    margin: 1rem 0;
    width: 100%;
}

.mobile-search-bar {
    background: #fff;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    border: 1px solid #eee;
}

.mobile-search-bar .search-icon {
    color: var(--primary-color);
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

.mobile-search-bar .placeholder {
    color: #888;
    font-size: 0.95rem;
    flex: 1;
}

.mobile-search-bar .mic-icon {
    color: #666;
    font-size: 1.1rem;
}

/* === Premium Mobile Search Overhaul (Brand Red Theme) === */

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4f7f9;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.search-overlay.active {
    transform: translateY(0);
}

.overlay-top-nav {
    background: var(--primary-color);
    /* Brand Red Theme */
    padding: 1.2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.overlay-tab-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.overlay-tab-capsule {
    background: rgba(0, 0, 0, 0.2);
    padding: 3px;
    border-radius: 30px;
    display: flex;
    width: 85%;
}

.overlay-tab {
    flex: 1;
    text-align: center;
    padding: 0.6rem 0.5rem;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
}

.overlay-tab.active {
    background: #fff;
    color: var(--primary-color);
}

.overlay-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.overlay-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
    /* Space for footer */
}

.overlay-search-box-container {
    background: #fff;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.overlay-search-main {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 12px;
    padding: 0 1rem;
    height: 50px;
}

.overlay-search-main .search-icon {
    color: #999;
    font-size: 1rem;
}

.overlay-search-main input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 0.8rem;
    font-size: 0.95rem;
    color: #333;
}

.location-crosshair {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.selected-filters-scroll {
    padding: 0.5rem 1rem;
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-tag {
    background: rgba(232, 17, 35, 0.05);
    color: var(--primary-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(232, 17, 35, 0.2);
    white-space: nowrap;
}

.tag-close {
    font-size: 0.75rem;
    opacity: 0.7;
}

.overlay-section {
    background: #fff;
    padding: 1.2rem 1rem;
    margin-bottom: 0.8rem;
}

.section-title-sm {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #555;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    font-weight: 800;
}

/* Pill Grid */
.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.pill-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    transition: 0.2s;
}

.pill-item.active {
    background: rgba(232, 17, 35, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

/* Budget Row */
.budget-dropdown-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overlay-select {
    flex: 1;
    height: 45px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 0.8rem;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
}

.to-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #888;
}

/* Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    cursor: pointer;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #555;
    transition: 0.2s;
}

.icon-item.active .icon-box {
    background: rgba(232, 17, 35, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.icon-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #555;
}

/* Localities Tag Container */
.tag-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.locality-tag {
    background: #fff;
    border: 1px solid #eee;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.2s;
}

.locality-tag.active {
    background: rgba(232, 17, 35, 0.05);
    border-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 700;
}

.locality-tag i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.locality-tag.active i {
    color: var(--primary-color);
}

/* Suggestions Overlay */
.overlay-suggestions {
    background: #fff;
    padding: 0 1rem;
}

.suggestion-row {
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Footer Section */
.overlay-sticky-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

#getLocationBtn {
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(359deg);
    }
}

.suggestion-row {
    padding: 1rem;
    border-bottom: 1px solid #f9f9f9;
    font-size: 0.95rem;
    color: #333;
    display: flex;
    align-items: center;
}

.suggestion-row::before {
    content: '\f3c9';
    /* map-marker-alt icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 1rem;
    color: var(--primary-color);
}

.overlay-custom-dropdown {
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    background: #fff;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    max-height: 250px;
    overflow-y: auto;
    padding: 10px;
    display: none;
}

.search-v2-select.active .overlay-custom-dropdown {
    display: block !important;
}

.search-v2-select.active {
    border-color: var(--primary-color) !important;
}

.search-v2-select.active i.fa-chevron-down {
    transform: rotate(180deg);
}

.category-group {
    margin-bottom: 1.5rem;
}

.category-group-title {
    font-size: 0.85rem;
    font-weight: 800;
    color: #444;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.btn-primary-blue {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(232, 17, 35, 0.3);
}

/* Premium Mobile Search Results Header */
.mobile-results-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid #f2f2f2;
}

.header-main-row {
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 12px;
}

.header-search-trigger {
    flex: 1;
    height: 48px;
    background: #f7f7f7;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid #eee;
}

.header-search-trigger .placeholder {
    color: #717171;
    font-size: 0.95rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-search-trigger .search-icon {
    color: #222;
    font-size: 1rem;
}

.filters-scroll-row {
    display: flex;
    overflow-x: auto;
    padding: 12px 15px;
    gap: 10px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
}

.filters-scroll-row::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari */
}

.pill-filter {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 30px;
    background: #fff;
    white-space: nowrap;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.pill-filter.active {
    background: #000;
    color: #fff;
    border-color: #000;
}

.pill-filter i {
    font-size: 0.75rem;
}

.mobile-results-counter {
    padding: 15px;
    background: #fff;
}

.mobile-results-counter h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #222;
    margin-bottom: 4px;
}

.mobile-results-counter p {
    font-size: 0.85rem;
    color: #717171;
}

/* Pill Dropdowns */
.pill-filter-wrapper {
    position: relative;
}

.pill-dropdown {
    position: fixed;
    /* Fix to viewport to avoid scroll issues in flex row */
    top: 110px;
    /* Adjust based on header height */
    left: 15px;
    right: 15px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    padding: 15px;
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid #eee;
}

.pill-dropdown.active {
    display: block;
    animation: slideUpIn 0.3s ease-out;
}

@keyframes slideUpIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.pill-dropdown-item {
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #222;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.pill-dropdown-item:last-child {
    border-bottom: none;
}

.pill-dropdown-item.active {
    background: #f7f7f7;
    font-weight: 700;
    color: var(--primary-color);
}

.pill-dropdown-item:hover {
    background: #f0f0f0;
}

.pill-dropdown-header {
    font-size: 0.75rem;
    font-weight: 800;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 15px 6px 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 5px;
    margin-top: 10px;
}

.pill-dropdown-header:first-child {
    margin-top: 0;
}

/* Visibility Utilities */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .listing-search-section {
        display: none !important;
    }
}