/* Property Search Listing Page Styles */

/* Search Header Section */
.search-listing-page {
    background: #f5f5f5;
    min-height: 100vh;
    padding-bottom: 60px;
}

.search-header-section {
    background: linear-gradient(135deg, #00A9FF 0%, #0090d9 100%);
    padding: 50px 0 80px;
    margin-bottom: -50px;
    position: relative;
}

.search-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.search-title-area {
    text-align: center;
    margin-bottom: 40px;
    color: #fff;
}

.search-title-area h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.search-title-area p {
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
}

/* Advanced Search Form */
.advanced-search-form {
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    position: relative;
}

.search-tabs-wrapper {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.search-tab {
    background: transparent;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    bottom: -2px;
}

.search-tab.active {
    color: #00A9FF;
    border-bottom-color: #00A9FF;
}

.search-tab:hover {
    color: #00A9FF;
}

.search-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

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

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    color: #00A9FF;
    font-size: 16px;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    background: #fff;
    transition: all 0.3s ease;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #00A9FF;
    box-shadow: 0 0 0 3px rgba(0, 169, 255, 0.1);
}

.filter-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.btn-search-submit {
    background: #00A9FF;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    white-space: nowrap;
}

.btn-search-submit:hover {
    background: #0090d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 169, 255, 0.3);
}

.btn-advanced-toggle {
    background: transparent;
    color: #00A9FF;
    border: 2px solid #00A9FF;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

.btn-advanced-toggle:hover {
    background: #00A9FF;
    color: #fff;
}

/* Results Section */
.results-section {
    margin-top: 80px;
}

.results-header {
    background: #fff;
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-info h2 {
    font-size: 28px;
    font-weight: 600;
    color: #011923;
    margin: 0 0 5px 0;
}

.results-count {
    font-size: 15px;
    color: #666;
}

.results-count strong {
    color: #00A9FF;
    font-weight: 700;
}

.results-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-save-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #00A9FF;
    border-radius: 10px;
    color: #00A9FF;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save-search:hover {
    background: #00A9FF;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 169, 255, 0.3);
}

.btn-save-search i {
    font-size: 16px;
}

.view-toggle {
    display: flex;
    gap: 8px;
    background: #f5f5f5;
    padding: 5px;
    border-radius: 10px;
}

.view-btn {
    background: transparent;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
    font-size: 18px;
}

.view-btn.active {
    background: #00A9FF;
    color: #fff;
}

.view-btn:hover {
    color: #00A9FF;
}

.view-btn.active:hover {
    color: #fff;
}

.sort-select {
    padding: 10px 40px 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    background: #fff;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: all 0.3s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #00A9FF;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* Property Listing Card */
.property-listing-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    cursor: pointer;
}

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

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

.property-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.property-listing-card:hover .property-image-wrapper::before {
    background: rgba(0, 0, 0, 0.25);
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-listing-card:hover .property-image {
    transform: scale(1.1);
}

.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 6;
    max-width: calc(100% - 70px);
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.badge-featured {
    background: #00A9FF;
    color: #fff;
}

.badge-hot {
    background: #ff4757;
    color: #fff;
}

.badge-new {
    background: #2ecc71;
    color: #fff;
}

.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 6;
}

.btn-favorite:hover {
    background: #fff;
    color: #ff4757;
    transform: scale(1.1);
}

.btn-favorite.active {
    color: #ff4757;
}

.property-overlay-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.property-listing-card:hover .property-overlay-actions {
    opacity: 1;
}

.overlay-btn {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 22px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.overlay-btn:hover {
    background: #00A9FF;
    color: #fff;
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 169, 255, 0.4);
}

/* Property Details */
.property-details {
    padding: 25px;
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.property-price {
    font-size: 26px;
    font-weight: 700;
    color: #00A9FF;
}

.property-price span {
    font-size: 16px;
    color: #666;
    font-weight: 500;
}

.property-status {
    padding: 6px 16px;
    background: #e8f7ff;
    color: #00A9FF;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.property-status.status-rent {
    background: #fff3e6;
    color: #ff9800;
}

.property-title {
    font-size: 22px;
    font-weight: 700;
    color: #011923;
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.property-listing-card:hover .property-title {
    color: #00A9FF;
}

.property-location {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.property-location i {
    color: #00A9FF;
    font-size: 16px;
}

/* Property Features Grid */
.property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
    padding: 20px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.feature-item i {
    color: #00A9FF;
    font-size: 18px;
}

/* Property Footer */
.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.agent-info span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.btn-contact {
    background: #00A9FF;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-contact:hover {
    background: #0090d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 169, 255, 0.3);
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination-btn {
    min-width: 45px;
    height: 45px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 10px;
    color: #333;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #00A9FF;
    color: #00A9FF;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #00A9FF;
    color: #fff;
    border-color: #00A9FF;
}

.pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination-dots {
    color: #666;
    font-weight: 600;
    padding: 0 5px;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    }
}

@media (max-width: 992px) {
    .search-title-area h1 {
        font-size: 36px;
    }

    .search-title-area p {
        font-size: 16px;
    }

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

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 20px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .results-controls {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    .search-header-section {
        padding: 30px 0 60px;
    }

    .search-title-area h1 {
        font-size: 28px;
    }

    .search-title-area p {
        font-size: 15px;
    }

    .advanced-search-form {
        padding: 25px;
    }

    .search-filters-grid {
        grid-template-columns: 1fr;
    }

    .search-tabs-wrapper {
        flex-wrap: wrap;
    }

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

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

    .results-info h2 {
        font-size: 24px;
    }

    .view-toggle {
        order: 2;
    }

    .sort-select {
        order: 1;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .search-title-area h1 {
        font-size: 24px;
    }

    .advanced-search-form {
        padding: 20px;
    }

    .results-header {
        padding: 20px;
    }

    .property-details {
        padding: 20px;
    }

    .property-price {
        font-size: 22px;
    }

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

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Animation for cards on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.property-listing-card {
    animation: fadeInUp 0.6s ease forwards;
}

.property-listing-card:nth-child(1) { animation-delay: 0.1s; }
.property-listing-card:nth-child(2) { animation-delay: 0.2s; }
.property-listing-card:nth-child(3) { animation-delay: 0.3s; }
.property-listing-card:nth-child(4) { animation-delay: 0.4s; }
.property-listing-card:nth-child(5) { animation-delay: 0.5s; }
.property-listing-card:nth-child(6) { animation-delay: 0.6s; }

/* Advanced Filters Panel */
.advanced-filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    margin-top: 0;
}

.advanced-filters-panel.active {
    max-height: 800px;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 2px solid #f0f0f0;
}

.advanced-filters-panel h4 {
    font-size: 18px;
    font-weight: 700;
    color: #011923;
    margin-bottom: 20px;
}

.advanced-filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.amenities-section {
    margin-bottom: 25px;
}

.amenities-label {
    font-size: 16px;
    font-weight: 700;
    color: #011923;
    display: block;
    margin-bottom: 15px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-label:hover {
    border-color: #00A9FF;
    background: #f5faff;
}

.amenity-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #00A9FF;
}

.checkbox-label span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.advanced-panel-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-reset-filters,
.btn-apply-filters {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-reset-filters {
    background: #f5f5f5;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-reset-filters:hover {
    background: #fff;
    border-color: #00A9FF;
    color: #00A9FF;
}

.btn-apply-filters {
    background: #00A9FF;
    color: #fff;
}

.btn-apply-filters:hover {
    background: #0090d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 169, 255, 0.3);
}

/* Compare Properties Sidebar */
.compare-sidebar {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.4s ease;
}

.compare-sidebar.active {
    right: 0;
}

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

.compare-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #011923;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-compare {
    width: 35px;
    height: 35px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #666;
    font-size: 20px;
    transition: all 0.3s ease;
}

.btn-close-compare:hover {
    background: #ff4757;
    color: #fff;
}

.compare-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.compare-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #999;
    text-align: center;
}

.compare-empty i {
    font-size: 60px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.compare-empty p {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.compare-empty span {
    font-size: 14px;
}

.compare-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    position: relative;
}

.compare-item-image {
    width: 100px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.compare-item-details {
    flex: 1;
}

.compare-item-title {
    font-size: 16px;
    font-weight: 700;
    color: #011923;
    margin: 0 0 5px 0;
}

.compare-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #00A9FF;
    margin: 5px 0;
}

.compare-item-location {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-remove-compare {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 25px;
    height: 25px;
    border: none;
    background: #ff4757;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-remove-compare:hover {
    transform: scale(1.1);
}

.compare-footer {
    padding: 20px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    gap: 10px;
}

.btn-clear-compare,
.btn-view-comparison {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-clear-compare {
    background: #f5f5f5;
    color: #666;
}

.btn-clear-compare:hover {
    background: #ff4757;
    color: #fff;
}

.btn-view-comparison {
    background: #00A9FF;
    color: #fff;
}

.btn-view-comparison:hover {
    background: #0090d9;
}

/* Compare Toggle Button */
.compare-toggle-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #00A9FF;
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 169, 255, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.compare-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 169, 255, 0.5);
}

.compare-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 24px;
    height: 24px;
    background: #ff4757;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 3px solid #fff;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.quick-view-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 1200px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    z-index: 2001;
    animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.btn-close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 2002;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-close-modal:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Modal Gallery */
.modal-gallery {
    padding: 30px;
    background: #f8f9fa;
}

.main-image-slider {
    position: relative;
    margin-bottom: 15px;
}

.main-image {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00A9FF;
    font-size: 24px;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.slider-nav-btn:hover {
    background: #00A9FF;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.slider-nav-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #00A9FF;
    transform: translateY(-50%);
}

.prev-btn {
    left: 15px;
}

.next-btn {
    right: 15px;
}

.thumbnail-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #00A9FF;
}

.thumbnail.active {
    border-color: #00A9FF;
}

/* Modal Details */
.modal-details {
    padding: 40px;
}

.modal-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.modal-title {
    font-size: 32px;
    font-weight: 700;
    color: #011923;
    margin: 0 0 10px 0;
}

.modal-location {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.modal-location i {
    color: #00A9FF;
    font-size: 18px;
}

.modal-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
}

.modal-price {
    font-size: 36px;
    font-weight: 700;
    color: #00A9FF;
}

.modal-status {
    padding: 8px 20px;
    background: #e8f7ff;
    color: #00A9FF;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.modal-description {
    margin-bottom: 25px;
}

.modal-description h4,
.modal-features h4 {
    font-size: 18px;
    font-weight: 700;
    color: #011923;
    margin: 0 0 15px 0;
}

.modal-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
}

.modal-features {
    margin-bottom: 25px;
}

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

.modal-feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.modal-feature-item i {
    font-size: 28px;
    color: #00A9FF;
}

.modal-feature-item div {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

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

.modal-agent {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
}

.modal-agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.modal-agent-info {
    display: flex;
    flex-direction: column;
}

.agent-name {
    font-size: 16px;
    font-weight: 700;
    color: #011923;
}

.agent-role {
    font-size: 14px;
    color: #666;
}

.modal-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.btn-modal-favorite,
.btn-modal-contact,
.btn-modal-details {
    padding: 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-modal-favorite {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

.btn-modal-favorite:hover {
    border-color: #ff4757;
    color: #ff4757;
}

.btn-modal-contact {
    background: #00A9FF;
    color: #fff;
}

.btn-modal-contact:hover {
    background: #0090d9;
    transform: translateY(-2px);
}

.btn-modal-details {
    background: #2ecc71;
    color: #fff;
}

.btn-modal-details:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

/* Responsive Design - Comprehensive Mobile & Tablet Support */

/* Large Tablets and Small Desktops (992px - 1200px) */
@media (max-width: 1200px) {
    .search-header-content {
        padding: 0 20px;
    }

    .search-title-area h1 {
        font-size: 42px;
    }

    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 25px;
    }

    .results-section {
        margin-top: 70px;
    }
}

/* Tablets (768px - 992px) */
@media (max-width: 992px) {
    /* Search Header */
    .search-header-section {
        padding: 40px 0 70px;
    }

    .search-title-area h1 {
        font-size: 36px;
    }

    .search-title-area p {
        font-size: 16px;
    }

    /* Search Form */
    .advanced-search-form {
        padding: 30px;
    }

    .search-filters-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .search-tabs-wrapper {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .search-tab {
        padding: 10px 25px;
        font-size: 15px;
        white-space: nowrap;
    }

    /* Results Header */
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 20px 25px;
    }

    .results-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .sort-select {
        order: 1;
        flex: 1;
        min-width: 200px;
    }

    .view-toggle {
        order: 2;
    }

    .results-info h2 {
        font-size: 24px;
    }

    /* Properties Grid */
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 20px;
    }

    .property-image-wrapper {
        height: 240px;
    }

    /* Modal */
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-title {
        font-size: 26px;
    }

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

    .modal-actions {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 350px;
    }

    /* Compare Sidebar */
    .compare-sidebar {
        width: 350px;
        right: -350px;
    }

    /* Advanced Filters */
    .advanced-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    /* Pagination */
    .pagination-wrapper {
        gap: 8px;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

/* Small Tablets and Large Phones (576px - 768px) */
@media (max-width: 768px) {
    /* Search Header */
    .search-header-section {
        padding: 30px 0 60px;
        margin-bottom: -40px;
    }

    .search-title-area {
        margin-bottom: 30px;
    }

    .search-title-area h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .search-title-area p {
        font-size: 15px;
    }

    /* Search Form */
    .advanced-search-form {
        padding: 25px;
        border-radius: 15px;
    }

    .search-filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btn-search-submit {
        width: 100%;
        padding: 14px;
        font-size: 15px;
    }

    .btn-advanced-toggle {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }

    /* Advanced Filters */
    .advanced-filters-panel.active {
        max-height: 1000px;
    }

    .advanced-filters-grid {
        grid-template-columns: 1fr;
    }

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

    .advanced-panel-actions {
        flex-direction: column;
    }

    .btn-reset-filters,
    .btn-apply-filters {
        width: 100%;
    }

    /* Results Section */
    .results-section {
        margin-top: 60px;
    }

    .results-header {
        padding: 20px;
        border-radius: 12px;
    }

    .results-info h2 {
        font-size: 22px;
    }

    .results-count {
        font-size: 14px;
    }

    .results-controls {
        flex-direction: column;
        gap: 12px;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .sort-select {
        width: 100%;
    }

    /* Properties Grid */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .property-listing-card {
        max-width: 600px;
        margin: 0 auto;
    }

    .property-image-wrapper {
        height: 260px;
    }

    .property-details {
        padding: 20px;
    }

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

    .property-price {
        font-size: 24px;
    }

    .property-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    /* Modal */
    .quick-view-content {
        width: 95%;
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-gallery {
        padding: 20px;
    }

    .modal-details {
        padding: 25px;
    }

    .main-image {
        height: 300px;
        border-radius: 12px;
    }

    .thumbnail-strip {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

    .thumbnail {
        height: 70px;
    }

    .modal-title {
        font-size: 24px;
    }

    .modal-price {
        font-size: 26px;
    }

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

    .modal-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .btn-close-modal {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }

    /* Compare Sidebar */
    .compare-sidebar {
        width: 100%;
        right: -100%;
    }

    .compare-header {
        padding: 20px;
    }

    .compare-header h3 {
        font-size: 18px;
    }

    .compare-item {
        flex-direction: column;
        text-align: center;
    }

    .compare-item-image {
        width: 100%;
        height: 150px;
    }

    .compare-footer {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
    }

    /* Pagination */
    .pagination-wrapper {
        flex-wrap: wrap;
        gap: 6px;
    }

    .pagination-dots {
        display: none;
    }
}

/* Mobile Phones (480px - 576px) */
@media (max-width: 576px) {
    /* Search Header */
    .search-header-section {
        padding: 25px 0 50px;
    }

    .search-title-area h1 {
        font-size: 24px;
    }

    .search-title-area p {
        font-size: 14px;
    }

    /* Search Form */
    .advanced-search-form {
        padding: 20px;
    }

    .search-tabs-wrapper {
        gap: 5px;
    }

    .search-tab {
        padding: 8px 20px;
        font-size: 14px;
    }

    .filter-group label {
        font-size: 13px;
    }

    .filter-input,
    .filter-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    /* Results */
    .results-header {
        padding: 15px;
    }

    .results-info h2 {
        font-size: 20px;
    }

    .view-toggle {
        padding: 4px;
    }

    .view-btn {
        padding: 8px 12px;
        font-size: 16px;
    }

    /* Properties Grid */
    .property-image-wrapper {
        height: 220px;
    }

    .property-details {
        padding: 16px;
    }

    .property-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .property-price {
        font-size: 22px;
    }

    .property-location {
        font-size: 13px;
    }

    .property-features-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .feature-item {
        font-size: 13px;
    }

    .property-footer {
        flex-direction: column;
        gap: 12px;
    }

    .btn-contact {
        width: 100%;
    }

    /* Badges */
    .badge {
        font-size: 11px;
        padding: 4px 10px;
    }

    .btn-favorite {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .property-overlay-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .overlay-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Modal */
    .quick-view-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-gallery {
        padding: 15px;
    }

    .modal-details {
        padding: 20px;
    }

    .main-image {
        height: 250px;
    }

    .thumbnail-strip {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .thumbnail {
        height: 60px;
    }

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

    .modal-price {
        font-size: 22px;
    }

    .modal-price-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 15px;
    }

    .modal-description p {
        font-size: 14px;
    }

    .modal-feature-item {
        padding: 12px;
    }

    .modal-feature-item i {
        font-size: 24px;
    }

    .feature-value {
        font-size: 16px;
    }

    .modal-agent {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .btn-modal-favorite,
    .btn-modal-contact,
    .btn-modal-details {
        padding: 12px;
        font-size: 13px;
    }

    /* Compare */
    .compare-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        right: 20px;
        bottom: 20px;
    }

    .compare-count {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }

    .compare-item {
        padding: 12px;
    }

    .compare-item-title {
        font-size: 15px;
    }

    .compare-item-price {
        font-size: 16px;
    }

    /* Advanced Filters */
    .advanced-filters-panel h4 {
        font-size: 16px;
    }

    .checkbox-label {
        padding: 8px;
    }

    .checkbox-label span {
        font-size: 13px;
    }

    /* Pagination */
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
    }
}

/* Extra Small Mobile (360px - 480px) */
@media (max-width: 480px) {
    .search-title-area h1 {
        font-size: 22px;
    }

    .advanced-search-form {
        padding: 15px;
    }

    .search-tab {
        padding: 8px 16px;
        font-size: 13px;
    }

    .property-image-wrapper {
        height: 200px;
    }

    .property-title {
        font-size: 16px;
    }

    .property-price {
        font-size: 20px;
    }

    .results-info h2 {
        font-size: 18px;
    }

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

    .main-image {
        height: 220px;
    }

    .btn-close-modal {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
}

/* Very Small Mobile (< 360px) */
@media (max-width: 360px) {
    .search-title-area h1 {
        font-size: 20px;
    }

    .search-title-area p {
        font-size: 13px;
    }

    .search-tabs-wrapper {
        flex-direction: column;
        width: 100%;
    }

    .search-tab {
        width: 100%;
        text-align: center;
    }

    .property-image-wrapper {
        height: 180px;
    }

    .compare-toggle-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        right: 15px;
        bottom: 15px;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Landscape Mode Optimization for Mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .search-header-section {
        padding: 20px 0 40px;
    }

    .search-title-area h1 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .search-title-area p {
        font-size: 14px;
    }

    .quick-view-content {
        max-height: 98vh;
    }

    .modal-gallery {
        padding: 15px;
    }

    .main-image {
        height: 250px;
    }

    .modal-details {
        padding: 20px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn-favorite,
    .overlay-btn,
    .btn-contact,
    .pagination-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .search-tab {
        min-height: 44px;
    }

    .filter-input,
    .filter-select {
        min-height: 48px;
    }

    .btn-search-submit {
        min-height: 48px;
    }
}

/* Print Styles */
@media print {
    .compare-sidebar,
    .compare-toggle-btn,
    .quick-view-modal,
    .btn-advanced-toggle,
    .advanced-filters-panel,
    .property-overlay-actions,
    .btn-favorite,
    .pagination-wrapper,
    .results-controls {
        display: none !important;
    }

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

    .property-listing-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Notification Styles */
.notification {
    position: fixed;
    top: -100px;
    right: 30px;
    background: #fff;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3000;
    min-width: 300px;
    transition: all 0.3s ease;
}

.notification.show {
    top: 30px;
}

.notification i {
    font-size: 24px;
}

.notification-success {
    border-left: 4px solid #2ecc71;
}

.notification-success i {
    color: #2ecc71;
}

.notification-error {
    border-left: 4px solid #ff4757;
}

.notification-error i {
    color: #ff4757;
}

.notification-info {
    border-left: 4px solid #00A9FF;
}

.notification-info i {
    color: #00A9FF;
}

.notification span {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

/* Contact Form Modal */
.contact-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.contact-form-modal.active {
    opacity: 1;
    visibility: visible;
}

.contact-form-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
}

.contact-form-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2501;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease;
}

.btn-close-contact-form {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    font-size: 20px;
    transition: all 0.3s ease;
}

.btn-close-contact-form:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.contact-form-content h3 {
    font-size: 28px;
    font-weight: 700;
    color: #011923;
    margin: 0 0 10px 0;
}

.contact-property-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.contact-property-info strong {
    color: #00A9FF;
}

.agent-contact-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,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #00A9FF;
    box-shadow: 0 0 0 3px rgba(0, 169, 255, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit-contact {
    background: #00A9FF;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-contact:hover {
    background: #0090d9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 169, 255, 0.3);
}

.btn-submit-contact i {
    font-size: 18px;
}

/* Responsive for notifications and contact form */
@media (max-width: 576px) {
    .notification {
        right: 15px;
        left: 15px;
        min-width: auto;
    }

    .notification.show {
        top: 15px;
    }

    .contact-form-content {
        padding: 30px 20px;
        width: 95%;
        border-radius: 15px;
    }

    .contact-form-content h3 {
        font-size: 24px;
    }

    .form-input,
    .form-textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    /* Slider responsive */
    .slider-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .image-counter {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ========================================
   Property Card Slider Styles
   ======================================== */

.card-slider {
    position: relative;
    overflow: hidden;
}

.card-images-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-images-container .property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card-images-container .property-image.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

.card-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #00A9FF;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 4;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.card-slider:hover .card-slider-btn {
    opacity: 1;
    visibility: visible;
}

.card-prev-btn {
    left: 10px;
}

.card-next-btn {
    right: 10px;
}

.card-slider-btn:hover {
    background: #00A9FF;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.card-slider-btn i {
    font-size: 18px;
}

.card-image-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.property-listing-card:hover .card-image-dots {
    opacity: 0.7;
}

.card-image-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-image-dots .dot:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.2);
}

.card-image-dots .dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* Responsive adjustments for card sliders */
@media (max-width: 768px) {
    .card-slider-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .card-image-dots {
        bottom: 10px;
        padding: 4px 8px;
    }

    .card-image-dots .dot {
        width: 6px;
        height: 6px;
    }

    .card-image-dots .dot.active {
        width: 18px;
    }
}

@media (max-width: 576px) {
    .card-slider-btn {
        opacity: 1;
        visibility: visible;
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}

/* ========================================
   Contact Agent Modal Styles
   ======================================== */

.contact-agent-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.contact-agent-modal.active {
    display: block;
}

.contact-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.contact-modal-content {
    position: relative;
    max-width: 700px;
    margin: 50px auto;
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
    font-size: 18px;
}

.contact-modal-close:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.contact-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-modal-header i {
    font-size: 50px;
    color: #00A9FF;
    margin-bottom: 15px;
}

.contact-modal-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.contact-modal-header p {
    font-size: 16px;
    color: #999;
    margin: 0;
}

.contact-property-info {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 25px;
}

.contact-property-thumb {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
}

.contact-property-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
}

.contact-property-details p {
    font-size: 18px;
    font-weight: 800;
    color: #00A9FF;
    margin: 0;
}

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

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

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

.form-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-family: "Plus Jakarta Sans", sans-serif;
    transition: all 0.3s ease;
}

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

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

.contact-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #e8f4ff 0%, #f0f8ff 100%);
    border-radius: 12px;
    margin-bottom: 25px;
    border: 2px dashed #00A9FF;
}

.agent-small-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
}

.agent-small-info {
    display: flex;
    flex-direction: column;
}

.agent-small-info strong {
    font-size: 15px;
    color: #333;
}

.agent-small-info span {
    font-size: 13px;
    color: #666;
}

.btn-submit-contact {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00A9FF 0%, #0088cc 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 169, 255, 0.3);
}

.btn-submit-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 169, 255, 0.4);
}

.btn-submit-contact:active {
    transform: translateY(0);
}

/* Responsive for Contact Modal */
@media (max-width: 768px) {
    .contact-modal-content {
        margin: 20px;
        padding: 30px 25px;
        max-height: calc(100vh - 40px);
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-modal-header i {
        font-size: 40px;
    }

    .contact-modal-header h3 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .contact-modal-content {
        margin: 10px;
        padding: 25px 20px;
    }

    .contact-property-info {
        flex-direction: column;
        text-align: center;
    }

    .contact-property-thumb {
        width: 100px;
        height: 100px;
    }
}

/* ========================================
   Save Search Modal
   ======================================== */

.save-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.save-search-modal.active {
    display: flex;
}

.save-search-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.save-search-content {
    position: relative;
    background: #fff;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.save-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f5;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.save-search-close:hover {
    background: #ff4757;
    color: #fff;
    transform: rotate(90deg);
}

.save-search-header {
    text-align: center;
    padding: 40px 40px 30px;
    border-bottom: 2px solid #f0f0f0;
}

.save-search-header i {
    font-size: 48px;
    color: #00A9FF;
    margin-bottom: 15px;
}

.save-search-header h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.save-search-header p {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.save-search-form {
    padding: 30px 40px 40px;
}

.current-search-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.current-search-summary h4 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.search-criteria-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.criteria-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.criteria-tag i {
    color: #00A9FF;
    font-size: 14px;
}

.notification-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.frequency-options {
    display: flex;
    gap: 12px;
}

.radio-option-inline {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
}

.radio-option-inline:hover {
    border-color: #00A9FF;
    background: #f8f9fa;
}

.radio-option-inline input[type="radio"] {
    margin-right: 8px;
    accent-color: #00A9FF;
}

.radio-option-inline input[type="radio"]:checked + span {
    color: #00A9FF;
    font-weight: 600;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    cursor: pointer;
}

.checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #00A9FF;
    cursor: pointer;
}

.checkbox-option span {
    font-size: 14px;
    color: #555;
}

.saved-searches-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #e8f4ff;
    border-radius: 10px;
    margin: 20px 0;
}

.saved-searches-info i {
    color: #00A9FF;
    font-size: 20px;
}

.saved-searches-info span {
    font-size: 14px;
    color: #333;
}

.save-search-actions {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.btn-cancel-save {
    flex: 1;
    padding: 14px 20px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancel-save:hover {
    border-color: #999;
    background: #f5f5f5;
}

.btn-submit-save {
    flex: 2;
    padding: 14px 20px;
    background: #00A9FF;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit-save:hover {
    background: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 169, 255, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .save-search-content {
        width: 95%;
        max-height: 95vh;
    }

    .save-search-header {
        padding: 30px 25px 20px;
    }

    .save-search-form {
        padding: 25px 25px 30px;
    }

    .frequency-options {
        flex-direction: column;
    }

    .save-search-actions {
        flex-direction: column;
    }

    .btn-cancel-save,
    .btn-submit-save {
        width: 100%;
    }
}
