/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Property Card Styles */
.property-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Map Styles */
.radius-circle {
    fill-opacity: 0.2;
    stroke-width: 2;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Location Analysis Styles */
.highlight-form {
    animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

#business-type-container {
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Tab Navigation Styles */
.nav-tabs .nav-link {
    font-weight: 500;
}

.nav-tabs .nav-link.active {
    border-bottom: 3px solid #0d6efd;
}

/* Search Results Table */
#listing-search-results table {
    margin-top: 15px;
}

#listing-search-results table th,
#listing-search-results table td {
    vertical-align: middle;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

/* Map Styles */
#map {
    width: 100%;
    height: 500px;
    border-radius: 0.25rem;
}

.map-marker-popup .leaflet-popup-content {
    min-width: 200px;
}

.map-marker-popup img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* Search Form Styles */
#search-form h6 {
    color: #0d6efd;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

/* Feature Accordion Styles */
.accordion-button:not(.collapsed) {
    background-color: #e7f1ff;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.accordion-body {
    max-height: 300px;
    overflow-y: auto;
}

/* Property Card Styles */
.property-card {
    transition: transform 0.2s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.property-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.property-price {
    font-weight: bold;
    color: #0d6efd;
}

.property-size {
    color: #6c757d;
}

.property-address {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Property Details Modal */
#property-modal .carousel-item img {
    height: 300px;
    object-fit: cover;
}

.property-detail-section {
    margin-bottom: 20px;
}

.property-detail-section h5 {
    color: #0d6efd;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    font-weight: 600;
    min-width: 150px;
}

/* Radius Circle */
.radius-circle {
    stroke: #0d6efd;
    stroke-width: 2;
    stroke-opacity: 0.8;
    fill: #0d6efd;
    fill-opacity: 0.1;
}

/* Loading Indicator */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Location Analysis Styles */
#competitor-analysis {
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #dee2e6;
}

#competitor-form h6 {
    color: #0d6efd;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
}

#competitor-results h5,
#competitor-results h6 {
    color: #0d6efd;
    margin-bottom: 15px;
}

.table-danger {
    --bs-table-bg: rgba(220, 53, 69, 0.1);
}

.table-warning {
    --bs-table-bg: rgba(255, 193, 7, 0.1);
}

.table-success {
    --bs-table-bg: rgba(25, 135, 84, 0.1);
}

/* Competitor Modal Styles */
#competitor-modal .card {
    margin-bottom: 10px;
}

#competitor-modal .card-body {
    padding: 10px;
}

#competitor-modal h6 {
    color: #0d6efd;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    #map {
        height: 300px;
    }

    .property-card .card-img-top {
        height: 140px;
    }

    #competitor-analysis {
        margin-top: 20px;
        padding-top: 20px;
    }
}