/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    overflow: hidden;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e5e5;
    padding: 16px 24px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.header-content {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: baseline;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: #6C4FE0;
    transition: opacity 0.2s;
}

.logo:hover h1 {
    opacity: 0.8;
}

.logo span {
    font-size: 14px;
    color: #666;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: #6C4FE0;
}

.nav-link.active {
    color: #6C4FE0;
    font-weight: 700;
}

/* Header User */
.header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.btn-login,
.btn-logout {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #6C4FE0;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover,
.btn-logout:hover {
    background: #5a3fc7;
}

.btn-logout {
    padding: 8px;
    background: #e53e3e;
}

.btn-logout:hover {
    background: #c53030;
}

/* Search Container */
.search-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px);
    padding: 16px 24px 12px 24px;
    border-bottom: 1px solid rgba(229, 229, 229, 0.2);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
}

.search-bar {
    width: 100%;
    max-width: 800px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 14px 60px 14px 20px;
    border: 2px solid #e5e5e5;
    border-radius: 28px;
    font-size: 15px;
    background: white;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-bar input:focus {
    outline: none;
    border-color: #6C4FE0;
    box-shadow: 0 0 0 3px rgba(108, 79, 224, 0.1);
}

.search-button {
    position: absolute;
    right: 6px;
    background: #6C4FE0;
    color: white;
    border: none;
    border-radius: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.search-button:hover {
    background: #5a3fc7;
}

/* Filter Chips */
.filter-chips {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 24px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
    transition: background 0.2s, border-color 0.2s;
}

.filter-chip:hover {
    background: #f5f5f5;
    border-color: #6C4FE0;
}

.filter-chip-label {
    font-weight: 600;
    color: #666;
}

.filter-chip-value {
    color: #333;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
    font-size: 16px;
    line-height: 1;
}

.filter-chip-remove:hover {
    background: #e5e5e5;
    color: #333;
}

/* Toggle Panel Button */
.toggle-panel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 60px;
    background: white;
    border: 1px solid #e5e5e5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 950;
    transition: background 0.2s;
    color: #666;
}

.toggle-panel-btn svg {
    transition: transform 0.3s ease;
}

.toggle-panel-btn:hover {
    background: #f8f8f8;
    color: #6C4FE0;
}

.toggle-panel-btn-left {
    left: 10px;
    border-radius: 8px;
}

.toggle-panel-btn-right {
    right: 10px;
    border-radius: 8px;
}


/* Filter Sidebar */
.filter-sidebar {
    width: 280px;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: width 0.3s ease;
}

.filter-sidebar.minimized {
    width: 50px;
    overflow: hidden;
}

.filter-sidebar-minimized-label {
    display: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    letter-spacing: 3px;
    padding: 20px 0;
    text-align: center;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.filter-sidebar.minimized .filter-sidebar-minimized-label {
    display: flex;
}

.filter-sidebar.minimized .filter-sidebar-header,
.filter-sidebar.minimized .filter-sidebar-content {
    display: none;
}

.filter-sidebar-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f8f8;
}

.filter-sidebar-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.filter-sidebar-content {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 13px;
    color: #666;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    width: 100%;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #6C4FE0;
}

.filter-button {
    padding: 12px 20px;
    background: #6C4FE0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    width: 100%;
}

.filter-button:hover {
    background: #5a3fc7;
}

.filter-button.secondary {
    background: white;
    color: #666;
    border: 1px solid #ddd;
}

.filter-button.secondary:hover {
    background: #f5f5f5;
}

/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
    padding-top: 65px;
}

/* List Container */
.list-container {
    width: 35%;
    max-width: 450px;
    overflow-y: auto;
    background: #fff;
    border-right: 1px solid #e5e5e5;
    position: relative;
    transition: width 0.3s ease, max-width 0.3s ease;
}

.list-container.minimized {
    width: 50px;
    max-width: 50px;
    overflow: hidden;
}

.list-container-minimized-label {
    display: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    letter-spacing: 3px;
    text-align: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.list-container.minimized .list-container-minimized-label {
    display: flex;
}

.list-container.minimized .list-header,
.list-container.minimized .properties-list {
    display: none;
}

.list-header {
    padding: 20px 24px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.list-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.list-header p {
    font-size: 14px;
    color: #666;
}

.properties-list {
    padding: 0;
}

/* Property Card */
.property-card {
    padding: 20px 24px;
    border-bottom: 3px solid #e5e5e5;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.property-card:hover {
    background: #f8f8f8;
}

.property-card.highlighted {
    background: #f0ebff;
    border-bottom-color: #6C4FE0;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
}

.property-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.badge {
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
}

.badge.featured {
    background: #fff3cd;
    color: #856404;
}

/* Broker Tags Container */
.broker-tags-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

/* Broker Tag */
.broker-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.broker-logo {
    height: 28px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
}

.broker-name {
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.property-price-period {
    font-size: 14px;
    color: #666;
    font-weight: 400;
}

.property-address {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.property-features {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #333;
}

.feature {
    display: flex;
    align-items: center;
    gap: 4px;
}

.feature::before {
    content: "•";
    font-size: 18px;
    color: #999;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Leaflet zoom control adjustment */
.leaflet-top {
    top: 20px;
}

/* Custom Marker */
.price-marker {
    background: white;
    border: 3px solid #6C4FE0;
    border-radius: 20px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    min-width: 90px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-marker:hover,
.price-marker.highlighted {
    color: white;
    transform: scale(1.1);
    z-index: 1000 !important;
}

.price-marker:hover {
    background: var(--marker-color, #6C4FE0);
}

.price-marker.highlighted {
    background: var(--marker-color, #6C4FE0);
}

/* Broker Legend */
.broker-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    font-size: 12px;
}

.broker-legend-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.broker-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.broker-legend-color {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

.broker-legend-name {
    color: #666;
    font-size: 11px;
}

/* Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 250px !important;
}

.popup-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.popup-content {
    padding: 12px;
}

.popup-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.popup-address {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.popup-features {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.popup-buttons {
    display: flex;
    gap: 8px;
}

.btn-details-popup {
    flex: 1;
    padding: 10px;
    background: white;
    color: #6C4FE0;
    border: 2px solid #6C4FE0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-details-popup:hover {
    background: #6C4FE0;
    color: white;
}

/* Loading State */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    color: #666;
}

/* Scrollbar Styling */
.list-container::-webkit-scrollbar {
    width: 8px;
}

.list-container::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.list-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.list-container::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Custom Multiselect */
.custom-multiselect {
    position: relative;
    min-width: 150px;
}

.multiselect-trigger {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 13px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.multiselect-trigger:hover {
    border-color: #6C4FE0;
}

.custom-multiselect.active .multiselect-trigger {
    border-color: #6C4FE0;
}

.multiselect-text {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.multiselect-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.2s;
}

.custom-multiselect.active .multiselect-arrow {
    transform: rotate(180deg);
}

.multiselect-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.custom-multiselect.active .multiselect-dropdown {
    display: block;
}

.multiselect-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.multiselect-option:hover {
    background: #f8f8f8;
}

.multiselect-option input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
    accent-color: #6C4FE0;
}

.multiselect-option span {
    font-size: 13px;
    color: #333;
}

/* Scrollbar Styling for Filter Sidebar */
.filter-sidebar::-webkit-scrollbar {
    width: 8px;
}

.filter-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.filter-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.filter-sidebar::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Property Card Header */
.property-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

/* Property Card Buttons Container */
.property-card-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Details Button */
.btn-details {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    flex-shrink: 0;
}

.btn-details:hover {
    border-color: #6C4FE0;
    color: #6C4FE0;
    background: #f0ebff;
}

/* Compare Button */
.btn-compare {
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    flex-shrink: 0;
}

.btn-compare:hover {
    border-color: #6C4FE0;
    color: #6C4FE0;
    background: #f0ebff;
}

.btn-compare.active {
    background: #6C4FE0;
    border-color: #6C4FE0;
    color: white;
}

.btn-compare-popup {
    flex: 1;
    padding: 10px;
    background: #6C4FE0;
    color: white;
    border: 2px solid #6C4FE0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-compare-popup:hover {
    background: #5a3fc7;
}

.btn-compare-popup.active {
    background: #e53e3e;
}

.btn-compare-popup.active:hover {
    background: #c53030;
}

/* Compare Bar */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #e5e5e5;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
    z-index: 1001;
    padding: 16px 24px;
}

.compare-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.compare-bar-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    white-space: nowrap;
}

.compare-bar-items {
    flex: 1;
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.compare-bar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f8f8;
    border-radius: 8px;
    min-width: 200px;
}

.compare-bar-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.compare-bar-item-info {
    flex: 1;
}

.compare-bar-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

.compare-bar-item-address {
    font-size: 12px;
    color: #666;
}

.btn-remove-compare {
    background: #e53e3e;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background 0.2s;
}

.btn-remove-compare:hover {
    background: #c53030;
}

.btn-compare-open {
    padding: 12px 24px;
    background: #6C4FE0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.btn-compare-open:hover:not(:disabled) {
    background: #5a3fc7;
}

.btn-compare-open:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-compare-clear {
    padding: 12px 24px;
    background: white;
    color: #666;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-compare-clear:hover {
    border-color: #6C4FE0;
    color: #6C4FE0;
}

/* Compare Modal */
.compare-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.compare-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.compare-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e5e5e5;
}

.compare-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.btn-modal-close {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    color: #666;
}

.btn-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.compare-modal-body {
    padding: 32px;
    overflow-y: auto;
}

.compare-table {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.compare-table-row {
    display: grid;
    grid-template-columns: 200px repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: #e5e5e5;
}

.compare-table-header {
    background: #f8f8f8;
}

.compare-table-cell {
    background: white;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 14px;
    color: #333;
}

.compare-table-label {
    background: #f8f8f8;
    font-weight: 700;
    justify-content: flex-start;
    text-align: left;
}

.compare-property-image {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }

    .list-container {
        width: 100%;
        max-width: 100%;
        height: 33%;
    }

    .map-container {
        height: 34%;
    }

    .filter-sidebar {
        width: 100%;
        height: 33%;
    }

    .compare-bar-content {
        flex-wrap: wrap;
    }

    .compare-table-row {
        grid-template-columns: 150px repeat(auto-fit, minmax(150px, 1fr));
    }
}

/* Details Modal */
.details-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.details-modal-content {
    background: white;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.details-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 2px solid #e5e5e5;
}

.details-modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.details-modal-body {
    padding: 0;
    overflow-y: auto;
}

.details-content {
    display: flex;
    flex-direction: column;
}

.details-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f0f0f0;
}

.details-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-main {
    padding: 32px;
}

.details-price-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.details-price {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.details-type {
    font-size: 16px;
    color: #666;
    text-transform: capitalize;
    font-weight: 600;
}

.details-address-section {
    margin-bottom: 32px;
}

.details-address-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.details-address-section p {
    font-size: 15px;
    color: #555;
    margin-bottom: 8px;
    line-height: 1.6;
}

.details-features-section {
    margin-bottom: 32px;
}

.details-features-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.details-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.details-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.details-feature-item svg {
    color: #6C4FE0;
    flex-shrink: 0;
}

.details-feature-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.details-feature-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.details-brokers-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.details-brokers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.details-broker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.details-broker-logo {
    height: 32px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.details-broker-name {
    font-size: 15px;
    color: #333;
    font-weight: 600;
}

.details-no-data {
    font-size: 14px;
    color: #999;
    font-style: italic;
}

/* Responsive Details Modal */
@media (max-width: 768px) {
    .details-modal-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .details-image-container {
        height: 250px;
    }

    .details-main {
        padding: 20px;
    }

    .details-price {
        font-size: 28px;
    }

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

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: auto;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-box {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 32px;
}

.login-logo {
    font-size: 48px;
    font-weight: 700;
    color: #6C4FE0;
    margin-bottom: 8px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.login-messages {
    margin-bottom: 24px;
}

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.alert-error {
    background: #fee;
    color: #c53030;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #2f855a;
    border: 1px solid #cfc;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-input {
    padding: 12px 16px;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #6C4FE0;
    box-shadow: 0 0 0 3px rgba(108, 79, 224, 0.1);
}

.btn-login-submit {
    padding: 14px 24px;
    background: #6C4FE0;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.btn-login-submit:hover {
    background: #5a3fc7;
}

.login-divider {
    margin: 24px 0;
    text-align: center;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e5e5e5;
}

.login-divider span {
    position: relative;
    background: white;
    padding: 0 16px;
    color: #999;
    font-size: 14px;
    font-weight: 500;
}

.btn-google-login {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: #333;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

.btn-google-login:hover {
    background: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.login-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e5e5e5;
}

.login-footer p {
    font-size: 12px;
    color: #999;
}

/* Responsive Login */
@media (max-width: 480px) {
    .login-box {
        padding: 32px 24px;
    }

    .login-logo {
        font-size: 40px;
    }
}

/* Home Page Styles */

/* Home Page */
.home-page {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Home Header */
.home-header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.home-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-logo {
    text-decoration: none;
}

.home-logo h1 {
    font-size: 32px;
    font-weight: 700;
    color: #6C4FE0;
    margin: 0;
}

.home-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn-home-login {
    padding: 10px 24px;
    background: #6C4FE0;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-home-login:hover {
    background: #5a3fc7;
}

/* Hero Section */
.hero-section {
    padding: 120px 24px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
}

.highlight {
    color: #FFD700;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary-large, .btn-secondary-large {
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.btn-primary-large {
    background: white;
    color: #6C4FE0;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.btn-secondary-large {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-large:hover {
    background: white;
    color: #6C4FE0;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup {
    width: 100%;
    max-width: 500px;
}

.mockup-screen {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.mockup-header {
    height: 40px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
}

.mockup-content {
    display: flex;
    height: 300px;
}

.mockup-sidebar {
    width: 30%;
    background: #fafafa;
    border-right: 1px solid #e5e5e5;
}

.mockup-map {
    flex: 1;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5e6ff 100%);
    position: relative;
}

.mockup-marker {
    width: 40px;
    height: 40px;
    background: #6C4FE0;
    border-radius: 50%;
    position: absolute;
    animation: pulse 2s infinite;
}

.mockup-marker:nth-child(1) { top: 20%; left: 30%; }
.mockup-marker:nth-child(2) { top: 50%; left: 60%; animation-delay: 0.3s; }
.mockup-marker:nth-child(3) { top: 70%; left: 40%; animation-delay: 0.6s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.1); opacity: 1; }
}

/* Features Section */
.features-section {
    padding: 80px 24px;
    background: white;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: #333;
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: #666;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
    padding: 32px;
    border-radius: 12px;
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(108, 79, 224, 0.15);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    color: white;
}

.feature-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #333;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 24px;
    background: #f8f8f8;
}

.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.benefits-text {
    font-size: 18px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 32px;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 16px;
    color: #333;
}

.benefits-list svg {
    color: #6C4FE0;
    flex-shrink: 0;
}

.benefits-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.stat-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #6C4FE0;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 80px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 20px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.btn-cta-large {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: white;
    color: #6C4FE0;
    font-size: 20px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-cta-large:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

/* Footer */
.home-footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 24px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo h3 {
    font-size: 28px;
    font-weight: 700;
    color: #6C4FE0;
    margin-bottom: 8px;
}

.footer-logo p {
    font-size: 14px;
    color: #999;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-copyright {
    padding-top: 24px;
    border-top: 1px solid #333;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-cta {
        justify-content: center;
    }

    .benefits-container {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .cta-title {
        font-size: 32px;
    }

    .footer-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
