* { font-family: 'Inter', sans-serif; }

/* Hide number input spinners */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type="number"] {
    -moz-appearance: textfield;
}
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #2a2a3a; border-radius: 10px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #3a3a4a; }
#map { width: 100%; height: 100%; }
.leaflet-container { background: #0a0a0f; }
.price-marker {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(255,255,255,0.1);
    animation: popIn 0.3s ease-out forwards;
}
.price-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.6);
}
.leaflet-popup-content-wrapper {
    background: linear-gradient(145deg, #14141f 0%, #0f0f17 100%);
    color: white;
    border-radius: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6), 0 0 40px rgba(99, 102, 241, 0.1);
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    width: 320px !important;
    font-family: 'Rubik', sans-serif;
}
.leaflet-popup-tip {
    background: #14141f;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.leaflet-popup-close-button {
    color: #71717a !important;
    font-size: 22px !important;
    padding: 10px 12px !important;
    transition: all 0.2s ease;
}
.leaflet-popup-close-button:hover {
    color: #f1f1f4 !important;
    transform: scale(1.1);
}

/* Popup content styles */
.popup-card {
    padding: 24px 20px 28px 20px;
}
.popup-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4), 0 0 0 4px rgba(99, 102, 241, 0.1);
}
.popup-icon-box .material-symbols-outlined {
    color: white;
    font-size: 32px;
    z-index: 2;
}
.popup-icon-ring {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.3);
    animation: ringPulse 2s ease-out infinite;
}
.popup-icon-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    animation: iconPulse 2s ease-out infinite;
    z-index: 1;
}
@keyframes ringPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}
@keyframes iconPulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}
.popup-price-section {
    text-align: center;
    margin-bottom: 4px;
}
.popup-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}
.popup-price {
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.popup-currency {
    font-size: 22px;
    font-weight: 600;
    color: #a855f7;
}
.popup-date-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
}
.popup-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(99, 102, 241, 0.15);
    padding: 6px 12px;
    border-radius: 8px;
}
.popup-date-badge span {
    color: #818cf8;
    font-size: 13px;
    font-weight: 600;
}
.popup-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #71717a;
    font-size: 13px;
}
.popup-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
    margin: 16px 0;
}
.popup-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.popup-detail-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}
.popup-detail-row .material-symbols-outlined {
    color: #6366f1;
    font-size: 18px;
}
.popup-detail-row p {
    font-size: 14px;
    color: #e4e4e7;
    line-height: 1.5;
    margin: 0;
}
.popup-detail-row.author p {
    font-size: 13px;
    color: #71717a;
}
.popup-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px;
    margin-top: 16px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    border-radius: 12px;
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes popIn {
    0% { opacity: 0; transform: scale(0.9); }
    50% { transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}
.animate-pop { animation: popIn 0.25s ease-out forwards; }
.glass-effect {
    background: rgba(18, 18, 26, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Custom Dropdown Styles */
#daysFilterDropdown {
    animation: dropdownSlide 0.2s ease-out;
    z-index: 9999;
    position: absolute;
}
#daysFilterDropdown.hidden {
    display: none;
}
#daysFilterText {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
}
@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.dropdown-option {
    position: relative;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.dropdown-option:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
.dropdown-option.selected {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    font-weight: 600;
}
.dropdown-option.selected::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #6366f1, #8b5cf6);
    border-radius: 0 3px 3px 0;
}
#daysFilterBtn:focus {
    outline: none;
    border-color: #6366f1;
}
#daysFilterArrow.open,
#daysFilterArrowMobile.open {
    transform: rotate(180deg);
}

/* Mobile dropdown styles */
.dropdown-option-mobile {
    position: relative;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
}
.dropdown-option-mobile:hover {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}
.dropdown-option-mobile.selected {
    background: rgba(99, 102, 241, 0.2);
    color: #818cf8;
    font-weight: 600;
}

/* Site Footer */
.site-footer {
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 16px 24px;
    z-index: 100;
    position: relative;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
}

.site-footer a {
    color: #71717a;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-footer a:hover {
    color: #a5b4fc;
}

/* Auth page footer - transparent bg */
.auth-bg .site-footer {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-top: none;
    margin-top: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .price-marker {
        padding: 4px 10px;
        font-size: 11px;
        border-radius: 14px;
    }
    .leaflet-control-zoom {
        display: none;
    }
    /* Sidebar transition */
    .sidebar {
        transition: height 0.3s ease;
    }
    .site-footer nav {
        gap: 6px 14px;
    }
    .site-footer a {
        font-size: 11px;
    }
}