/* Intro Balearic360 Block */
#intro-balearic360 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); /* Using site's CSS variables */
    color: white;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#intro-balearic360:before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
}

.intro-wrap {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

#intro-balearic360 h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#intro-balearic360 p {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

.intro-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary {
    background-color: white;
    color: var(--secondary); /* Using site's CSS variable */
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover {
    background-color: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline:hover {
    background-color: white;
    color: var(--secondary); /* Using site's CSS variable */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn-link {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-3px);
}

/* Mobile Responsive Styles for Intro Block */
@media (max-width: 768px) {
    #intro-balearic360 {
        padding: 30px 15px;
    }
    
    #intro-balearic360 h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    #intro-balearic360 p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .intro-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin-top: 20px;
    }
    
    .btn-primary, .btn-outline, .btn-link {
        width: 100%;
        max-width: 300px;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    #intro-balearic360 h1 {
        font-size: 1.8rem;
    }
    
    #intro-balearic360 p {
        font-size: 0.95rem;
    }
    
    .btn-primary, .btn-outline, .btn-link {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* Top Banner Ad */
.ad-banner {
    background-color: var(--light); /* Black background */
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid var(--light-gray); /* Dark gray border */
    width: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.ad-banner .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.ad-banner .ad-container {
    width: 100%;
    max-width: 970px;
    margin: 0 auto;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: 8px;
    color: var(--gray); /* Light gray text */
    font-size: 14px;
    flex-direction: column;
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.ad-container {
    max-width: 970px;
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: 8px;
    color: var(--gray); /* Light gray text */
    font-size: 14px;
    flex-direction: column;
    padding: 15px;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.ad-container.sidebar {
    flex-direction: column;
    padding: 20px;
    margin-bottom: 30px;
    min-height: 280px;
    max-width: 300px;
    background-color: var(--dark-gray); /* Dark gray background */
    border: 1px solid var(--light-gray); /* Dark gray border */
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* General ad container image styles */
.ad-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 4px;
}

/* Banner fallback content styling */
.ad-banner .ad-container .ad-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--gray); /* Light gray text */
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    display: block;
}

.ad-banner .ad-container p {
    font-size: 1rem;
    color: var(--gray); /* Light gray text */
    margin: 10px 0;
    line-height: 1.5;
}

.ad-banner .ad-container .btn {
    margin-top: 15px;
}

/* Top banner ad images */
.ad-banner .ad-container img {
    width: 100%;
    max-width: 970px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

/* Sidebar ad images */
.ad-container.sidebar img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
}

/* In-content ad images */
.in-content-ad img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
}

/* Sponsored banner images */
.banner-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gray); /* Light gray text */
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    display: block;
}

.ad-container h3 {
    font-size: 1.1rem;
    color: var(--dark); /* White text */
    margin: 8px 0;
    font-weight: 600;
    transition: color 0.3s ease;
}

.ad-container p {
    font-size: 0.9rem;
    color: var(--gray); /* Light gray text */
    margin: 8px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.ad-container .btn {
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Sponsored Banners Section */
.sponsored-banners {
    padding: 50px 0;
    background-color: var(--light); /* Black background */
    transition: background-color 0.3s ease;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.banner-item {
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    background-color: var(--dark-gray); /* Dark gray background */
}

.banner-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.banner-placeholder {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.banner-placeholder h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.banner-placeholder p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.banner-placeholder .btn {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.banner-placeholder .btn:hover {
    background-color: white;
    color: #667eea;
}

/* Map Section */
.map-section {
    padding: 20px 0;
    background-color: var(--light); /* Black background */
    transition: background-color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .map-section {
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .map-section {
        padding: 10px 0;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: var(--dark); /* White text */
    transition: color 0.3s ease;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.island-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.island-btn {
    padding: 10px 20px;
    margin: 0 5px 10px;
    background-color: var(--dark-gray); /* Dark gray background */
    border: 2px solid var(--primary); /* Turquoise border */
    border-radius: var(--rounded-sm);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    color: var(--primary); /* Turquoise text */
}

.island-btn.active, .island-btn:hover {
    background-color: var(--primary); /* Turquoise background */
    color: var(--light); /* Black text for contrast */
}

.map-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.search-box, .filter-select {
    padding: 12px 15px;
    border: 1px solid var(--light-gray); /* Dark gray border */
    border-radius: var(--rounded-sm);
    margin-bottom: 10px;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s ease;
    background-color: var(--darker-gray); /* Dark input background */
    color: var(--dark); /* White text */
}

.search-box:focus, .filter-select:focus {
    border-color: var(--primary); /* Turquoise border */
    outline: none;
}

.map-container {
    height: 600px;
    width: 100%;
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #00BCD4; /* Turquoise blue color */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

@media (max-width: 768px) {
    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .map-container {
        height: 300px;
    }
}

/* Content Sections */
.info-section {
    padding: 60px 0;
    transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
    .info-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .info-section {
        padding: 30px 0;
    }
}

.info-section:nth-child(even) {
    background-color: var(--dark-gray); /* Dark gray background */
}

.info-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.info-text {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.info-image {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

@media (max-width: 768px) {
    .info-content {
        flex-direction: column;
    }
    
    .info-text,
    .info-image {
        flex: 1;
        min-width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .info-text,
    .info-image {
        padding: 10px;
    }
}

.info-image img {
    width: 100%;
    border-radius: var(--rounded-md);
    box-shadow: var(--shadow-md);
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }
}

.news-card {
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: var(--rounded-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.news-image {
    height: 200px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 20px;
}

.news-date {
    color: var(--gray); /* Light gray text */
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.news-categories-filter {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.news-categories-filter .category-filter {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-categories-filter .category-filter:hover,
.news-categories-filter .category-filter.active {
    background-color: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.news-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    display: block;
    margin: 15px auto 0;
    padding: 8px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sponsors */
.sponsors {
    background-color: var(--light); /* Black background */
    padding: 60px 0;
    text-align: center;
    transition: background-color 0.3s ease;
}

.sponsor-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.sponsor-item {
    padding: 20px;
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: var(--rounded-md);
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.sponsor-item img {
    max-width: 100%;
    max-height: 80px;
}

/* Footer */
footer {
    background-color: var(--dark-gray); /* Dark gray background */
    color: var(--dark); /* White text */
    padding: 60px 0 30px;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.footer-column {
    flex: 1;
    min-width: 250px;
    margin-bottom: 30px;
    padding: 0 15px;
}

.footer-column h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: var(--gray); /* Light gray text */
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--dark); /* White text */
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--dark); /* White text */
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray); /* Light gray text */
    font-size: 0.9rem;
    transition: border-color 0.3s ease, color 0.3s ease;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary); /* Turquoise background */
    color: var(--light); /* Black text for contrast */
    text-decoration: none;
    border-radius: var(--rounded-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    visibility: visible;
    opacity: 1;
    transform: none;
    z-index: 10;
    position: relative;
}

.btn:hover {
    background-color: var(--primary-light); /* Lighter turquoise */
    transform: translateY(-3px);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark); /* White text */
    font-size: 1.5rem;
    cursor: pointer;
}

.content-with-sidebar {
    display: flex;
    gap: 30px;
    margin: 40px 0;
}

.main-content {
    flex: 1;
}

.ad-sidebar {
    flex: 0 0 300px;
}

@media (max-width: 1024px) {
    .content-with-sidebar {
        flex-direction: column;
        gap: 20px;
        margin: 30px 0;
    }
    
    .ad-sidebar {
        flex: 1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .content-with-sidebar {
        gap: 15px;
        margin: 20px 0;
    }
}

/* In-content ad units */
.in-content-ad {
    margin: 40px 0;
    padding: 25px;
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: 8px;
    border: 1px solid var(--light-gray); /* Dark gray border */
    text-align: center;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.in-content-ad img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.in-content-ad .ad-label {
    font-size: 0.7rem;
    color: var(--gray); /* Light gray text */
}

.in-content-ad h3 {
    font-size: 1.2rem;
    color: var(--dark); /* White text */
    margin: 10px 0;
    transition: color 0.3s ease;
}

.in-content-ad p {
    color: var(--gray); /* Light gray text */
    margin: 8px 0;
    transition: color 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-content {
        justify-content: center;
    }
    
    .search-bar {
        order: 3;
        flex: 0 0 100%;
        margin-top: 15px;
    }
    
    .content-with-sidebar {
        flex-direction: column;
    }
    
    .ad-sidebar {
        flex: 0 0 auto;
    }
    
    .ad-container.sidebar {
        max-width: 100%;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .map-section {
        padding: 10px 0;
    }
    
    .map-container {
        height: 70vh;
        min-height: 350px;
    }
    
    .island-selector {
        margin-bottom: 10px;
    }
    
    .info-content {
        flex-direction: column;
        text-align: justify;
    }
    
    .footer-column {
        flex: 100%;
    }
    
    .ad-banner {
        padding: 10px;
    }
    
    .ad-container {
        min-height: 70px;
        padding: 10px;
    }
    
    .ad-container.sponsored {
        min-height: 100px;
    }
    
    .banner-item .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Mobile ad image adjustments */
    .ad-banner .ad-container img {
        width: 100%;
        max-height: 90px;
        object-fit: cover;
    }
    
    .ad-banner .ad-container {
        min-height: 90px;
    }
    
    .ad-container.sidebar img {
        max-height: 150px;
    }
    
    .in-content-ad img {
        height: 120px;
    }
    
    .banner-item img {
        height: 150px;
    }
    
    /* News grid responsive adjustment for mobile - 2x2 grid */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-card {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .news-content {
        flex: 1;
        display: flex;
        flex-direction: column;
    }
    
    .news-content p {
        flex: 1;
    }
    
    .read-more-btn {
        margin-top: auto;
    }
}

@media (max-width: 480px) {
    /* Single column for news on very small screens */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-image {
        height: 150px;
    }
}

/* Image loading and fallback */
.ad-container img {
    transition: opacity 0.3s ease;
}

.ad-container img:not([src]) {
    opacity: 0;
}

/* Municipality Info Window Styles */
.municipality-info {
    max-width: 280px;
}

.municipality-info .info-header h3 {
    color: #e74c3c;
    font-size: 1.1rem;
    margin-bottom: 10px;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 5px;
}

.municipality-info .info-details {
    margin: 10px 0;
}

.municipality-info .info-item {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.municipality-info .info-item strong {
    color: var(--dark); /* White text */
    font-weight: 600;
}

.municipality-info .info-item span {
    color: var(--gray); /* Light gray text */
}

.municipality-info .info-actions {
    margin-top: 15px;
    text-align: center;
}

.municipality-info .info-window-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.municipality-info .info-window-button:hover {
    background-color: #c0392b;
}

/* Toggle button styling for municipalities */
#toggle-municipalities {
    background-color: #e74c3c !important;
    border-color: #e74c3c !important;
    color: white !important;
}

#toggle-municipalities:hover {
    background-color: #c0392b !important;
    border-color: #c0392b !important;
}

#toggle-municipalities.active {
    background-color: #27ae60 !important;
    border-color: #27ae60 !important;
}

#toggle-municipalities.active:hover {
    background-color: #229954 !important;
    border-color: #229954 !important;
}

/* Horizontal Banners */
.horizontal-banners {
    padding: 30px 0;
    background-color: var(--light);
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

@media (max-width: 768px) {
    .horizontal-banners {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .horizontal-banners {
        padding: 15px 0;
    }
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.banner-item {
    background-color: var(--dark-gray);
    border-radius: 8px;
    padding: 18px 15px; /* Reduced padding by ~30% */
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    min-height: 175px; /* Reduced from default height by ~30% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    .banner-item {
        min-height: 160px;
        padding: 15px 12px;
    }
}

@media (max-width: 480px) {
    .banner-item {
        min-height: 140px;
        padding: 12px 10px;
    }
}

.banner-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.banner-item h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    font-family: 'Roboto', 'Open Sans', sans-serif;
}

.banner-item p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 400;
}

.banner-item .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
}

/* Responsive Banner Grid */
@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .banner-item {
        padding: 18px 15px;
        min-height: 170px;
    }
    
    .banner-item h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .banner-item p {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .banner-item .btn {
        padding: 9px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .banner-item {
        padding: 16px 12px;
        min-height: 160px;
    }
    
    .banner-item h3 {
        font-size: 1.05rem;
        margin-bottom: 10px;
    }
    
    .banner-item p {
        font-size: 0.85rem;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .banner-item .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* About Balearic360 Section */
.b360-about {
    padding: 60px 0;
    background-color: var(--dark-gray);
}

.b360-about__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.b360-about h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
    font-size: 2rem;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 600;
}

.b360-about__lead {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--dark);
    line-height: 1.6;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 400;
}

.b360-about p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.7;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 400;
}

.b360-about h3 {
    margin: 30px 0 20px;
    color: var(--dark);
    font-size: 1.4rem;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 600;
}

.b360-about__list {
    list-style-type: none;
    padding: 0;
    margin: 25px 0;
}

.b360-about__list li {
    padding: 12px 0 12px 30px;
    position: relative;
    margin-bottom: 10px;
    color: var(--gray);
    line-height: 1.6;
    font-family: 'Roboto', 'Open Sans', sans-serif;
    font-weight: 400;
}

.b360-about__list li:before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 12px;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Banner Grid Styles */
.banner-grid-container {
    padding: 40px 0;
    background-color: var(--light);
    text-align: center;
}

.banner-grid-title {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.banner-grid-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.main-banners {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.main-banner {
    width: 300px;
    height: 250px;
    background-color: var(--dark-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.main-banner:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.main-banner h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.main-banner p {
    color: var(--gray);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.sponsor-banners {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
}

.sponsor-banner {
    width: 300px;
    height: 250px;
    background-color: var(--dark-gray);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.sponsor-banner:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.sponsor-banner h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

.sponsor-banner p {
    color: var(--gray);
    text-align: center;
}

/* Sponsored Banner Ad Styling */
.sponsor-banner-ad {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.banner-ad-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
}

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

.sponsor-banner-ad:hover .banner-ad-image img {
    transform: scale(1.05);
}

.banner-ad-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    background-color: var(--dark-gray);
}

.banner-ad-content h4 {
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.banner-ad-content p {
    color: var(--gray);
    font-size: 0.8rem;
    margin-bottom: 10px;
    line-height: 1.3;
    max-height: 2.6em;
    overflow: hidden;
}

.banner-ad-content .btn {
    align-self: flex-start;
    padding: 5px 10px;
    font-size: 0.8rem;
}

/* Responsive adjustments for banner grid */
@media (max-width: 1200px) {
    .sponsor-banners {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .banner-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .main-banners {
        flex-direction: column;
        align-items: center;
    }
    
    .sponsor-banners {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .main-banner,
    .sponsor-banner {
        width: 100%;
        max-width: 300px;
    }
    
    .b360-about__inner {
        padding: 0 15px;
    }
    
    .b360-about h2 {
        font-size: 1.6rem;
    }
    
    .b360-about__lead {
        font-size: 1.1rem;
    }
    
    .b360-about h3 {
        font-size: 1.2rem;
    }
    
    .b360-about__list li {
        padding: 10px 0 10px 25px;
        font-size: 0.95rem;
    }
}

/* Leaflet Attribution Control Styling */
.leaflet-control-attribution {
    position: absolute;
    bottom: 0;
    right: 0;
    background: transparent !important;
    padding: 2px 5px !important;
    font-size: 10px !important;
    color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: none !important;
    border: none !important;
    max-width: 200px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.7);
}

.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
}

.leaflet-control-attribution a:hover {
    color: rgba(255, 255, 255, 1) !important;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .leaflet-control-attribution {
        font-size: 8px !important;
        max-width: 150px;
    }
}