* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #1e40af;
    --dark-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --pink-red: #ec4899;
    --dark-pink: #db2777;
    --white: #ffffff;
    --light-gray: #f3f4f6;
    --gray: #6b7280;
    --dark-gray: #374151;
    --black: #111827;
    --green: #10b981;
}

/* Spacing utilities (classic) */
.m-0 { margin: 0 !important; }
.m-1 { margin: 0.25rem !important; }
.m-2 { margin: 0.5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ms-0 { margin-left: 0 !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }
.ms-4 { margin-left: 1.5rem !important; }
.ms-5 { margin-left: 3rem !important; }

.me-0 { margin-right: 0 !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }
.me-4 { margin-right: 1.5rem !important; }
.me-5 { margin-right: 3rem !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.ps-0 { padding-left: 0 !important; }
.ps-1 { padding-left: 0.25rem !important; }
.ps-2 { padding-left: 0.5rem !important; }
.ps-3 { padding-left: 1rem !important; }
.ps-4 { padding-left: 1.5rem !important; }
.ps-5 { padding-left: 3rem !important; }

.pe-0 { padding-right: 0 !important; }
.pe-1 { padding-right: 0.25rem !important; }
.pe-2 { padding-right: 0.5rem !important; }
.pe-3 { padding-right: 1rem !important; }
.pe-4 { padding-right: 1.5rem !important; }
.pe-5 { padding-right: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* Simple typeahead dropdown */
.typeahead {
    position: relative;
}

.chips-input {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
}

.chips-text {
    border: none;
    outline: none;
    min-width: 160px;
    flex: 1 1 160px;
    font-size: 0.95rem;
    background: transparent;
    color: inherit;
    padding: 0.25rem 0.15rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: #b9c9ff;
    border: 1px solid #c7d2fe;
    color: #3730a3;
    font-size: 13px;
    font-weight: 500;   
    line-height: 1;
}

.chip-remove {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.chip-remove:hover {
    opacity: 0.8;
}

.typeahead-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid rgba(17, 24, 39, 0.12);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    max-height: 280px;
    overflow: auto;
    z-index: 2000;
}

.typeahead-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    color: var(--dark-gray);
}

.typeahead-item:hover {
    background: #f3f4f6;
}

.typeahead-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.typeahead-sub {
    font-size: 0.8rem;
    color: var(--gray);
    white-space: nowrap;
    margin-left: 0.75rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary-blue);
    font-weight: bold;
    font-size: 1.1rem;
}

.logo {
    height: 36px;
    width: auto;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.25rem;
    z-index: 1001;
    position: relative;
}

.navbar-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-blue);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-app-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-app-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    color: var(--dark-gray, #374151);
    background: #fff;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.navbar-app-icon:hover {
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.navbar-app-icon i {
    font-size: 1.25rem;
    line-height: 1;
}

.navbar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
}

.navbar-overlay.active {
    display: block;
}

.search-icon-btn {
    display: none;
}

.btn-login {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-login:hover {
    background-color: var(--dark-blue);
}

.btn-view-listing {
    background-color: var(--pink-red);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-view-listing i {
    font-size: 0.875rem;
}

.btn-view-listing:hover {
    background-color: var(--dark-pink);
}

.navbar-separator {
    color: #9ca3af;
    font-size: 1.25rem;
    margin: 0 0.5rem;
    user-select: none;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: auto;
    background-image: url('/images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: visible;
    padding:50px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    overflow: visible;
}

.hero-title {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 2rem;
}

.hero-search {
    margin-top: 2rem;
    overflow: visible;
    position: relative;
    z-index: 10;
}

/* Advanced Search Bar */
.advanced-search-bar {
    background: rgba(55, 65, 81, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    max-width: 1150px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: visible;
}

.search-row {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.search-row-top {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
}

.search-row-society {
    grid-template-columns: 1fr;
    align-items: end;
}

.search-row-bottom {
    grid-template-columns: 1fr 1fr;
    align-items: end;
}

/* Area: unit dropdown + min/max on one row */
.area-unit-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: nowrap;
}

.area-unit-row .area-unit-select {
    flex: 0 0 auto;
    min-width: 7.5rem;
    max-width: 10rem;
    width: auto;
}

.area-unit-row .area-range-inputs {
    flex: 1 1 0;
    min-width: 0;
    margin-top: 0;
}

.search-row-block-phase-zone {
    grid-template-columns: repeat(4, 1fr);
    align-items: end;
}

.search-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.search-field-group.full-width {
    grid-column: 1 / -1;
}

.search-label {
    font-size: 14px;
    font-weight: 600;
    color: #d1d5db;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.15rem;
}

.search-field {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: var(--white);
    font-size: 1rem;
    color: var(--dark-gray);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 12 12'%3E%3Cpath fill='%231e40af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 9px;
    padding-right: 1.75rem;
}

.search-field:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: -2px;
    border-color: var(--primary-blue);
}

.search-field:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 12 12'%3E%3Cpath fill='%239ca3af' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.search-field::placeholder {
    color: #9ca3af;
    font-size: 0.8rem;
}

input[type="text"].search-field,
input[type="number"].search-field {
    background-image: none;
    padding-right: 0.65rem;
}

.range-inputs {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.range-field {
    flex: 1;
}

.range-separator {
    color: #d1d5db;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: nowrap;
    padding: 0 0.2rem;
}

.search-find-btn {
    background-color: var(--primary-blue);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
}

.search-find-btn:hover {
    background-color: var(--dark-blue);
}

/* Property Type Dropdown */
.property-type-group {
    position: relative;
    z-index: 1;
}

.property-type-dropdown {
    position: relative;
    z-index: 10001;
}

.property-type-trigger {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: var(--white);
    font-size: 0.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.property-type-trigger i {
    font-size: 0.7rem;
    color: #374151;
    transition: transform 0.2s;
}

.property-type-dropdown.active .property-type-trigger i {
    transform: rotate(180deg);
}

.property-type-panel {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: none;
    overflow: visible;
    min-width: 100%;
    width: 100%;
}

.property-type-dropdown.active .property-type-panel {
    display: block;
}

.property-type-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.property-type-tab {
    flex: 1;
    padding: 0.45rem 0.6rem;
    border: none;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    position: relative;
}

.property-type-tab:hover {
    color: var(--primary-blue);
}

.property-type-tab.active {
    color: var(--primary-blue);
}

.property-type-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-blue);
}

.property-type-options {
    padding: 0.6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    max-height: 220px;
    overflow-y: auto;
}

.property-type-option {
    padding: 0.4rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: var(--white);
    font-size: 0.75rem;
    color: var(--dark-gray);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.property-type-option:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
}

.property-type-option.selected {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.property-type-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.35rem;
    padding: 0.5rem 0.6rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.property-type-reset,
.property-type-close {
    padding: 0.35rem 0.6rem;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.property-type-reset {
    background: transparent;
    color: #6b7280;
}

.property-type-reset:hover {
    color: var(--primary-blue);
}

.property-type-close {
    background: var(--dark-gray);
    color: var(--white);
}

.property-type-close:hover {
    background: #374151;
}

/* Price dropdown (From/To) */
.price-group {
    position: relative;
    z-index: 1;
}

.price-dropdown {
    position: relative;
    z-index: 10001;
}

.price-trigger {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: var(--white);
    font-size: 0.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

.price-trigger i {
    font-size: 0.7rem;
    color: #374151;
    transition: transform 0.2s;
}

.price-dropdown.active .price-trigger i {
    transform: rotate(180deg);
}

.price-panel {
    position: absolute;
    top: calc(100% + 0.3rem);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: min(420px, 95vw);
    background: var(--white);
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    display: none;
    overflow: hidden;
    isolation: isolate;
}

.price-dropdown.active .price-panel {
    display: block;
}

.price-panel-columns {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr);
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
}

.price-panel-column {
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    border-right: 1px solid #e5e7eb;
    min-width: 0;
}

.price-panel-column:last-child {
    border-right: none;
    padding-left: 0.75rem;
}

.price-panel-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.price-options-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-height: 220px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    scrollbar-gutter: stable;
}

.price-options-list::-webkit-scrollbar {
    width: 6px;
}

.price-options-list::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.price-options-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.price-option {
    padding: 0.5rem 0.6rem;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    background: var(--white);
    font-size: 0.8rem;
    color: var(--dark-gray);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: 0;
    flex-shrink: 0;
}

.price-option:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
}

.price-option.selected {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.price-panel-actions {
    display: flex;
    justify-content: flex-end;
    padding: 0.5rem 0.6rem;
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

.price-panel-close {
    padding: 0.35rem 0.6rem;
    border: none;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    background: var(--dark-gray);
    color: var(--white);
    transition: all 0.2s;
}

.price-panel-close:hover {
    background: #374151;
}

.search-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.search-advanced-toggle {
    background: transparent;
    border: none;
    color: #e5e7eb;
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.6rem 0.25rem;
}

.search-advanced-toggle:hover {
    color: var(--white);
}

.search-reset-btn {
    background: #4b5563;
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: none;
}

.search-reset-btn:hover {
    background: #6b7280;
}

/* Responsive Search Bar */
@media (max-width: 1024px) {
    .search-row-bottom {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-row-block-phase-zone {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .beds-group {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    /* Hide filters sidebar on mobile */
    .properties-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        display: none;
    }

    /* Push hero content below sticky navbar */
    .hero-section {
        height: auto;
        padding-top: 40px; /* approx sticky navbar height */
        padding-bottom: 2rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1.25rem;
    }

    .hero-search {
        margin-top: 1rem;
    }

    .advanced-search-bar {
        padding: 1.25rem;
    }
    
    .search-row-top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-row-bottom {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-row-block-phase-zone {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    
    .search-find-btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
    
    .property-type-options {
        grid-template-columns: 1fr;
    }
    
    .search-actions {
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .search-reset-btn {
        width: 100%;
    }
    
    .price-panel {
        max-width: calc(100vw - 2rem);
        left: 0;
        right: auto;
    }
    
    .price-panel-columns {
        grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr);
    }
    
    .price-option {
        font-size: 0.75rem;
        padding: 0.45rem 0.5rem;
    }
}

/* Main Content Layout */
.main-content {
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.properties-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.property-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    background: var(--white);
    border: 2px solid #e5e7eb;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.tab-btn.active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

@media (max-width: 991px) {
    #mobileTabs {
        display: flex !important;
        justify-content: center;
        gap: 7px;
    }

    .tab-btn {
        flex: 1 1 0;
        padding: 8px 0;
        background: #f6f6f6;
        color: #333;
        border: none;
        border-radius: 5px;
        font-weight: 500;
        font-size: 14px;
        transition: background .2s;
    }

    .tab-btn.active,
    .tab-btn:focus {
        background: #222955;
        color: #fff;
        outline: none;
    }

    .tab-btn:not(.active):hover {
        background: #e0e3ea;
    }
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark-gray, #374151);
    margin-bottom: 0.25rem;
}

.filter-group.installment-checkbox {
    margin-top: -0.5rem;
    margin-bottom: 1.25rem;
}

.installment-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 500;
}

.installment-label input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.filter-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    font-size: 1rem;
}

.amenities-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.amenities-section h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.amenities-grid label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-find-property {
    width: 100%;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
}

/* Latest Properties Section */
.latest-properties-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.latest-properties-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
}

.latest-properties-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.latest-property-item {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.latest-property-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.latest-property-link {
    display: flex;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
}

.latest-property-image {
    width: 120px;
    min-width: 120px;
    height: 100px;
    overflow: hidden;
    border-radius: 8px;
}

.latest-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-property-details {
    flex: 1;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.latest-property-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
    line-height: 1.3;
}

.latest-property-area {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.latest-property-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--green);
}

/* Properties Main */
.properties-main {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-sticky-toolbar {
    /* desktop: no sticky behaviour, no visual chrome */
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* ── Featured-only toggle checkbox ── */
.featured-toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    color: #374151;
    user-select: none;
}

.featured-toggle-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.featured-toggle-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 5px;
    background: #fff;
    transition: background 0.18s, border-color 0.18s;
}

.featured-toggle-box::after {
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border: 2.5px solid transparent;
    border-left: none;
    border-top: none;
    transform: rotate(45deg) translate(-1px, -1px);
    transition: border-color 0.15s;
}

.featured-toggle-checkbox:checked ~ .featured-toggle-box {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.featured-toggle-checkbox:checked ~ .featured-toggle-box::after {
    border-color: #fff;
}

.featured-toggle-label:hover .featured-toggle-box {
    border-color: var(--primary-blue);
}

@media (max-width: 991px) {
    .mobile-sticky-toolbar {
        position: sticky;
        top: 65px;          /* sits flush under the sticky navbar */
        z-index: 900;
        background: #fff;
        padding: 12px 12px 6px;
        margin: 0 -12px 12px; /* bleed to the card edges */
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }

    .mobile-sticky-toolbar .properties-header {
        margin-bottom: 0;
        padding-top: 4px;
    }
    .property-card-header-left {
        max-width: 100% !important;
        width: 100%;
    }
}

.properties-sort-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.sort-location-field {
    min-width: 8rem;
}

.properties-count {
    font-weight: 500;
}

.sort-select {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: var(--white);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.properties-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.property-card-row {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #c3c9db;
}

.property-card-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-card-image-wrapper {
    position: relative;
    width: 140px;
    min-width: 140px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    border-radius: 8px;
}

.property-image-link {
    display: flex;
    width: 100%;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
}

.property-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f3f4f6;
}

.property-card-content-wrapper {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.property-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem 0.75rem;
}

.property-card-header-left {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.35rem 0.5rem;
    max-width: 75%;
}

.property-card-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
}

@media (max-width: 575px) {
    .property-card-header {
        flex-direction: column;
    }

    .property-card-price-block {
        align-items: flex-start;
        width: 100%;
        margin: 10px 0;
        
    }

    .property-card-price .price-amount {
        font-size: 22px !important;
    }
}

.property-card-title {
    font-size: 1.05rem;
    line-height: 1.4;
    font-weight: 600;
    margin: 0;
    color: var(--dark-gray);
}

.badge-nature-pill {
    background: #f3f4f6;
    color: var(--dark-gray);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.property-card-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.5rem;
    margin-top: 8px;
}

.badge-tag {
    background: #f3f4f6;
    color: var(--dark-gray);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-tag-installment {
    background: var(--primary-blue);
    color: var(--white);
}

.property-detail-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.75rem;
    margin-bottom: 0.75rem;
}

.property-detail-tags .badge-tag {
    font-size: 0.8rem;
    padding: 0.3rem 0.75rem;
}

.property-card-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    font-size: 1.1rem;
    line-height: 1.2;
}

.property-card-price .price-currency {
    font-size: 0.72em;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.property-card-price .price-amount {
    font-weight: 700;
    color: var(--green);
}

.property-card-price .price-unit {
    font-weight: 700;
}

.property-card-added {
    font-size: 0.7rem;
    color: var(--gray);
}

.property-card-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.property-card-details-line1,
.property-card-details-line2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 0.6rem;
    font-size: 0.75rem;
    color: var(--gray);
}

.property-card-details-line1 span,
.property-card-details-line2 span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.property-card-details-line1 i,
.property-card-details-line2 i {
    color: var(--primary-blue);
    font-size: 0.7rem;
}

.property-card-footer-bar {
    flex: 1 1 100%;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #eef2ff;
    border-radius: 0 0 10px 10px;
    box-sizing: border-box;
}

.property-card-agency {
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark-gray);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

    .property-card-agency i {
        color: var(--light-blue);
        font-size: 1rem;
        flex-shrink: 0;
    }

.property-card-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-shrink: 0;
}

.property-card-actions .btn-call-us {
    min-width: 88px;
    justify-content: center;
}

.property-card-actions .btn-whatsapp {
    width: auto;
    min-width: 88px;
    height: 36px;
    border-radius: 999px;
    padding: 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    gap: 0.35rem;
}

.btn-call-us {
    background: var(--dark-blue);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    height: 36px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-call-us:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.property-card-area {
    color: var(--gray);
}

.property-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-image-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #f3f4f6;
}

.property-image[src=""],
.property-image:not([src]) {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.badge-featured {
    background-color: #4CAF50;
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-nature {
    background-color: var(--white);
    color: var(--dark-gray);
    padding: 0.25rem 0.75rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-like-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--pink-red);
}

.property-content {
    padding: 1.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.property-area {
    color: var(--gray);
}

.property-price {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.property-price .price-currency {
    font-size: 0.72em;
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.property-price .price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--green);
}

.property-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.btn-contact-seller {
    flex: 1;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-contact-seller:hover {
    background-color: var(--primary-blue);
}

.btn-whatsapp {
    background-color: var(--green);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.btn-whatsapp:hover {
    transform: scale(1.1);
    color: var(--white);
}

.btn-share {
    background-color: #fdf2f8;
    color: #be185d;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 1px solid #f9a8d4;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-share:hover,
.btn-share:active,
.btn-share:focus {
    background-color: var(--pink-red);
    border-color: var(--pink-red);
    color: var(--white);
    transform: scale(1.05);
}

.btn-like-heart {
    background-color: var(--pink-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: transform 0.3s, background-color 0.3s;
}

.btn-like-heart:hover {
    transform: scale(1.1);
    background-color: var(--dark-pink);
}

.btn-like-heart.active {
    background-color: var(--dark-pink);
}

.btn-like-heart.active i {
    font-weight: 900;
}

.share-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    padding: 0.5rem;
    z-index: 9999;
    min-width: 160px;
}

.share-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--dark-gray);
    transition: background 0.2s;
}

.share-menu-btn:hover {
    background: #f3f4f6;
}

.share-menu-btn.share-menu-whatsapp { color: #25d366; }
.share-menu-btn.share-menu-whatsapp:hover { background: rgba(37, 211, 102, 0.1); }

.share-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-gray);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    z-index: 10000;
    animation: shareToastIn 0.2s ease;
}

@keyframes shareToastIn {
    from { opacity: 0; transform: translateX(-50%) translateY(8px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Browse Properties Section */
.browse-properties-section {
    padding: 3rem 0;
    background: var(--white);
}

.browse-properties-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 2rem;
    text-align: left;
}

.browse-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.browse-property-card {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.browse-property-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.browse-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.browse-card-icon {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.browse-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.browse-card-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.browse-tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
    position: relative;
}

.browse-tab-btn:hover {
    color: var(--primary-blue);
}

.browse-tab-btn.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.browse-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0.75rem;
    right: 0.75rem;
    height: 2px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.browse-tab-content {
    display: none;
    min-height: 200px;
}

.browse-tab-content.active {
    display: block;
}

.browse-filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.browse-filter-btn {
    background: var(--white);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 70px;
    justify-content: center;
}

.browse-filter-btn:hover {
    border-color: var(--primary-blue);
    background: #eff6ff;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.15);
}

.browse-filter-btn .filter-primary {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.25rem;
}

.browse-filter-btn .filter-secondary {
    font-size: 0.75rem;
    color: #6b7280;
    display: block;
}

/* Responsive Browse Properties */
@media (max-width: 1024px) {
    .browse-properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .browse-properties-section {
        padding: 2rem 0;
    }

    .browse-properties-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .browse-properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .browse-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .browse-property-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .browse-filters-grid {
        grid-template-columns: 1fr;
    }

    .browse-card-tabs {
        flex-wrap: wrap;
    }

    .browse-tab-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .property-card-footer-bar {
        padding: 0.6rem 0.75rem;
        gap: 0.6rem;
    }
    
    .property-card-agency {
        font-size: 0.85rem;
    }
    
    .property-card-actions {
        gap: 0.4rem;
    }
    
    .property-card-actions .btn-call-us,
    .property-card-actions .btn-whatsapp {
        font-size: 0.65rem;
        padding: 0.45rem 0.3rem;
        min-width: 60px;
    }
    
    .property-card-actions .btn-call-us i,
    .property-card-actions .btn-whatsapp i {
        font-size: 0.7rem;
    }
    
    .property-card-actions .btn-share {
        flex: 0 0 32px;
        min-width: 32px;
        max-width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

.no-properties {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 2rem 0;
    order: 999;
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    background: var(--white);
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.pagination-link:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.pagination-link.pagination-active {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    cursor: default;
}

.pagination-link.pagination-prev,
.pagination-link.pagination-next {
    min-width: 40px;
}

.pagination-ellipsis {
    padding: 0.5rem;
    color: var(--gray);
    user-select: none;
}

/* Trusted Section */
.trusted-section {
    background: var(--light-gray);
    padding: 3rem 0;
    margin-top: 4rem;
}

.trusted-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--dark-gray);
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trusted-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 150px;
    height: 80px;
}

.trusted-logo-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
}

.trusted-logo-image:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.trusted-logo {
    color: var(--gray);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Experience Real Estate CTA Section */
.experience-cta-section {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    margin: 4rem auto;
    max-width: 95%;
    width: 100%;
    height: 316px;
    box-sizing: border-box;
}

.experience-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    width: 100%;
    padding: 0 3rem;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.experience-cta-text {
    flex: 1;
    color: var(--white);
}

.experience-cta-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.experience-cta-subtitle {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--white);
}

.experience-cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.experience-cta-form {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.email-input {
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 300px;
    background: var(--white);
    color: var(--dark-gray);
}

.email-input::placeholder {
    color: var(--gray);
}

.btn-subscribe {
    background-color: var(--pink-red);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s;
}

.btn-subscribe:hover {
    background-color: var(--dark-pink);
}

/* App Download Section */
.app-download-section {
    background: linear-gradient(135deg, #1a2355 0%, #222955 60%, #2d3a7c 100%);
    padding: 4rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.app-download-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(255,255,255,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.app-download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3.5rem;
    width: 1200px;
    max-width: calc(100% - 40px);
    height: auto;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative;
}

.app-download-image {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.mobile-app-image {
    width: 260px;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    filter: drop-shadow(0 16px 40px rgba(0,0,0,0.35));
}

.app-download-text {
    flex: 1;
    min-width: 0;
    color: #fff;
}

.app-download-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
    line-height: 1.2;
}

.app-download-description {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1.75rem;
    max-width: 480px;
}

.app-store-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.25s, box-shadow 0.25s;
    background-color: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: var(--white);
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.app-store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    background-color: rgba(255,255,255,0.2);
}

.app-store-btn i {
    font-size: 1.9rem;
}

.app-store-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.app-store-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

.app-store-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-store-btn.google-play {
    background-color: rgba(255,255,255,0.12);
}

.app-store-btn.app-store {
    background-color: rgba(255,255,255,0.12);
}

.app-store-btn.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.app-store-btn.unavailable:hover {
    transform: none;
    box-shadow: none;
}

/* Footer */
.footer {
    background-color: rgba(82, 179, 249, 0.06);
    color: var(--dark-gray);
    padding: 4rem 0 0;
    margin-top: 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.1rem;
}

.footer-section p {
    margin-bottom: 1rem;
    color: var(--gray);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.brand-text-footer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: var(--primary-blue);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--primary-blue);
    font-size: 1.5rem;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--light-gray);
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.instagram-section h4 {
    margin-bottom: 1rem;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.instagram-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.instagram-item:hover {
    transform: scale(1.05);
}

.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.footer-bottom {
    border-top: 1px solid rgba(229, 231, 235, 0.5);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--gray);
    font-size: 0.875rem;
}

.footer-bottom p {
    margin: 0;
    color: var(--gray);
}

.footer-bottom p a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-bottom p a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

.back-to-top {
    color: var(--dark-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.back-to-top::after {
    content: "^";
    font-size: 1.25rem;
    line-height: 1;
    display: inline-block;
}

.back-to-top:hover {
    color: var(--primary-blue);
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--light-gray);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.breadcrumb a {
    color: var(--gray);
    text-decoration: none;
}

.breadcrumb span {
    color: var(--gray);
}

.property-hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.property-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.property-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.property-breadcrumb {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.property-breadcrumb a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.property-breadcrumb a:hover {
    opacity: 1;
}

.property-breadcrumb span {
    color: var(--white);
    opacity: 0.8;
}

.property-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    margin: 0 0 0.6rem;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.6);
    line-height: 1.2;
}

.property-hero-sub {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: rgba(255,255,255,0.88);
    margin: 0;
    font-weight: 400;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.property-header-section {
    background: var(--white);
    padding: 1.25rem 0 0;
    border-bottom: 1px solid #e5e7eb;
}

.property-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 1.25rem;
}

.property-title-section {
    flex: 1;
    min-width: 0;
}

.property-title-section h1 {
    font-size: clamp(1.15rem, 2.2vw, 1.6rem);
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
    line-height: 1.35;
    word-break: break-word;
}

.property-features {
    display: flex;
    gap: 2rem;
    margin: 1rem 0;
    color: var(--gray);
    flex-wrap: wrap;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.property-features i {
    font-size: 1rem;
}

.property-location-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--gray);
}

.property-actions-header {
    display: flex;
    gap: 0.5rem;
}

.property-description-inline {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.95rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.property-description-inline p,
.property-description-inline ul,
.property-description-inline ol {
    margin-bottom: 0.5rem;
}

.property-description-inline ul,
.property-description-inline ol {
    padding-left: 1.5rem;
}

.btn-like,
.btn-share,
.btn-print {
    background: var(--white);
    border: 1px solid #e5e7eb;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    cursor: pointer;
}

.property-price-header {
    text-align: right;
    flex-shrink: 0;
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 0.45rem;
    white-space: nowrap;
    line-height: 1.2;
}

.price-tag .price-currency {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    font-weight: 500;
    color: #9ca3af;
    letter-spacing: 0.02em;
}

.price-tag .price-amount {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--green);
}

.price-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* SEO lead paragraph — consistent with 1200px page grid */
.property-seo-lead-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.85rem 2rem;
    border-bottom: 1px solid #f3f4f6;
}

.property-seo-lead {
    color: #6b7280;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.property-images-section {
    margin: 1rem 0;
}

.property-images-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.property-main-image {
    margin-bottom: 1rem;
}

.property-main-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
}

.property-thumbnails {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover {
    border-color: var(--primary-blue);
}

.property-details-container {
    margin: 1rem auto;
    max-width: 1200px;
    padding: 0 2rem;
    width: 100%;
}

.property-details-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 100%;
}

.map-section {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.map-section h2 {
    margin-bottom: 1rem;
}

.map-container {
    margin-bottom: 1rem;
}

.property-address {
    margin-top: 1rem;
}

.property-address p {
    margin-bottom: 0.5rem;
}

.amenities-detail-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.amenities-list.property-description {
    display: block;
}

.property-description p,
.property-description ul,
.property-description ol {
    margin-bottom: 0.75rem;
}

.property-description ul,
.property-description ol {
    padding-left: 1.5rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: 5px;
}

.documents-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.document-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--dark-gray);
    transition: background-color 0.3s;
}

.document-item:hover {
    background-color: var(--light-gray);
}

.contact-seller-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-card {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.contact-card h3 {
    margin-bottom: 1.5rem;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--gray);
}

.seller-details h4 {
    margin-bottom: 0.25rem;
}

.seller-details p {
    color: var(--gray);
    font-size: 0.9rem;
}

.btn-call {
    display: block;
    width: 100%;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.btn-whatsapp-full {
    display: block;
    width: 100%;
    background-color: var(--green);
    color: var(--white);
    padding: 1rem;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
}

.related-properties-section {
    margin: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.btn-see-all {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
}

/* About Page */
.about-hero {
    position: relative;
    height: 300px;
    background-image: url('/images/about/background.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.about-hero-title {
    position: relative;
    z-index: 1;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
}

/* ===== Packages page ===== */
.pkg-hero {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
}

.pkg-hero-sub {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin: 0;
}

.pkg-section {
    padding: 4rem 0 5rem;
    background: #f8f9fc;
}

.pkg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    margin-bottom: 2.5rem;
}

/* Base card */
.pkg-card {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border: 2px solid transparent;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.pkg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}

/* Badge icon circle */
.pkg-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
}

.pkg-name {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 0.4rem;
}

.pkg-tagline {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0 0 1.75rem;
    line-height: 1.5;
}

.pkg-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    width: 100%;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    flex: 1;
}

.pkg-features li {
    font-size: 0.92rem;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pkg-features .fa-check-circle {
    color: #10b981;
    flex-shrink: 0;
}

.pkg-features .pkg-no {
    color: #d1d5db;
    flex-shrink: 0;
}

.pkg-features li:has(.pkg-no) {
    color: #9ca3af;
}

/* Contact button */
.pkg-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    width: 100%;
    justify-content: center;
}

.pkg-btn:hover {
    opacity: 0.88;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

/* "Most Popular" ribbon */
.pkg-popular-ribbon {
    position: absolute;
    top: -1px;
    right: 24px;
    padding: 0.3rem 1rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 0 0 10px 10px;
    color: #fff;
}

/* Silver */
.pkg-card--silver {
    border-color: #cbd5e1;
}

.pkg-card--silver .pkg-badge {
    background: #f1f5f9;
    color: #64748b;
}

.pkg-card--silver .pkg-name {
    color: #475569;
}

.pkg-btn--silver {
    background: #64748b;
    color: #fff;
}

/* Gold */
.pkg-card--gold {
    border-color: #f59e0b;
}

.pkg-card--gold.pkg-card--featured {
    background: linear-gradient(160deg, #fffbeb 0%, #fff 50%);
    box-shadow: 0 8px 40px rgba(245,158,11,0.18);
    transform: scale(1.03);
}

.pkg-card--gold.pkg-card--featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.pkg-card--gold .pkg-badge {
    background: #fef3c7;
    color: #d97706;
}

.pkg-card--gold .pkg-name {
    color: #b45309;
}

.pkg-popular-ribbon {
    background: #f59e0b;
}

.pkg-btn--gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
}

/* Platinum */
.pkg-card--platinum {
    border-color: #8b5cf6;
}

.pkg-card--platinum .pkg-badge {
    background: #f5f3ff;
    color: #7c3aed;
}

.pkg-card--platinum .pkg-name {
    color: #6d28d9;
}

.pkg-btn--platinum {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
}

/* Note below cards */
.pkg-note {
    text-align: center;
    font-size: 0.88rem;
    color: var(--gray);
    margin: 0;
}

.pkg-note .fa-info-circle {
    color: var(--primary-blue);
    margin-right: 0.35rem;
}

/* Responsive */
@media (max-width: 900px) {
    .pkg-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pkg-card--gold.pkg-card--featured {
        transform: none;
    }

    .pkg-card--gold.pkg-card--featured:hover {
        transform: translateY(-6px);
    }
}

.about-jaaydaad-section,
.mission-vision-section {
    padding: 4rem 0;
    background: var(--white);
}

.about-content-layout,
.mission-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.main-about-image {
    position: relative;
}

.main-about-image img {
    width: 100%;
    border-radius: 8px;
}

.happy-customers-card {
    position: absolute;
    top: 141px;
    right: -35px;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    min-width: 200px;
    z-index: 10;
}

.happy-customers-card h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.customer-avatars {
    display: flex;
    align-items: center;
    gap: 0;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid var(--white);
    margin-left: -12px;
    overflow: hidden;
    background: var(--light-gray);
    position: relative;
    flex-shrink: 0;
    z-index: 1;
}

.avatar:nth-child(1) {
    z-index: 4;
}

.avatar:nth-child(2) {
    z-index: 3;
}

.avatar:nth-child(3) {
    z-index: 2;
}

.avatar:nth-child(4) {
    z-index: 1;
}

.avatar:first-child {
    margin-left: 0;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.more-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--pink-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    margin-left: -12px;
    border: 3px solid var(--white);
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.section-label {
    color: var(--pink-red);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.about-text h2,
.mission-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--dark-gray);
}

.about-text p,
.mission-content p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.stat-item p {
    color: var(--gray);
    margin: 0;
}

.btn-see-properties {
    display: inline-block;
    background-color: var(--dark-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
}

.mission-point {
    margin-bottom: 1.5rem;
}

.mission-point h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.mission-content {
    margin-bottom: 2rem;
}

.mission-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.mission-image img {
    width: 100%;
    border-radius: 12px;
}

.sell-property-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    padding: 4rem 0;
    color: var(--white);
}

.cta-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.cta-label {
    color: var(--white);
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

.cta-text h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--white);
}

.cta-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.9;
}

.btn-list-property {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
}

.cta-image {
    position: relative;
}

.cta-image img {
    width: 100%;
    border-radius: 8px;
}

.cta-badge {
    position: absolute;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    color: var(--white);
}

.badge-1 {
    top: 20px;
    right: 20px;
    background-color: var(--pink-red);
}

.badge-2 {
    bottom: 20px;
    left: 20px;
    background-color: var(--green);
}

.why-choose-section {
    padding: 4rem 0;
    background: var(--white);
}

.why-choose-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose-section .section-label {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem;
}

.why-choose-section h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0 0 3rem 0;
    color: var(--dark-gray);
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 0;
}

.feature-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    opacity: 0.3;
    background: inherit;
    filter: blur(8px);
    z-index: -1;
}

.feature-icon.blue {
    background-color: var(--primary-blue);
    background: linear-gradient(135deg, var(--primary-blue) 0%, #3b82f6 100%);
}

.feature-icon.red {
    background-color: #ef4444;
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.feature-icon.green {
    background-color: var(--green);
    background: linear-gradient(135deg, var(--green) 0%, #34d399 100%);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    text-align: center;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
    text-align: center;
}

.error-container {
    text-align: center;
    padding: 4rem 2rem;
}

.error-container h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.btn-home {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .properties-layout {
        grid-template-columns: 300px 1fr;
    }

    .property-details-layout {
        grid-template-columns: 1fr;
    }

    .contact-seller-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-content {
        position: relative;
    }

    .navbar-brand img {
        width: 120px !important;
        max-width: 120px;
    }

    .navbar-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 0;
        margin-top: 0;
        order: 0;
        overflow-y: auto;
    }

    .navbar-nav.active {
        right: 0;
    }

    .navbar-nav .nav-link {
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid #e5e7eb;
        font-size: 1rem;
    }

    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-actions {
        position: fixed;
        top: auto;
        right: -100%;
        width: 280px;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 2rem 2rem;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        gap: 1rem;
        bottom: 0;
    }

    .navbar-actions.active {
        right: 0;
    }

    .navbar-actions .navbar-app-icons {
        justify-content: center;
        width: 100%;
        padding-bottom: 0.75rem;
        margin-bottom: 0.25rem;
        border-bottom: 1px solid #e5e7eb;
    }

    .navbar-actions .btn-login,
    .navbar-actions .btn-view-listing {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
    }

    .navbar-separator {
        display: none;
    }

    .hero-title {
        font-size: 2rem;
    }

    .property-hero-section {
        min-height: 260px;
    }

    .property-hero-title {
        font-size: 1.6rem;
    }

    .property-hero-sub {
        font-size: 0.9rem;
    }

    .property-header-content {
        flex-direction: column;
        gap: 0.75rem;
        padding-bottom: 1rem;
    }

    .property-price-header {
        text-align: left;
        width: 100%;
    }

    .property-seo-lead-section {
        padding: 0.75rem 1rem;
    }

    .search-container {
        flex-direction: column;
    }

    .properties-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .property-card-row {
        flex-direction: column;
        gap: 0;
    }

    .property-card-image-wrapper {
        width: 100%;
        min-width: 100%;
        height: 130px !important;
        margin: 0 !important;
    }
    
    .property-card-details-line1,
    .property-card-details-line2 {
        gap: 0.5rem;
    }
    
    .property-card-footer-bar {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }
    
    .property-card-agency {
        flex: 0 0 auto;
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
        overflow: visible;
        white-space: normal;
    }
    
    .property-card-actions {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: stretch;
    }
    
    .property-card-actions .btn-call-us,
    .property-card-actions .btn-whatsapp,
    .property-card-actions .btn-share {
        flex: 1 1 0;
        min-width: 0;
        justify-content: center;
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .property-card-actions .btn-call-us {
        min-width: 70px;
    }
    
    .property-card-actions .btn-whatsapp {
        min-width: 80px;
    }
    
    .property-card-actions .btn-share {
        flex: 0 0 36px;
        min-width: 36px;
        max-width: 36px;
    }
    
    .btn-call-us {
        padding: 0.5rem 0.4rem;
        font-size: 0.7rem;
    }

    .about-content-layout,
    .mission-content-layout,
    .cta-content-layout {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .why-choose-section h2 {
        font-size: 2rem;
        text-align: center;
    }

    .why-choose-section .section-label {
        text-align: center;
    }

    .feature-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
        margin: 0 auto 1.5rem auto;
    }

    .feature-card {
        text-align: center;
        align-items: center;
    }

    .property-header-content {
        flex-direction: column;
    }

    .property-price-header {
        text-align: left;
    }

    .amenities-list {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .experience-cta-section {
        max-width: 100%;
        width: calc(100% - 2rem);
        height: auto;
        padding: 2rem 1rem;
        margin: 2rem 1rem;
        border-radius: 15px;
    }

    .experience-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 0 1.5rem;
        height: auto;
    }

    .experience-cta-form {
        width: 100%;
        flex-direction: column;
    }

    .email-input {
        min-width: 100%;
    }

    .app-download-section {
        padding: 3rem 0 0;
        margin-top: 0;
    }

    .app-download-content {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        padding: 0 1.25rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 1.5rem;
    }

    .app-download-image {
        order: 2;
    }

    .app-download-text {
        order: 1;
    }

    .mobile-app-image {
        width: 200px;
        max-height: 240px;
    }

    .app-download-title {
        font-size: 1.75rem;
    }

    .app-download-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
        max-width: 100%;
    }

    .app-store-buttons {
        justify-content: center;
    }

    .app-store-btn {
        padding: 0.6rem 1.25rem;
        gap: 0.5rem;
    }

    .app-store-btn i {
        font-size: 1.6rem;
    }

    .app-store-name {
        font-size: 0.9rem;
    }

    .trusted-logo-item {
        max-width: 120px;
        height: 60px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .about-hero-title {
        font-size: 2rem;
    }

    .about-text h2,
    .mission-text h2,
    .cta-text h2 {
        font-size: 1.75rem;
    }

    .mobile-app-image {
        max-height: 250px;
    }

    .trusted-logo-item {
        max-width: 100px;
        height: 50px;
    }

    .trusted-logos {
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-choose-section h2 {
        font-size: 1.75rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}


/* Hero Section Small */
.hero-section-small {
    min-height: 200px;
    background-image: url('/images/about-hero.jpg');
}

/* Agent Signup Page */
.agent-signup-container {
    padding: 60px 20px;
    max-width: 800px;
}

.agent-signup-page {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.agent-signup-header {
    text-align: center;
    margin-bottom: 30px;
}

.agent-signup-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.agent-signup-header p {
    color: #6b7280;
    font-size: 16px;
}

.agent-signup-alert {
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
}

.agent-signup-alert p {
    margin: 0;
    color: #92400e;
    font-size: 14px;
}

.agent-signup-alert a {
    color: #d97706;
    font-weight: 600;
    text-decoration: underline;
}

.agent-signup-error {
    background: #fee2e2;
    border: 1px solid #f87171;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    color: #991b1b;
}

.agent-signup-form {
    margin-top: 0;
}

.agent-signup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.agent-signup-field {
    margin-bottom: 20px;
}

.agent-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.agent-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.agent-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.agent-validation {
    color: #ef4444;
    font-size: 12px;
    display: block;
    margin-top: 4px;
}

#usernameError {
    font-size: 12px;
    margin-top: 4px;
}

#usernameChecking {
    font-size: 12px;
    margin-top: 4px;
}

#usernameError[style*="color: #10b981"] {
    color: #10b981 !important;
}

.required {
    color: #ef4444;
}

.agent-signup-submit {
    margin-top: 30px;
    text-align: center;
}

.agent-submit-btn {
    background: #3b82f6;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-submit-btn:hover {
    background: #2563eb;
}

.agent-signup-footer {
    margin-top: 20px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.agent-signup-footer p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.agent-signup-footer a {
    color: #3b82f6;
    font-weight: 600;
    text-decoration: none;
}

.agent-signup-footer a:hover {
    text-decoration: underline;
}

/* Agent Success Page */
.agent-success-container {
    padding: 60px 20px;
    max-width: 700px;
}

.agent-success-page {
    background: white;
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.agent-success-header {
    margin-bottom: 30px;
}

.agent-success-icon {
    width: 100px;
    height: 100px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.agent-success-icon i {
    font-size: 48px;
    color: white;
}

.agent-success-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 10px;
}

.agent-success-header p {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 30px;
}

.agent-success-details {
    background: #f9fafb;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: left;
}

.agent-success-row {
    margin-bottom: 15px;
}

.agent-success-row:last-child {
    margin-bottom: 0;
}

.agent-success-row label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    font-size: 14px;
}

.agent-success-row p {
    color: #1f2937;
    font-size: 16px;
    margin: 0;
}

.agent-success-strong {
    font-weight: 600;
}

.agent-success-password {
    font-family: monospace;
    background: #f3f4f6;
    padding: 8px;
    border-radius: 4px;
}

.agent-success-note {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    margin-bottom: 0;
}

.agent-success-actions {
    margin-top: 40px;
}

.agent-success-btn {
    display: inline-block;
    background: #3b82f6;
    color: white;
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.agent-success-btn:hover {
    background: #2563eb;
}

.agent-success-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.agent-success-footer p {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

@media (max-width: 768px) {
    .agent-signup-container,
    .agent-success-container {
        padding: 40px 15px;
    }

    .agent-signup-page,
    .agent-success-page {
        padding: 30px 20px;
    }

    .agent-signup-grid {
        grid-template-columns: 1fr;
    }

    .agent-signup-header h2,
    .agent-success-header h2 {
        font-size: 24px;
    }
}
