/* Botons */
.btn-primary {
    background: var(--gradient-accent);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 25px;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.loading .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

/* Search Section */
.search-section {
    background: var(--bg-white);
    padding: 2.5rem 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    margin: -3rem auto 4rem;
    max-width: 1300px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.search-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 1.2rem;
    align-items: center;
    justify-items: stretch;
}

.search-actions {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.search-input,
select {
    padding: 1.2rem 1.8rem;  /* <-- Mateix padding que search-input */
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    height: 50px;  /* <-- Alçada fixa igual */
    box-sizing: border-box;
}


.search-input::placeholder {
    font-size: 0.85rem;
    opacity: 0.8;
}

.search-input:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

select {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}


/* Commerce Cards - Disseny Català Elegant */
.commerce-card {
    background: #FEFCF8;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.12);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 400px;
    border: 1px solid #E8D5C4;
    margin-bottom: 0;
}

.commerce-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #F5E6D3 0%, #E8D5C4 50%, #F0DCC8 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.commerce-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 16px 48px rgba(139, 69, 19, 0.20);
    border-color: #D2691E;
}

.commerce-card:hover::before {
    transform: scaleX(1);
}

.commerce-header {
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5C4 100%);
    color: #8B4513;
    padding: 2.5rem 2rem 2rem;
    position: relative;
    border-bottom: 3px solid #E8D5C4;
}

.commerce-header::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 15px solid #E8D5C4;
}

.commerce-header h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    line-height: 1.2;
    text-decoration: none;
}

.commerce-location {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    opacity: 0.95;
    color: #8B4513;
    background: rgba(255,255,255,0.4);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
}

.commerce-body {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #FEFCF8 0%, #F9F6F0 100%);
    margin-top: -5px;
    position: relative;
    z-index: 2;
}

.commerce-footer {
    padding: 1.8rem 2rem;
    background: linear-gradient(135deg, #F5E6D3 0%, #E8D5C4 100%);
    border-top: 2px solid #D2691E;
    margin-top: auto;
    position: relative;
    z-index: 1;
}

.commerce-category {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    color: white;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
    border: 2px solid #D2691E;
}

.commerce-category-row {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.commerce-actions-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
}

.action-btn {
    background: linear-gradient(135deg, #D2691E, #FF6B35);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    padding: 0.8rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(210, 105, 30, 0.3);
    border: 2px solid white;
}

.action-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.4);
    background: linear-gradient(135deg, #FF6B35, #FF8C42);
}


/* Product Showcase */
.product-showcase {
    background: transparent;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.product-showcase:hover {
    border-color: var(--accent-color);
    transform: scale(1.02);
}

.product-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.product-content.no-image {
    background: var(--bg-cream);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.product-showcase:hover .product-image {
    transform: scale(1.05);
}

.product-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0) 100%);
    z-index: 2;
    pointer-events: none;
}

.product-showcase h4 {
    color: #8B4513;
    font-size: 1.3rem;
    margin: 0;
    font-weight: 700;
    text-shadow: none;
    line-height: 1.3;
}

.product-showcase p {
    display: none;
}

.product-price {
    display: none;
}



/* View Controls */
.results-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    background: var(--bg-cream);
    border-radius: 8px;
    padding: 0.3rem;
}

.view-btn {
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
}

.view-btn.active {
    background: var(--bg-white);
    color: var(--primary-color);
    box-shadow: var(--shadow-light);
}

/* Custom map markers */
/* Custom map markers */
.custom-marker {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    border: 2px solid #333;
    transition: all 0.2s ease;
}

.custom-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.fade-in-stagger > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.fade-in-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.fade-in-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.fade-in-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.fade-in-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.fade-in-stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* A continuació el CSS que ja tenies... */


/* Filter Section */
.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.category-filters {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.category-filter {
    display: flex;
    align-items: center;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.category-filter:hover {
    background: var(--bg-cream);
    border-color: var(--border-color);
}

.category-filter input[type="checkbox"] {
    margin-right: 0.8rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-color);
}

.category-filter label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    color: white;
    font-size: 14px;
    box-shadow: var(--shadow-light);
}

/* Popups */
.leaflet-popup-content {
    margin: 0;
    padding: 0;
    min-width: 280px;
}

.popup-content {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.popup-header {
    background: var(--gradient-primary);
    color: white;
    padding: 1.2rem;
}

.popup-header h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.popup-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.popup-body {
    padding: 1.2rem;
}

.popup-product {
    background: var(--bg-cream);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--accent-color);
}

.popup-product strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}

.popup-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.popup-btn {
    flex: 1;
    padding: 0.6rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.popup-btn-primary {
    background: var(--gradient-accent);
    color: white;
}

.popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.popup-btn-secondary {
    background: var(--border-color);
    color: var(--text-dark);
}

.popup-btn-secondary:hover {
    background: var(--bg-cream);
}


/* Image Gallery Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.92);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.image-modal img {
    max-width: calc(100vw - 40px);
    max-height: calc(100vh - 120px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    display: block;
}

.image-modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 40px;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0,0,0,0.6);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2001;
    border: 2px solid rgba(255,255,255,0.3);
}

.image-modal-close:hover {
    background: var(--accent-color);
    transform: rotate(90deg) scale(1.1);
    border-color: white;
}

.image-modal-caption {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
}

/* Responsive per mòbil */
@media (max-width: 768px) {
    .image-modal {
        padding: 10px;
    }
    
    .image-modal img {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 100px);
    }
    
    .image-modal-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .image-modal-caption {
        font-size: 0.95rem;
        padding: 0.8rem 1.5rem;
        max-width: 95%;
    }
}

/* Form Sections */
.section {
    max-width: 1200px;
    margin: 0 auto 4rem;
    padding: 0 2rem;
}

.section h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.form-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    padding: 2.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    background: var(--bg-light);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.note {
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* Contact Section */
.contact-info {
    background: var(--bg-cream);
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
    border-left: 4px solid var(--accent-color);
}

.contact-info ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-info i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    color: white;
    border-radius: 6px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--bg-white);
    margin: 3% auto;
    padding: 0;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 700px;
    position: relative;
    animation: slideIn 0.4s ease;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #5C7A8C 0%, #7B99AC 100%);
    color: white;
    padding: 2rem;
    position: relative;
}

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* Smooth scroll iOS */
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
    transition: var(--transition);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Success messages */
.success-message {
    background: var(--success-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInFromTop 0.5s ease;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    box-shadow: var(--shadow-heavy);
}

.error-message {
    background: #f44336;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInFromTop 0.5s ease;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    box-shadow: var(--shadow-heavy);
}

/* Text més gran per inputs de cerca */
#searchInput {
    font-size: 1.2rem;
}

#restaurantSearchInput {
    font-size: 1.2rem;
}


/* Espaiat per FAQ */
.legal-content h3 {
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h3:first-of-type {
    margin-top: 1.5rem;
}

/* Map Search Section */
.map-search-section {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    margin-bottom: 2rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
}

.map-search-section .search-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    font-size: 0.9rem;
}

#f_p1_cat, #f_p2_cat {
    height: auto !important;
    min-height: auto !important;
    padding: 1rem !important;
    line-height: 1.4 !important;
}

/* Solució quirúrgica per tots els selects de les seccions de cerca */
#comarca-filter, #municipi-filter, #categoria-filter,
#restaurant-comarca-filter, #restaurant-municipi-filter,
#map-comarca-filter, #map-municipi-filter {
    height: auto !important;
    min-height: auto !important;
    padding: 1rem !important;
    line-height: 1.4 !important;
}

.info-message {
    background: #2196F3;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: slideInFromTop 0.5s ease;
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1001;
    box-shadow: var(--shadow-heavy);
}

/* Botó d'estrella favorits */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.favorite-btn i {
    font-size: 16px;
    color: #ccc;
    transition: var(--transition);
}

.favorite-btn.active i {
    color: #DAA520; /* Goldenrod - més fosc que #FFD700 */
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: white;
}

/* També canvia el hover: */
.favorite-btn:hover i {
    color: #B8860B; /* DarkGoldenrod - encara més fosc per hover */
}

.favorites-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid white;
}

.favorites-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.favorites-btn i {
    font-size: 1.1rem;
}


/* Barra de cerca del mapa redissenyada */
.search-container-map {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: center;
}

.favorites-map-btn {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #8B4513;
    padding: 1rem 1.5rem;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
    border: 2px solid white;
    white-space: nowrap;
}

.favorites-map-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(135deg, #FFA500, #FFD700);
}

.favorites-map-btn.active {
    background: linear-gradient(135deg, #DAA520, #B8860B);
    color: white;
}

.favorites-map-btn i {
    font-size: 1.1rem;
}

/* Responsive per la barra del mapa */
@media (max-width: 1200px) {
    .search-container-map {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}


/* Millores específiques per mòbil */
@media (max-width: 768px) {
    /* Assegurar que tots els elements respectin l'amplada */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Evitar scroll horitzontal */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Botons més grans per tocs */
    button, .btn-primary, .action-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    /* Inputs més accessibles */
    input, select, textarea {
        font-size: 16px !important; /* Evita zoom iOS */
        -webkit-appearance: none;
        border-radius: 8px;
    }
}

/* Ocultar la creu de tancament dels popups del mapa */
.leaflet-popup-close-button {
    display: none !important;
}


/* ============================================
   CLUSTERS DEL MAPA - ESTILOSOS I MODERNS
   ============================================ */

/* Contenidor del cluster - Anell exterior verd translúcid */
.marker-cluster {
    background: radial-gradient(circle, rgba(76, 175, 80, 0.25) 0%, rgba(76, 175, 80, 0.1) 60%, transparent 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease !important;
}

.marker-cluster:hover {
    transform: scale(1.08);
}

/* Cercle interior - Verd sòlid amb gradient suau */
.marker-cluster div {
    background: linear-gradient(135deg, #66BB6A 0%, #81C784 100%) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 3px 12px rgba(76, 175, 80, 0.5), 0 0 0 3px white !important;
    border: none !important;
}

/* Text del número - Blanc i llegible */
.marker-cluster span {
    color: white !important;
    font-weight: 700 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35) !important;
    line-height: 1 !important;
}

/* ============================================
   VARIANTS PER MIDA - DESKTOP
   ============================================ */

/* Cluster PETIT (2-9) */
.marker-cluster-small {
    width: 50px !important;
    height: 50px !important;
}

.marker-cluster-small div {
    width: 38px !important;
    height: 38px !important;
}

.marker-cluster-small span {
    font-size: 15px !important;
}

/* Cluster MITJÀ (10-49) */
.marker-cluster-medium {
    width: 60px !important;
    height: 60px !important;
}

.marker-cluster-medium div {
    width: 46px !important;
    height: 46px !important;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%) !important;
}

.marker-cluster-medium span {
    font-size: 17px !important;
}

/* Cluster GRAN (50+) */
.marker-cluster-large {
    width: 70px !important;
    height: 70px !important;
}

.marker-cluster-large div {
    width: 54px !important;
    height: 54px !important;
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%) !important;
}

.marker-cluster-large span {
    font-size: 19px !important;
}

