/* ========== Variables & Root ========== */
:root {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-bs-theme="dark"] {
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

/* ========== Body & General ========== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

[data-bs-theme="dark"] body {
    background: linear-gradient(to bottom, #1a1a2e 0%, #0f0f1e 100%);
}

/* ========== Navbar Modern ========== */
.modern-navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    transition: var(--transition);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* ========== Sidebar ========== */
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding: 80px 0 0;
    background: linear-gradient(180deg, #2d2d44 0%, #1a1a2e 100%);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.city-list {
    padding: 0 0.5rem;
}

.city-link {
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}

.city-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    transform: translateX(5px);
}

.city-link.active {
    background: var(--gradient-primary);
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.badge-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.city-link.active .badge-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ========== Main Content ========== */
main {
    padding-top: 20px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ========== Modern Search ========== */
.modern-search {
    background: white;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition);
}

[data-bs-theme="dark"] .modern-search {
    background: #2d2d44;
}

.modern-search:focus-within {
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.modern-search .form-control {
    font-size: 1.1rem;
}

[data-bs-theme="dark"] .modern-search .form-control {
    background: transparent;
    color: white;
}

[data-bs-theme="dark"] .modern-search .input-group-text {
    background: transparent !important;
}

/* ========== Buttons ========== */
.btn-gradient {
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 12px;
    transition: var(--transition);
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: white;
}

/* ========== Modern Cards ========== */
.modern-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    background: white;
    position: relative;
}

[data-bs-theme="dark"] .modern-card {
    background: #2d2d44;
}

.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.modern-card-img {
    height: 280px;
    object-fit: cover;
    transition: var(--transition);
}

.modern-card:hover .modern-card-img {
    transform: scale(1.05);
}

.carousel-inner {
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    overflow: hidden;
}

/* City Badge */
.city-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: var(--shadow-sm);
}

/* Info Badges */
.info-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.info-badges .badge {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
}

/* Carousel Indicators */
.carousel-indicators {
    margin-bottom: 0.5rem;
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 3px;
}

.carousel-indicators .active {
    background-color: white;
}

/* ========== Alert Modern ========== */
.modern-alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.modern-alert h4 {
    font-weight: 700;
    margin-top: 1rem;
}

/* ========== Footer ========== */
.modern-footer {
    background: linear-gradient(135deg, #2d2d44 0%, #1a1a2e 100%);
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

/* ========== Theme Toggle ========== */
#theme-toggle {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#theme-icon {
    font-size: 1.2rem;
}

#theme-icon.bi-sun-fill {
    color: #f39c12;
}

#theme-icon.bi-moon-fill {
    color: #f1c40f;
}

/* ========== Scrollbar Custom ========== */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ========== Responsive ========== */
@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        padding: 1rem 0;
        height: auto;
    }
    
    main {
        padding-top: 0;
    }
    
    .modern-card-img {
        height: 220px;
    }
}

@media (min-width: 768px) {
    main {
        margin-left: 16.666667%;
    }
}

@media (min-width: 992px) {
    main {
        margin-left: 16.666667%;
    }
}

/* ========== Animations ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modern-card {
    animation: fadeIn 0.5s ease-out;
}

/* ========== Loading States ========== */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

[data-bs-theme="dark"] .loading-skeleton {
    background: linear-gradient(90deg, #2d2d44 25%, #3d3d54 50%, #2d2d44 75%);
    background-size: 200% 100%;
}

/* ========== VIP Card Styles ========== */
.vip-card {
    border: 2px solid gold;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
}

.vip-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ========== Favorite Button ========== */
.favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.vip-card .favorite-btn {
    right: 60px;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

.favorite-btn.active {
    background: #dc3545;
}

.favorite-btn.active i {
    color: white;
}

.favorite-btn i {
    font-size: 1.2rem;
    color: #dc3545;
}

/* ========== Toast Notifications ========== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.toast-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-notification.toast-success {
    border-left: 4px solid #28a745;
}

.toast-notification.toast-info {
    border-left: 4px solid #17a2b8;
}

[data-bs-theme="dark"] .toast-notification {
    background: #2d2d44;
    color: white;
}

/* ========== Pagination ========== */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 4px;
    border: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.pagination .page-item.active .page-link {
    background: var(--gradient-primary);
    border: none;
}

.pagination .page-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ========== Lightbox Modal ========== */
#lightboxModal .modal-content {
    background: rgba(0, 0, 0, 0.9) !important;
}

#lightboxModal .carousel-control-prev-icon,
#lightboxModal .carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

/* ========== Print Styles ========== */
@media print {
    .sidebar,
    .modern-navbar,
    .modern-footer,
    .btn-gradient,
    .btn-whatsapp,
    .favorite-btn {
        display: none;
    }
}