/* ჩატვირთვის სპინერი */
.loading-spinner {
    display: none;
    text-align: center;
    padding: 40px;
    color: #6c757d;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1e90ff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* შეცდომის შეტყობინება */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px;
    text-align: center;
    border: 1px solid #f5c6cb;
}

/* ელეგანტური "ცარიელი შედეგები" */
.no-results {
    text-align: center;
    padding: 60px 30px;
    color: #7f8c8d;
    background: white;
    border-radius: 12px;
    margin: 30px auto;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf0;
}

.no-results h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.no-results p {
    font-size: 15px;
    line-height: 1.5;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Loading, Empty, Error States for property lists */
.loading, .empty-properties, .error { 
    text-align: center; 
    padding: 60px 30px; 
    color: #7f8c8d; 
    grid-column: 1 / -1;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #e8ecf0;
    margin: 30px auto;
    max-width: 500px;
}

.loading {
    background: #ffffff;
}

/* Loading spinner with CSS animation instead of Font Awesome */
.loading:before {
    content: '⏳';
    font-size: 2.5rem;
    color: #1e90ff;
    margin-bottom: 15px;
    display: block;
    opacity: 0.6;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-properties { 
    font-style: italic; 
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    color: #6c757d;
}

.empty-properties h3 {
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.empty-properties:before {
    content: '🏘️';
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.error { 
    color: #dc3545; 
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.error h3 {
    color: #721c24;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 600;
}

.error:before {
    content: '⚠️';
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #c3e6cb;
    font-weight: 500;
}

.success-message:before {
    content: '✅';
    margin-right: 8px;
}

#debugInfo {
    font-family: monospace;
    max-height: 100px;
    overflow-y: auto;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 12px;
    color: #6c757d;
}

/* Hide debug in production */
.production #debugInfo {
    display: none;
}

/* Booking Modals */
.booking-success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.booking-success-modal .modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.success-header {
    text-align: center;
    margin-bottom: 20px;
}

.success-header i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 10px;
}

.success-header h3 {
    color: #333;
    margin: 0;
}

.booking-details {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0;
}

.success-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.success-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.search-criteria-info {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border: 1px solid #2196f3;
    border-radius: 10px;
    padding: 15px;
    margin: 15px 0;
    animation: slideDown 0.3s ease;
}

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

.criteria-info-content i {
    color: #1976d2;
    font-size: 1.2rem;
}

.clear-criteria-btn {
    background: #f44336;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.clear-criteria-btn:hover {
    background: #d32f2f;
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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