.hero-section {
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
}

.difficulty-badge-principiante {
    background: #0066cc !important;
}

.difficulty-badge-intermedio {
    background: #00cc66 !important;
}

.difficulty-badge-avanzato {
    background: #cc0000 !important;
}

.difficulty-badge-principiante2 {
    background: #0099ff !important;
}

.difficulty-badge-intermedio2 {
    background: #33cc99 !important;
}

.weather-container {
    background: rgba(255, 255, 255, 0.2) !important;
    backdrop-filter: blur(7px) !important;
    -webkit-backdrop-filter: blur(7px) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !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;
    background-color: white;
}

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

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

.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;
}

#reviewForm {
    background-color: wheat;
}

.card-animation-delay-1 {
    animation-delay: 0.1s;
}

.card-animation-delay-2 {
    animation-delay: 0.2s;
}

.card-animation-delay-3 {
    animation-delay: 0.3s;
}

.card-animation-delay-4 {
    animation-delay: 0.4s;
}

.weather-below-hero {
    position: relative;
    z-index: 10;
    margin-top: -100px;
}

.weather-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-section {
    background: #f8f9fa;
}

.img-fixed-size {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.d-none-initial {
    display: none !important;
}

.d-block-show {
    display: block !important;
}

/* Article Modal Simple Styles */
#articleModal .modal-content {
    background-color: white;
}

#articleModal .modal-body {
    background-color: white;
}

.upload-area {
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area:hover {
    border-color: #0d6efd !important;
    background-color: #f8f9fa !important;
}

.upload-area.dragover {
    border-color: #0d6efd !important;
    background-color: #e3f2fd !important;
    border-style: solid !important;
}

#preview-container img {
    transition: transform 0.2s ease;
}

#preview-container img:hover {
    transform: scale(1.05);
}

.remove-article-image {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.remove-article-image:hover {
    opacity: 1;
}

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

.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

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

.favorite-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

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

.favorite-btn .fas.fa-heart {
    color: #dc3545;
}

.favorite-btn .far.fa-heart {
    color: #6c757d;
}

.favorite-btn:hover .far.fa-heart {
    color: #dc3545;
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

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

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

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

    .hero-section {
        height: 50vh;
        min-height: 400px;
    }

    .overall-rating {
        font-size: 2rem;
    }

    .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

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

    .favorite-btn {
        width: 42px;
        height: 42px;
        top: 15px !important;
        right: 15px !important;
    }

    .favorite-btn i {
        font-size: 18px;
    }

    /* Weather widget mobile */
    .weather-below-hero {
        margin-top: 0;
        padding: 1rem 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    #weather-content .d-flex {
        gap: 0.5rem !important;
    }

    #weather-content .text-center.px-2 {
        flex: 0 0 calc(33.33% - 0.5rem);
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
}
