/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 80px;
    color: #333;
    padding-top: 60px;
}

/* ===== CUSTOM NAVBAR ===== */
.navbar-custom {
    background: #ffffff;
    padding: 12px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.nav-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 20px;
    color: #007bff;
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: #007bff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 700;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #007bff;
}

.phone-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.phone-btn i {
    font-size: 14px;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #007bff;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.menu-btn:hover {
    background: rgba(0, 123, 255, 0.1);
}

.language-dropdown {
    position: relative;
}

.language-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-btn:hover {
    background: rgba(0, 123, 255, 0.1);
}

.language-btn i {
    font-size: 10px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 0;
    right: 0;
    left: auto;
}

.dropdown-item {
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.8), rgba(0, 86, 179, 0.8)),
    url('https://images.pexels.com/photos/106399/pexels-photo-106399.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=750&w=1260') center/cover no-repeat;
    color: #fff;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 20px 0px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    margin-bottom: 30px;
}

.category-btn {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    min-height: 85px;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.category-btn.active {
    border-color: #007bff;
    background: #fff;
}

.category-icon {
    width: 36px;
    height: 36px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
}

.category-btn.active .category-icon {
    background: #007bff;
    color: white;
}

.category-btn span {
    font-size: 11px;
    font-weight: 500;
    color: #374151;
}

.category-btn.active span {
    color: #007bff;
    font-weight: 600;
}

/* ===== LISTINGS SECTION ===== */
.listings-section {
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.listing-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.filter-btn {
    background: #f3f4f6;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    white-space: nowrap;
    transition: all 0.2s;
    color: #6b7280;
    cursor: pointer;
}

.filter-btn.active {
    background: #007bff;
    color: white;
}

.filter-btn:hover:not(.active) {
    background: #e5e7eb;
}

/* ===== PROPERTY CARDS ===== */
.property-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

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

.property-image {
    position: relative;
    /*height: 120px;*/
    background-size: cover;
    background-position: center;
}

.property-favorite {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #9ca3af;
    font-size: 12px;
    transition: all 0.2s;
}

.property-favorite:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.property-favorite.active {
    color: #ef4444;
    background: rgba(255, 255, 255, 1);
}

.property-info {
    padding: 12px;
}

.property-price {
    color: #007bff;
    font-weight: 700;
    margin-bottom: 4px;
    font-size: 14px;
}

.property-details {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.property-address {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.3;
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    z-index: 1000;
    padding: 8px 0 12px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #9ca3af;
    transition: all 0.2s;
    padding: 4px 8px;
    border-radius: 8px;
    min-width: 50px;
}

.nav-item:hover {
    color: #007bff;
    text-decoration: none;
}

.nav-item.active {
    color: #007bff;
}

.nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.nav-icon i {
    font-size: 18px;
}

.nav-label {
    font-size: 10px;
    font-weight: 500;
    text-align: center;
}

.add-item {
    position: relative;
    margin-top: -8px;
}

.add-icon {
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    margin-bottom: 0;
}

.add-icon:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.add-icon i {
    font-size: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 576px) {
    .navbar-content {
        padding: 0 15px;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }

    .logo-text {
        font-size: 18px;
    }

    .phone-btn {
        width: 32px;
        height: 32px;
    }

    .phone-btn i {
        font-size: 12px;
    }

    .nav-right {
        gap: 10px;
    }

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

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .category-btn {
        padding: 12px 6px;
        min-height: 75px;
    }

    .category-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .category-btn span {
        font-size: 10px;
    }

    .nav-left,
    .nav-right {
        min-width: 80px;
    }









}

@media (max-width: 480px) {
    .nav-left,
    .nav-right {
        min-width: 70px;
    }

    .nav-container {
        padding: 0 10px;
    }
}

@media (min-width: 768px) {
    .main-content {
        padding: 30px 20px;
    }

    .hero-banner {
        height: 250px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-card {
    animation: fadeInUp 0.5s ease-out;
}

.category-btn {
    animation: fadeInUp 0.3s ease-out;
}

/* ===== UTILITY CLASSES ===== */
.text-primary-custom {
    color: #007bff !important;
}

.bg-primary-custom {
    background: #007bff !important;
}

.shadow-custom {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* ===== PROFILE PAGE STYLES ===== */
.profile-page {
    padding: 20px 16px;
    background: #f8f9fa;
}

/* ===== USER INFO CARD ===== */
.user-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    flex-shrink: 0;
}

.user-details {
    flex: 1;
}

.user-name {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.user-id {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.edit-profile-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 123, 255, 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.edit-profile-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    color: #0056b3;
    transform: scale(1.05);
}

/* ===== PROFILE MENU ===== */
.profile-menu {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    position: relative;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: rgba(0, 123, 255, 0.05);
    color: #007bff;
    text-decoration: none;
}

.menu-item.realtor-item {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05), rgba(0, 86, 179, 0.05));
    border-left: 4px solid #007bff;
}

.menu-item.logout-item {
    color: #ef4444;
}

.menu-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.05);
    color: #dc2626;
}

.menu-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 18px;
    color: #6b7280;
    flex-shrink: 0;
}

.menu-item:hover .menu-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.realtor-item .menu-icon {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.logout-item .menu-icon {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.logout-item:hover .menu-icon {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.menu-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-title {
    font-size: 16px;
    font-weight: 500;
    color: inherit;
}

.menu-subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.menu-badge {
    background: #007bff;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    min-width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-action-btn {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.menu-action-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

/* ===== RESPONSIVE DESIGN FOR PROFILE ===== */
@media (max-width: 576px) {
    .profile-page {
        padding: 15px 12px;
    }

    .user-info-card {
        padding: 16px;
        gap: 12px;
    }

    .user-avatar {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }

    .user-name {
        font-size: 16px;
    }

    .user-id {
        font-size: 13px;
    }

    .edit-profile-btn {
        width: 36px;
        height: 36px;
    }

    .menu-item {
        padding: 14px 16px;
    }

    .menu-icon {
        width: 36px;
        height: 36px;
        margin-right: 12px;
        font-size: 16px;
    }

    .menu-title {
        font-size: 15px;
    }

    .menu-subtitle {
        font-size: 11px;
    }
}

@media (min-width: 768px) {
    .profile-page {
        padding: 30px 20px;
        max-width: 600px;
        margin: 0 auto;
    }

    .user-info-card {
        padding: 24px;
    }

    .user-avatar {
        width: 70px;
        height: 70px;
        font-size: 36px;
    }

    .user-name {
        font-size: 20px;
    }

    .menu-item {
        padding: 18px 24px;
    }
}

/* ===== ANIMATIONS FOR PROFILE ===== */
.user-info-card {
    animation: fadeInUp 0.4s ease-out;
}

.profile-menu {
    animation: fadeInUp 0.5s ease-out;
}

.menu-item {
    animation: fadeInUp 0.3s ease-out;
}

.menu-item:nth-child(1) { animation-delay: 0.1s; }
.menu-item:nth-child(2) { animation-delay: 0.15s; }
.menu-item:nth-child(3) { animation-delay: 0.2s; }
.menu-item:nth-child(4) { animation-delay: 0.25s; }
.menu-item:nth-child(5) { animation-delay: 0.3s; }
.menu-item:nth-child(6) { animation-delay: 0.35s; }
.menu-item:nth-child(7) { animation-delay: 0.4s; }
.menu-item:nth-child(8) { animation-delay: 0.45s; }
.menu-item:nth-child(9) { animation-delay: 0.5s; }
.menu-item:nth-child(10) { animation-delay: 0.55s; }

/* ===== SEARCH PAGE STYLES ===== */
.search-page {
    padding: 0;
    background: #f8f9fa;
}

/* ===== FILTER SECTION ===== */
.filter-section {
    background: #fff;
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1f2937;
}

.filter-group {
    margin-bottom: 16px;
}

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

.form-select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    color: #374151;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.price-input {
    flex: 1;
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    text-align: center;
    min-width: 0;
    transition: all 0.2s ease;
}

.price-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.price-separator {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 2px;
    flex-shrink: 0;
}

.currency-select {
    width: 80px;
    padding: 12px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    flex-shrink: 0;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 4px center;
    background-repeat: no-repeat;
    background-size: 12px;
}

.districts-btn {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    color: #374151;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.districts-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.search-btn {
    width: 100%;
    padding: 14px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ===== SEARCH CONTENT ===== */
.search-content {
    padding: 20px 16px;
}

.search-header {
    margin-bottom: 20px;
}

.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

.results-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

.sort-section {
    margin-bottom: 20px;
}

.sort-select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #374151;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

/* ===== PROPERTIES GRID ===== */
.properties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 30px;
}

.property-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    position: relative;
}

/* Gradient backgrounds */
.gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.gradient-6 { background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%); }
.gradient-7 { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); }
.gradient-8 { background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%); }

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.page-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.page-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.page-dots {
    color: #9ca3af;
    font-size: 14px;
    margin: 0 4px;
}

/* ===== RESPONSIVE DESIGN FOR SEARCH ===== */
@media (max-width: 576px) {
    .filter-section {
        padding: 16px 12px;
    }

    .search-content {
        padding: 16px 12px;
    }

    .properties-grid {
        gap: 10px;
    }

    .property-placeholder {
        height: 110px;
        font-size: 20px;
    }

    .price-inputs {
        gap: 6px;
    }

    .currency-select {
        width: 70px;
        padding: 12px 6px;
    }

    .page-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 12px 8px;
    }

    /*.search-content {*/
    /*    padding: 12px 8px;*/
    /*}*/

    .property-placeholder {
        height: 100px;
        font-size: 18px;
    }

    .price-inputs {
        gap: 4px;
    }

    .price-input {
        padding: 10px 8px;
        font-size: 13px;
    }

    .currency-select {
        width: 65px;
        padding: 10px 4px;
        font-size: 13px;
    }
}

@media (min-width: 768px) {
    .search-page {
        max-width: 800px;
        margin: 0 auto;
    }

    .filter-section {
        padding: 24px 20px;
    }

    .search-content {
        padding: 24px 20px;
    }

    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* ===== ANIMATIONS FOR SEARCH ===== */
.filter-section {
    animation: fadeInUp 0.4s ease-out;
}

.search-content {
    animation: fadeInUp 0.5s ease-out;
}

.property-card {
    animation: fadeInUp 0.3s ease-out;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.15s; }
.property-card:nth-child(3) { animation-delay: 0.2s; }
.property-card:nth-child(4) { animation-delay: 0.25s; }
.property-card:nth-child(5) { animation-delay: 0.3s; }
.property-card:nth-child(6) { animation-delay: 0.35s; }
.property-card:nth-child(7) { animation-delay: 0.4s; }
.property-card:nth-child(8) { animation-delay: 0.45s; }

/* ===== CUSTOM HEADER ===== */
.custom-header {
    background: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 999;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.custom-back-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    text-decoration: none;
}

.custom-back-btn:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    text-decoration: none;
}

.custom-page-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    text-align: center;
    flex: 1;
}

.custom-header-placeholder {
    width: 40px;
    height: 40px;
}

/* ===== NEW LISTING PAGE ===== */
.new-listing-page {
    padding: 20px 16px;
    padding-top: 140px;
    background: #f8f9fa;
}

.deal-type-selection {
    text-align: center;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 32px;
}

.deal-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.deal-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: white;
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: white;
}

.deal-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.deal-text h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.deal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.purple-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.green-gradient {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ===== MY LISTINGS PAGE ===== */
.my-listings-page {
    padding: 0;
    padding-top: 120px;
    background: #f8f9fa;
}

.listings-tabs {
    background: #fff;
    padding: 16px 16px 0;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    border-bottom: 1px solid #e5e7eb;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
}

.tab-button.active {
    color: #007bff;
    background: rgba(0, 123, 255, 0.05);
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #007bff;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    margin: 20px 16px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.empty-state-illustration {
    margin-bottom: 24px;
}

.empty-illustration-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(0, 86, 179, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: #007bff;
    font-size: 48px;
}

.empty-state-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.empty-state-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 24px;
    line-height: 1.5;
}

.empty-state-button {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.empty-state-button:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    color: white;
}

/* ===== EDIT LISTING PAGE ===== */
.edit-listing-page {
    padding: 20px 16px;
    padding-top: 140px;
    padding-bottom: 100px;
    background: #f8f9fa;
}

.form-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.property-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.property-type-btn {
    flex: 1;
    padding: 12px 8px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    min-width: 100px;
}

.property-type-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.house-types {
    display: flex;
    gap: 12px;
}

.house-type-btn {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.house-type-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #1f2937;
}

.required {
    color: #ef4444;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #374151;
    transition: all 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #007bff;
}

.checkbox-label {
    font-size: 16px;
    color: #374151;
}

.help-link {
    color: #007bff;
    text-decoration: none;
    font-size: 16px;
    margin-left: auto;
}

.help-link:hover {
    text-decoration: underline;
}

.area-input {
    position: relative;
}

.area-input input {
    padding-right: 50px;
}

.area-unit {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

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

.option-btn {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 50px;
    text-align: center;
}

.option-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 16px 20px;
    display: flex;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.btn {
    flex: 1;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* ===== RESPONSIVE DESIGN FOR NEW PAGES ===== */
@media (max-width: 576px) {
    .custom-header {
        padding: 10px 15px;
    }

    .custom-page-title {
        font-size: 16px;
    }

    .new-listing-page {
        padding: 16px 12px;
        padding-top: 130px;
    }

    .section-title {
        font-size: 20px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .deal-card {
        padding: 20px;
    }

    .deal-text h3 {
        font-size: 16px;
    }

    .deal-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .my-listings-page {
        padding-top: 110px;
    }

    .listings-tabs {
        padding: 12px 12px 0;
    }

    .tab-button {
        padding: 10px 12px;
        font-size: 13px;
    }

    .empty-state {
        padding: 40px 16px;
        margin: 16px 12px;
    }

    .empty-illustration-icon {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .empty-state-title {
        font-size: 18px;
    }

    .edit-listing-page {
        padding: 16px 12px;
        padding-top: 130px;
        padding-bottom: 90px;
    }

    .form-section {
        padding: 16px;
        margin-bottom: 12px;
    }

    .property-type-btn {
        font-size: 12px;
        padding: 10px 6px;
        min-width: 90px;
    }

    .house-type-btn {
        font-size: 13px;
        padding: 10px 12px;
    }

    .bottom-buttons {
        padding: 12px 16px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .new-listing-page,
    .my-listings-page,
    .edit-listing-page {
        max-width: 600px;
        margin: 0 auto;
    }

    .deal-cards-grid {
        max-width: 500px;
    }

    .empty-state {
        margin: 24px 20px;
    }

    .bottom-buttons {
        max-width: 600px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* ===== ANIMATIONS FOR NEW PAGES ===== */
.deal-card {
    animation: fadeInUp 0.4s ease-out;
}

.deal-card:nth-child(1) { animation-delay: 0.1s; }
.deal-card:nth-child(2) { animation-delay: 0.2s; }
.deal-card:nth-child(3) { animation-delay: 0.3s; }

.empty-state {
    animation: fadeInUp 0.5s ease-out;
}

.form-section {
    animation: fadeInUp 0.3s ease-out;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
