/* Custom CSS for EstateMath Airbnb Clone */

/* Airbnb Color Variables */
:root {
    --airbnb-red: #FF385C;
    --airbnb-dark: #222222;
    --airbnb-gray: #717171;
    --airbnb-light-gray: #F7F7F7;
    --airbnb-border: #DDDDDD;
}

/* Search bar enhancements */
.search-bar-shadow {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

/* Card hover effects */
.unit-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unit-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Custom scrollbar for results panel */
.results-panel::-webkit-scrollbar {
    width: 6px;
}

.results-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.results-panel::-webkit-scrollbar-thumb {
    background: var(--airbnb-border);
    border-radius: 10px;
}

.results-panel::-webkit-scrollbar-thumb:hover {
    background: var(--airbnb-gray);
}

/* Heart icon hover effect */
.heart-icon {
    transition: color 0.2s ease;
}

.heart-icon:hover {
    color: var(--airbnb-red);
    fill: var(--airbnb-red);
}

/* Custom input focus styles */
input:focus,
select:focus {
    border-color: var(--airbnb-dark) !important;
    box-shadow: 0 0 0 2px rgba(34, 34, 34, 0.1) !important;
}

/* Custom checkbox styles */
input[type="checkbox"]:checked {
    background-color: var(--airbnb-red);
    border-color: var(--airbnb-red);
}

/* Button hover effects */
.btn-primary {
    background-color: var(--airbnb-red);
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #E31C5F;
}

/* Map pin styles */
.map-pin {
    background-color: var(--airbnb-red);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
}

.map-pin::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--airbnb-red);
}

/* Loading spinner */
.spinner {
    border-color: var(--airbnb-red);
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Price breakdown styling */
.price-breakdown {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Superhost badge */
.superhost-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #333;
    font-weight: 600;
}

/* Guest favorite badge */
.guest-favorite-badge {
    background: linear-gradient(135deg, var(--airbnb-red) 0%, #E31C5F 100%);
    color: white;
}

/* Rating stars */
.rating-star {
    color: var(--airbnb-red);
}

/* Custom range slider */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--airbnb-border);
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--airbnb-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--airbnb-red);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Typography improvements */
.font-airbnb {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .mobile-search-bar {
        border-radius: 12px;
    }

    .mobile-unit-card {
        margin-bottom: 24px;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Pulse animation that runs 2-3 times then stops */
.animate-pulse-few {
    animation: pulseFew 0.6s ease-in-out 3;
}

@keyframes pulseFew {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* Custom border radius for Airbnb consistency */
.airbnb-rounded {
    border-radius: 12px;
}

/* Filters panel styling */
.filters-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}