/* Reset & Base */
.bg-light-gray {
    background-color: #f9f9f9;
}

/* Hero Section */
.property-hero-section {
    position: relative;
    background-color: #f4f4f4;
    padding-top: 80px;
    padding-bottom: 60px;
    margin-bottom: 110px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.35;
    z-index: 0;
    filter: grayscale(20%);
}

.hero-container {
    position: relative;
    z-index: 1;
}

.hero-text-content {
    margin-bottom: 35px;
    color: #333;
    position: relative;
}

.hero-text-content h1 {
    color: #401663;
    font-weight: 800;
    font-size: 36px;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.text-highlight {
    color: #e6007e;
}

.hero-text-content p {
    font-size: 16px;
    color: #555;
    font-weight: 500;
    margin-bottom: 0;
}

.btn-local-branch {
    position: absolute;
    top: 5px;
    right: 0;
    background-color: #e6007e;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    border: none;
    box-shadow: 0 4px 15px rgba(230, 0, 126, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-local-branch:hover {
    color: #fff !important;
    background-color: #c4006b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 0, 126, 0.3);
}

/* Search Overlay Box */
.search-overlay-box {
    background: #fff;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    position: relative;
}

.search-tabs {
    display: flex;
}

.tab-btn {
    padding: 18px 40px;
    font-weight: 800;
    font-size: 14px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: background 0.2s;
    letter-spacing: 0.5px;
}

.tab-btn.active {
    background-color: #fff;
    color: #401663;
    position: relative;
    z-index: 2;
    border-bottom: 3px solid #e6007e;
}

.tab-btn:not(.active) {
    background-color: #401663;
    color: rgba(255, 255, 255, 0.8);
}

.tab-btn.active-rent {
    background-color: #fff;
    color: #401663;
    border-bottom: 3px solid #e6007e;
}

.search-form-container {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    border-top-left-radius: 0;
}

/* Form Grid */
.search-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.search-group {
    padding: 0 15px;
    margin-bottom: 20px;
}

.col-location {
    width: 35%;
}

.col-price {
    width: 25%;
}

.col-beds {
    width: 20%;
}

.col-type {
    width: 20%;
}

.search-group label {
    display: block;
    font-weight: 700;
    font-size: 13px;
    color: #401663;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    height: 48px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: none;
    font-size: 15px;
    color: #333;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #e6007e;
    outline: none;
}

.input-with-icon {
    position: relative;
}

.input-with-icon .search-field-icon {
    position: absolute;
    left: 15px;
    top: 16px;
    color: #999;
    z-index: 10;
    pointer-events: none;
}

.input-with-icon input {
    padding-left: 40px;
}

.double-select {
    display: flex;
    align-items: center;
    gap: 8px;
}

.double-select select {
    width: 100%;
}

.separator {
    color: #ccc;
    font-weight: bold;
}

/* Row 2 Options */
.row-2 {
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.location-opts {
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.btn-use-location {
    background: transparent;
    border: 1px solid #e6007e;
    color: #e6007e;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-use-location:hover {
    background: #e6007e;
    color: #fff;
}

.radius-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
}

.radius-select {
    width: 140px;
    height: 35px;
    font-size: 13px;
}

.checkbox-opts {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: #555;
    padding: 0 15px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0;
}

.checkbox-container input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Row 3 Submit */
.row-3 {
    justify-content: flex-end;
    padding: 0 15px;
    margin-top: 25px;
}

.btn-search-hero {
    background: linear-gradient(135deg, #e6007e 0%, #c4006b 100%);
    color: white;
    border: none;
    padding: 14px 60px;
    border-radius: 30px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 15px;
    box-shadow: 0 5px 15px rgba(230, 0, 126, 0.4);
    transition: all 0.3s;
}

.btn-search-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 0, 126, 0.5);
}

/* Results Info Bar */
.results-info-bar {
    padding: 15px 0;
    margin-top: -50px;
}

.flex-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.results-count {
    font-weight: 700;
    color: #401663;
    font-size: 16px;
}

.results-count strong {
    font-weight: 900;
}

.property-links {
    font-size: 13px;
    color: #666;
}

.property-links a {
    color: #e6007e;
    margin-left: 10px;
    font-weight: 600;
    text-decoration: none;
}

.property-links a:hover {
    text-decoration: underline;
}

/* Sort and View Bar (Sticky) */
.sticky-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.sort-view-bar {
    background-color: #401663;
    color: #fff;
    padding: 12px 0;
    margin-top: 20px;
}

.sort-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.left-opts {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sort-group,
.view-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-group label,
.view-group label {
    font-weight: 700;
    margin-bottom: 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dark-select {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
}

.dark-select option {
    color: #333;
}

.map-view-btn {
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 15px;
    border-radius: 20px;
    transition: background 0.2s;
}

.map-view-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* Property Grid */
.haart-card {
    background: #fff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.haart-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.haart-card:hover .card-title {
    color: #e6007e;
}

.card-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.haart-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

/* Badges */
.card-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge-sold {
    background-color: #e6007e;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.1;
    text-align: center;
    transform: rotate(-15deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.badge-offer {
    background-color: #ff9900;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    line-height: 1.1;
    text-align: center;
    transform: rotate(-15deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.card-badges-left {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 2;
}

.badge-new {
    background: #401663;
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.card-favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.card-favorite-btn:hover {
    background: #fff;
    color: #e6007e;
    transform: scale(1.1);
}

.card-camera {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    backdrop-filter: blur(2px);
}

.card-details {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 800;
    color: #401663;
    margin-bottom: 8px;
    line-height: 1.3;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-price {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.card-meta {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.meta-item i {
    color: #888;
    margin-right: 5px;
}

.card-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.card-footer-info {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #fff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-icon {
    width: 80px;
    height: 80px;
    background: #f9f9f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ddd;
    font-size: 32px;
    margin-bottom: 20px;
}

.btn-reset-filters {
    margin-top: 20px;
    padding: 10px 25px;
    border: 2px solid #e6007e;
    color: #e6007e;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    transition: all 0.3s;
}

.btn-reset-filters:hover {
    background: #e6007e;
    color: #fff;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {

    .col-location,
    .col-price,
    .col-beds,
    .col-type {
        width: 100%;
        margin-bottom: 15px;
    }

    .hero-text-content h1 {
        font-size: 26px;
    }

    .btn-local-branch {
        position: relative;
        display: inline-block;
        margin-top: 15px;
        margin-bottom: 15px;
        top: auto;
        right: auto;
    }

    .checkbox-opts {
        flex-direction: column;
        gap: 10px;
    }

    .row-2 {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }

    .sort-flex-container {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .left-opts {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }

    .sort-group,
    .view-group {
        width: 100%;
        justify-content: space-between;
    }

    .search-tabs {
        width: 100%;
    }

    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 15px;
    }
}