/* Custom styles for Alpha Estate */

body {
    background: #fafafa;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.navbar {
    border-bottom: 1px solid #eee;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.navbar-brand {
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    margin-right: 5px;
}

.navbar-nav .nav-link {
    color: #555;
    padding: 0.5rem 1rem;
}

.navbar-nav .nav-link.active {
    color: #e74c3c !important;
    font-weight: bold;
}

.btn-danger {
    background: #e74c3c;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
}

.btn-danger:hover {
    background: #c0392b;
}

.card {
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: none;
}

.card .carousel-inner {
    border-radius: 10px;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
}

.card-text {
    font-size: 0.95rem;
}


footer {
    background: #f8f9fa;
}

footer h6 {
    font-weight: bold;
    margin-bottom: 1rem;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #e74c3c;
}

footer .form-control {
    border-radius: 10px;
}

footer .btn-danger {
    border-radius: 10px;
}

@media (max-width: 767px) {
    .navbar-brand span {
        font-size: 1rem;
    }

    .card-title {
        font-size: 0.95rem;
    }

    .card-text {
        font-size: 0.9rem;
    }
}

/* Footer custom background */
.footer-custom {
    background: #D9D9D9;
    color: #23272b;
}

.footer-custom a {
    color: #23272b;
}

.footer-custom a:hover {
    color: #e74c3c;
}

.footer-contact-form {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0;
    padding: 0 !important;
}

.footer-form-custom {
    margin: 0;
}

.footer-input {
    background: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
    box-shadow: none;
    color: #222;
}

.footer-input:focus {
    border: none;
    box-shadow: 0 0 0 2px #e74c3c33;
}

.footer-send-btn {
    background: #e74c3c;
    color: #fff;
    border-radius: 12px;
    min-width: 110px;
    font-size: 1.1rem;
    font-weight: 500;
    border: none;
    box-shadow: none;
    transition: background 0.2s;
    margin-left: 0;
}

.footer-send-btn:hover {
    background: #c0392b;
}

.footer-form-custom textarea.footer-input {
    min-height: 56px;
    max-height: 56px;
}

@media (max-width: 991px) {
    .footer-contact-form {
        max-width: 100% !important;
    }

    .footer-form-custom .d-flex {
        flex-direction: column;
    }

    .footer-form-custom textarea.footer-input {
        margin-bottom: 0.5rem;
        min-height: 48px;
        max-height: 48px;
    }

    .footer-send-btn {
        min-width: 100%;
        margin-left: 0;
    }
}

/* Filters section shadow and centering */
.filters-section {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    border-radius: 18px;
    background: #fff;
    padding: 1.5rem 1rem;
    max-width: 900px;
    margin: 0 auto 2rem auto;
}

/* Listing card image placeholder fix */
.card .carousel-inner img {
    object-fit: cover;
    height: 180px;
    background: #eee;
}

.filters-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.filter-item {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.10);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    min-width: 180px;
}

.filter-item .form-select {
    border: none;
    box-shadow: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    background-color: #fff;
    padding-left: 0;
    padding-right: 2rem;
}

.filter-item .form-select:focus {
    border: none;
    box-shadow: none;
}

.btn.more-filters {
    background: #E74C3C;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    font-size: 1.1rem;
}

.btn.more-filters i {
    font-size: 1.2rem;
}

@media (max-width: 991px) {
    .filters-row {
        gap: 1rem;
    }

    .filter-item {
        min-width: 140px;
        padding: 0.5rem 1rem;
    }
}

/* Custom Select2 with checkboxes */

.select2-container--default .select2-selection--single {
    border: none !important;
}

.select2-container--open .select2-dropdown--below {
    width: 170px !important;
}

.select2-container--open {
    left: 355px !important;
    top: 160px !important;
    width: 170px !important;
}

.select2-results__option {
    border-radius: 8px;
    margin: 2px 4px;
    padding: 0.5rem 1rem !important;
    font-size: 1rem;
    display: flex;
    align-items: center;
}

.select2-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.select2-checkbox input[type='checkbox'] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #f3f3f3;
    margin-right: 8px;
    position: relative;
    transition: border-color 0.2s, background 0.2s;
}

.select2-checkbox input[type='checkbox']:checked {
    border-color: #e74c3c;
    background: #e74c3c;
}

.select2-checkbox input[type='checkbox']:checked:after {
    content: '';
    display: block;
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #f8f9fa !important;
    color: #222 !important;
}

.select2-results__option[aria-selected=true] {
    background-color: #f1faff !important;
    color: #181c32 !important;
}

/* Custom Furniture Checkbox Styles */
.custom-checkbox {
    position: relative;
}

.custom-checkbox-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-checkbox-label {
    display: block;
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkbox-input:checked+.custom-checkbox-label {
    border-color: #e74c3c;
    background-color: #fff;
    box-shadow: 0 0 0 1px #e74c3c;
}

.custom-checkbox-label:hover {
    border-color: #e74c3c;
}

/* Apartment Features custom square checkbox - refined for screenshot */
.feature-checkbox {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.feature-checkbox-input,
.form-check-input.ms-0 {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #d1d1d1;
    background: #f3f3f3;
    margin-right: 0.75rem;
    appearance: none;
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
    box-shadow: none;
}

.feature-checkbox-input:checked,
.feature-checkbox .form-check-input:checked {
    background: #e74c3c;
    border-color: #e74c3c;
}

/* White checkmark for checked state */
.feature-checkbox-input:checked::after,
.feature-checkbox .form-check-input:checked::after {
    content: '';
    display: block;
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.feature-checkbox-label,
.form-check-label {
    font-size: 1.05rem;
    font-weight: 500;
    color: #222;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
}

/* Add row gap for Apartment Features grid */
.row.mb-2 {
    row-gap: 0.5rem;
}

/* Modal Footer Custom Styles */
.custom-modal-footer {
    background: #dddddd;
    padding: 10px;
}

.modal-show-btn {
    background: #e74c3c;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 5px 20px;
    border: none;
    box-shadow: none;
    transition: background 0.2s;
}

.modal-show-btn:hover {
    background: #c0392b;
}

.modal-reset-btn {
    background: #dddddd;
    color: #222;
    border: 1.5px solid #222;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 5px 20px;
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.modal-reset-btn:hover {
    background: #f3f3f3;
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Price Range Section Styles */
#priceHistogram {
    display: block;
    width: 100%;
    height: 60px;
}

#priceSlider {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.noUi-target {
    background: none;
    border: none;
    box-shadow: none;
    height: 8px;
    margin: 0 10px;
}

.noUi-base {
    background: none;
}

.noUi-connect {
    background: #e74c3c;
    height: 4px;
    top: 2px;
}

.noUi-horizontal .noUi-handle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10);
    top: -12px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.noUi-horizontal .noUi-handle:focus {
    border-color: #e74c3c;
    outline: none;
}

.noUi-handle:after,
.noUi-handle:before {
    display: none;
}

.price-box {
    display: inline-block;
    min-width: 80px;
    padding: 0.5rem 1.2rem;
    border: 2px solid #d1d1d1;
    border-radius: 10px;
    background: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    color: #222;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-top: 0.25rem;
}

@media (max-width: 600px) {
    .price-box {
        min-width: 60px;
        padding: 0.4rem 0.7rem;
        font-size: 1rem;
    }
}

.hero-section {
    border-radius: 8px;
    padding: 20px;
    background-color: #f0f0f0;
    /* Light grey background */
    position: relative;
    /* Needed for absolute positioning of dots if desired later */
}

.hero-placeholder {
    width: 100%;
    height: 400px;
    /* Placeholder height, adjust as needed */
    background-color: #ccc;
    /* Grey background for placeholder */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder img {
    max-width: 50px;
    height: auto;
    opacity: 0.5;
    /* Make placeholder image semi-transparent */
}

.hero-dot-container {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.hero-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
}

.hero-dot.active {
    background-color: #e74c3c;
}

.about-section {
    margin-top: 3rem;
}

.about-section h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.about-section p.lead {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}


.main_images .carousel-indicators [data-bs-target] {
    background-color: #e74c3c;
    border-radius: 50%;
    height: 15px;
    width: 15px;
}

.main_images .carousel-inner {
    border-radius: 10px;
    height: 500px;
}

i.fa-solid.fa-heart {
    color: #00000040;
}




/* Map */
#map {
    height: 600px;
    width: 100%;
}

.info-window {
    padding: 0;
    margin: 0;
    max-width: 250px;
}

.info-window img {
    width: 100%;
    height: 200px;
    border-radius: 8px 0 0;
    margin-bottom: 8px;
}

.info-data {
    padding: 10px;
}

.info-window h4 {
    margin: 0 0 5px 0;
}


.gm-style-iw-chr {
    display: none !important;
}

.gm-style-iw-d,
.gm-style .gm-style-iw-c {
    overflow: auto !important;
    padding: 0 !important;
}

.custom-info-window {
    font-family: Arial, sans-serif;
    width: 250px;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

.image-wrapper {
    position: relative;
    width: 100%;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;

}

.custom-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
    padding: 0;
}

.info-body {
    padding: 12px;
    background: white;
    display: flex;
    justify-content: space-between
}

.info-body h4 {
    margin: 5px 0;
    font-size: 16px;
    font-weight: bold;
}

.info-body p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}

.info-body a {
    color: #000;
    text-decoration: none;
}

.info-body a:hover {
    color: #0047AB !important;
}


.action-btn {
    text-decoration: none;
    background-color: white;
    border: 2px solid #0047AB;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 14px;
    color: #0047AB;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: 0.3s ease;
    margin: 5px 0;
}

.action-btn:hover {
    background-color: #0047AB;
    color: white;
}
