/* Main styles */
body {
    background-color: #f8f9fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Search container */
.search-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 20px 0;
}

/* Multi-select dropdown */
.dropdown-container {
    position: relative;
    margin-bottom: 15px;
}

.dropdown-menu {
    max-height: 300px;
    overflow-y: auto;
}

/* Property list */
.property-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    transition: transform 0.2s;
}

.property-card:hover {
    transform: translateY(-2px);
}

/* Loading animation */
.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    border: 0.25em solid rgba(0,0,0,0.1);
    border-right-color: #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* iPhone-like toggle */
.form-switch {
    position: relative;
    display: inline-block;
    width: 40px; /* Width of the oval */
    height: 16px; /* Height of the oval */
}

.form-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.form-switch label {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-switch label:before {
    position: absolute;
    content: '';
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.form-switch input:checked + label {
    background-color: #007bff;
}

.form-switch input:checked + label:before {
    transform: translateX(14px);
}
