.spots-page {
    background: #f8f9fa;
}

.hero-spots {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6rem 0 4rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form .input-group-text {
    background: white;
    border: 1px solid #dee2e6;
}

.search-form .form-control {
    border: 1px solid #dee2e6;
}

.stats-section {
    background: white;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #666;
    font-weight: 500;
}

.filters-bar {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.filters-bar select,
.filters-bar input {
    border-radius: 8px;
}

.spot-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.spot-card .card-body {
    padding: 1.5rem;
}

.spot-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.spot-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.spot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spot-card:hover .spot-image img {
    transform: scale(1.05);
}

.spot-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.difficulty-badge {
    border-radius: 20px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.difficulty-beginner {
    background: #28a745;
}

.difficulty-intermediate {
    background: #ffc107;
    color: #000;
}

.difficulty-advanced {
    background: #dc3545;
}

.difficulty-mixed {
    background: #6f42c1;
}

.feature-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
    display: inline-block;
}

.results-header h3 {
    color: #333;
    font-weight: 600;
}

.active-filters .badge {
    font-size: 0.875rem;
}

.empty-state {
    background: white;
    border-radius: 15px;
    padding: 4rem 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.empty-state i {
    color: #dee2e6;
}

.spots-grid {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .hero-spots {
        padding: 4rem 0 2rem;
    }
    
    .search-form .input-group {
        flex-wrap: nowrap;
    }
    
    .filters-bar {
        padding: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .spot-image {
        height: 150px;
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('https://plus.unsplash.com/premium_photo-1661964248724-9692b487aa01?q=80&w=1652&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover;
    height: 70vh;
    min-height: 500px;
}

.difficulty-badge-principiante,
.difficulty-badge-principiante2,
.difficulty-badge-beginner { 
    background: #28a745 !important; 
    color: white !important;
}

.difficulty-badge-intermedio,
.difficulty-badge-intermedio2,
.difficulty-badge-intermediate { 
    background: #ffc107 !important; 
    color: #000 !important;
}

.difficulty-badge-avanzato,
.difficulty-badge-avanzato2,
.difficulty-badge-advanced { 
    background: #dc3545 !important; 
    color: white !important;
}

.difficulty-badge-mixed { 
    background: #6f42c1 !important; 
    color: white !important;
}

.info-item {
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.weather-icon img {
    width: 64px;
    height: 64px;
}

#map {
    border-radius: 0 0 0.375rem 0.375rem;
    height: 400px;
    background-color: #f8f9fa;
}

#map .map-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.card {
    border: none;
    border-radius: 15px;
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
}

.btn {
    border-radius: 25px;
}

.badge {
    border-radius: 15px;
}

.animate-fade-up {
    animation: fadeUp 0.6s ease-out;
}

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

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

.rating-section {
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.rating-section:hover {
    border-color: #0d6efd;
    transform: translateY(-2px);
}

.rating-input {
    font-size: 1.8rem;
    gap: 0.25rem !important;
}

.rating-input i {
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e0e0e0;
}

.rating-input i:hover {
    transform: scale(1.2);
    color: #ffc107 !important;
}

.rating-input i.fas {
    color: #ffc107;
}

.rating-input i.far {
    color: #e0e0e0;
}

.rating-stars {
    font-size: 1.2rem;
}

.rating-stars .far {
    color: #e0e0e0;
}

.rating-stars .fas {
    color: #ffc107;
}

.review-card {
    transition: all 0.3s ease;
    border-left: 4px solid #0d6efd;
    border-radius: 10px;
}

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

.overall-rating {
    font-size: 3rem;
    font-weight: bold;
    color: #ffc107;
}

.rating-breakdown .progress {
    height: 8px;
    border-radius: 10px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #0d6efd, #20c997);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.7);
}

#reviewForm {
    background-color: wheat;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }

    .rating-input {
        font-size: 1.5rem;
    }

    .modal-body {
        max-height: 60vh;
    }
}

/* Favorite Button Styles */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.favorite-btn:hover {
    transform: scale(1.15);
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.favorite-btn i {
    font-size: 20px;
    color: #e74c3c;
    transition: all 0.3s ease;
}

.favorite-btn .fas.fa-heart {
    animation: heartbeat 0.5s ease;
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1.1);
    }
}

.favorite-btn:active {
    transform: scale(0.95);
}

/* Loading state per favorite button */
.favorite-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

.favorite-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* Carosello continenti/nazioni */
.carousel-section {
    background: white;
    margin-top: -3rem;
    position: relative;
    z-index: 2;
    padding: 2rem 0;
}

.carousel-container {
    transition: all 0.3s ease;
}

.carousel-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.back-to-continents {
    transition: all 0.3s ease;
    font-size: 0.95rem;
    padding: 0.5rem 1.2rem;
}

.back-to-continents:hover {
    transform: translateX(-5px);
}

.continent-card,
.country-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: none;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.continent-card:hover,
.country-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.continent-name,
.country-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Swiper customization */
.continents-swiper,
.countries-swiper {
    padding: 30px 60px;
}

.swiper-button-next,
.swiper-button-prev {
    color: #667eea !important;
    width: 45px !important;
    height: 45px !important;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 20px !important;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.swiper-button-disabled {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.5rem;
    }

    .continent-card,
    .country-card {
        height: 150px;
        padding: 2rem 1.5rem;
    }

    .continent-name,
    .country-name {
        font-size: 1.2rem;
    }

    .continents-swiper,
    .countries-swiper {
        padding: 20px 40px;
    }

    .back-to-continents {
        font-size: 0.85rem;
        padding: 0.4rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-spots h1 {
        font-size: 1.5rem;
    }

    .hero-spots .lead {
        font-size: 0.9rem;
    }

    .search-container {
        max-width: 100%;
    }

    .pagination-wrapper,
    .pagination-wrapper nav,
    .pagination-wrapper nav > div {
        justify-content: center;
        display: flex;
    }

    .pagination {
        justify-content: center;
    }

    .pagination .page-item {
        display: none;
    }

    .pagination .page-item:first-child,
    .pagination .page-item:last-child,
    .pagination .page-item.active,
    .pagination .page-item.active + .page-item,
    .pagination .page-item.active + .page-item + .page-item,
    .pagination .page-item:has(+ .page-item.active),
    .pagination .page-item:has(+ .page-item + .page-item.active) {
        display: block;
    }
}
