:root {
    --primary: #00BCD4; /* Turquoise accent */
    --primary-light: #00E5FF; /* Lighter turquoise */
    --secondary: #0d9488;
    --tertiary: #f59e0b; /* Amber color for secondary buttons */
    --dark: #ffffff; /* White text */
    --light: #000000; /* Black background */
    --gray: #cccccc; /* Light gray text */
    --light-gray: #333333; /* Dark gray elements */
    --dark-gray: #1a1a1a; /* Dark gray background */
    --darker-gray: #2a2a2a; /* Darker gray background */
    --success: #4ade80;
    --danger: #ff5252; /* Red for errors and danger */
    --warning: #FFD700; /* Yellow for warnings */
    --footer-bg: #0F0F0F; /* Footer dark background */
    --footer-text: #F2F2F2; /* Footer light text */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.3);
    --rounded-sm: 0.25rem;
    --rounded-md: 0.5rem;
    --rounded-lg: 1rem;
    --transition: all 0.3s ease;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light); /* Black background */
    color: var(--dark); /* White text */
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    width: 100%;
}



.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}



/* Top Bar */
.top-bar {
    background-color: var(--darker-gray); /* Dark gray background */
    color: var(--dark); /* White text */
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.back-button-wrapper {
    flex: 1;
    text-align: left;
}

.back-to-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dark); /* White text */
    text-decoration: none;
    padding: 6px 12px;
    border-radius: var(--rounded-md);
    transition: all 0.3s ease;
    background-color: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.back-to-map-btn:hover {
    background-color: rgba(0, 188, 212, 0.2);
    color: var(--primary-light);
    transform: translateY(-2px);
}

.back-to-map-btn i {
    font-size: 1.1em;
}

.back-text {
    font-weight: 500;
}

.top-bar a {
    color: var(--dark); /* White text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--primary); /* Turquoise accent */
}

.language-selector {
    display: flex;
    gap: 10px;
}

.language-selector a.active {
    color: var(--primary); /* Turquoise accent */
    font-weight: 500;
}

/* Header */
.header-main {
    padding: 0px 0;
    position: static;
    top: auto;
    background-color: var(--dark-gray); /* Dark gray background */
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 0;
}



.logo-container {
    flex: 1;
    text-align: center;
    padding: 20px 0;
}

.logo-link {
    text-decoration: none;
    display: inline-block;
}

.logo-text {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.balearic {
    color: var(--dark); /* White */
}

.three-sixty {
    color: var(--primary); /* Turquoise */
}

.logo-text:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .logo-text {
        font-size: 4rem;
    }
}

.search-bar {
    flex: 1;
    min-width: 250px;
    max-width: 600px;
    margin: 20px auto 0;
    position: relative;
}

.centered-search {
    max-width: 500px;
    margin: 5px auto 10px;
    width: 100%;
    position: relative;
}

.search-bar form {
    display: flex;
    position: relative;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--rounded-md) 0 0 var(--rounded-md);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--darker-gray);
    color: var(--dark);
    z-index: 2;
    position: relative;
}

.search-bar input:focus {
    border-color: var(--primary);
}

.search-bar button {
    padding: 0 20px;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2;
    position: relative;
}

.search-bar button:hover {
    background-color: var(--primary-light);
}

.quick-access {
    display: none;
    gap: 15px;
    position: fixed;
    right: 20px;
    top: 8px;
    z-index: 1001;
}

@media (max-width: 768px) {
    .quick-access {
        display: flex !important;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
}

.quick-access a {
    color: var(--dark); /* White text */
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.quick-access a:hover {
    color: var(--primary); /* Turquoise accent */
}

/* Navigation */
.main-nav {
    background-color: var(--primary); /* Turquoise background */
    position: static;
    top: auto;
    z-index: 999;
}

.nav-container {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-item > a {
    display: block;
    padding: 15px 20px;
    color: var(--light); /* Black text for contrast */
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.nav-item > a:hover {
    background-color: var(--primary-light); /* Lighter turquoise */
}

.dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: var(--dark-gray); /* Dark gray background */
    width: 250px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border-radius: var(--rounded-sm);
    overflow: hidden;
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown-item {
    border-bottom: 1px solid var(--light-gray); /* Dark gray border */
}

.dropdown-item a {
    display: block;
    padding: 12px 20px;
    color: var(--dark); /* White text */
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item a:hover {
    background-color: var(--darker-gray); /* Dark background */
    color: var(--primary); /* Turquoise accent */
    padding-left: 25px;
}

.mega-dropdown {
    position: static;
}

/* Updated Mega Dropdown Styles for Scrollability */
.mega-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    width: 100%;
    background-color: var(--dark-gray); /* Dark gray background */
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-radius: 0 0 var(--rounded-md) var(--rounded-md);
    max-height: 70vh;
    overflow-y: auto;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-item:hover .mega-dropdown-content {
    display: block;
}

.mega-dropdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding-bottom: 10px;
}

.mega-dropdown-column {
    background-color: var(--darker-gray); /* Dark background */
    border-radius: var(--rounded-md);
    padding: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.mega-dropdown-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--light-gray); /* Darker background */
}

.mega-dropdown-column h4 {
    color: var(--primary); /* Turquoise accent */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary); /* Secondary color */
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-dropdown-column ul {
    list-style: none;
}

.mega-dropdown-column li {
    margin-bottom: 8px;
}

.mega-dropdown-column a {
    display: block;
    padding: 8px 12px;
    color: var(--dark); /* White text */
    text-decoration: none;
    border-radius: var(--rounded-sm);
    transition: all 0.3s ease;
}

.mega-dropdown-column a:hover {
    background-color: rgba(0, 188, 212, 0.1); /* Turquoise background */
    color: var(--primary); /* Turquoise accent */
    padding-left: 15px;
}

/* Custom scrollbar styling */
.mega-dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.mega-dropdown-content::-webkit-scrollbar-track {
    background: var(--light-gray); /* Dark gray track */
    border-radius: 10px;
}

.mega-dropdown-content::-webkit-scrollbar-thumb {
    background: var(--primary); /* Turquoise thumb */
    border-radius: 10px;
}

.mega-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light); /* Lighter turquoise */
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    background-color: var(--dark-gray); /* Dark gray background */
}

.breadcrumb ul {
    display: flex;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: var(--gray); /* Light gray text */
}

.breadcrumb a {
    color: var(--primary); /* Turquoise accent */
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-light); /* Lighter turquoise */
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    background-color: #333;
    overflow: hidden;
    margin-bottom: 40px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--dark); /* White text */
    padding: 0 20px;
    background-color: rgba(0,0,0,0.7); /* Darker overlay */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: var(--dark); /* White text */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    color: var(--dark); /* White text */
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--secondary);
    color: var(--light); /* Black text for contrast */
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--rounded-md);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.cta-button:hover {
    background-color: #0f766e;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Interactive Map Section */
.map-section {
    padding: 40px 0;
    background-color: var(--light); /* Black background */
}

.map-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.map-wrapper {
    flex: 2;
    min-height: 450px;
    background-color: #2a2a2a; /* Dark background */
    border-radius: var(--rounded-md);
    overflow: hidden;
    position: relative;
}

.map-highlights {
    flex: 1;
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: var(--rounded-md);
    padding: 25px;
    box-shadow: var(--shadow-sm);
}

.map-highlights h3 {
    color: var(--primary); /* Turquoise accent */
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary); /* Secondary color */
}

.highlight-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: var(--rounded-sm);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background-color: var(--darker-gray); /* Dark background */
    box-shadow: var(--shadow-sm);
}

.highlight-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
}

.arch-highlight {
    background-color: #ff6b6b;
}

.industrial-highlight {
    background-color: #4ecdc4;
}

.commercial-highlight {
    background-color: #ffe66d;
}

.residential-highlight {
    background-color: #1a535c;
}

/* Map Legend */
.map-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 3px;
}

/* Sponsored Section */
.sponsored {
    padding: 40px 0;
    background-color: var(--light); /* Black background */
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    color: var(--dark); /* White text */
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray); /* Light gray text */
    max-width: 700px;
    margin: 0 auto;
}

.sponsored-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sponsored-item {
    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;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 120px;
}

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

.sponsored-item img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Zone Search */
.zone-search {
    padding: 60px 0;
    background-color: var(--light); /* Black background */
}

.zone-search-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.search-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray); /* Dark gray border */
}

.search-tab {
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: var(--gray); /* Light gray text */
}

.search-tab.active {
    border-bottom-color: var(--primary); /* Turquoise accent */
    color: var(--primary); /* Turquoise accent */
}

.search-tab:hover:not(.active) {
    color: var(--primary); /* Turquoise accent */
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.search-form select, .search-form input {
    padding: 12px 15px;
    border: 1px solid var(--light-gray); /* Dark gray border */
    border-radius: var(--rounded-sm);
    min-width: 200px;
    transition: border-color 0.3s ease;
    background-color: var(--darker-gray); /* Dark input background */
    color: var(--dark); /* White text */
}

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

.search-form button {
    padding: 12px 25px;
    background-color: var(--primary); /* Turquoise background */
    color: var(--light); /* Black text for contrast */
    border: none;
    border-radius: var(--rounded-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-form button:hover {
    background-color: var(--primary-light); /* Lighter turquoise */
    transform: translateY(-2px);
}

/* Highlights Section */
.highlights {
    padding: 60px 0;
    background-color: var(--light); /* Black background */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    color: var(--dark); /* White text */
    font-size: 1.8rem;
}

.section-header a {
    color: var(--primary); /* Turquoise accent */
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-header a:hover {
    color: var(--primary-light); /* Lighter turquoise */
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

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

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

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

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

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

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--secondary);
    color: var(--light); /* Black text for contrast */
    padding: 5px 10px;
    border-radius: var(--rounded-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 10px;
    color: var(--dark); /* White text */
    font-size: 1.2rem;
}

.card-content p {
    color: var(--gray); /* Light gray text */
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #aaaaaa; /* Medium gray text */
    font-size: 0.8rem;
}

/* Categories Section */
.categories {
    padding: 60px 0;
    background-color: var(--light); /* Black background */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: var(--rounded-md);
    padding: 25px 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    background-color: var(--primary); /* Turquoise background */
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-card:hover .category-icon, 
.category-card:hover .category-title,
.category-card:hover .category-count {
    color: var(--light); /* Black text for contrast */
}

.category-icon {
    font-size: 2.5rem;
    color: var(--primary); /* Turquoise accent */
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.category-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark); /* White text */
    transition: color 0.3s ease;
}

.category-count {
    color: var(--gray); /* Light gray text */
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* News Section */
.news {
    padding: 60px 0;
    background-color: var(--light); /* Black background */
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.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.fade-in {
    animation: fadeIn 0.4s ease-in;
}

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

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

.news-image {
    height: 180px;
    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: #aaaaaa; /* Medium gray text */
    font-size: 0.8rem;
    margin-bottom: 10px;
}

.news-content h3 {
    margin-bottom: 10px;
    color: var(--dark); /* White text */
    font-size: 1.2rem;
}

.news-content p {
    color: var(--gray); /* Light gray text */
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.news-tag {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--dark-gray); /* Dark gray background */
    color: var(--primary); /* Turquoise accent */
    font-size: 0.7rem;
    border-radius: var(--rounded-sm);
    margin-right: 5px;
    font-weight: 500;
}

/* Value Proposition */
.value-proposition {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, #00838F 100%); /* Turquoise gradient */
    color: var(--light); /* Black text for contrast */
    text-align: center;
}

.value-proposition h2 {
    margin-bottom: 20px;
    font-size: 2rem;
    color: var(--dark); /* White text */
}

.value-proposition p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--dark); /* White text */
}

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

.value-item {
    background-color: rgba(26, 26, 26, 0.7); /* Dark semi-transparent background */
    padding: 30px 20px;
    border-radius: var(--rounded-md);
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-10px);
    background-color: rgba(26, 26, 26, 0.9); /* Darker background */
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary); /* Turquoise accent */
}

.value-item h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--dark); /* White text */
}

/* Sponsors */
.sponsors {
    padding: 60px 0;
    background-color: var(--light); /* Black background */
}

.sponsor-slider {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 0;
}

.sponsor-item {
    flex: 0 0 auto;
    opacity: 0.7;
    transition: all 0.3s ease;
    padding: 15px;
    border-radius: var(--rounded-sm);
}

.sponsor-item:hover {
    opacity: 1;
    background-color: var(--dark-gray); /* Dark gray background */
}

.sponsor-item img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%) brightness(50%);
    transition: filter 0.3s ease;
}

.sponsor-item:hover img {
    filter: grayscale(0%) brightness(100%);
}

/* Newsletter */
.newsletter {
    padding: 60px 0;
    background-color: var(--light); /* Black background */
    text-align: center;
    color: var(--dark); /* White text */
}

.newsletter h2 {
    margin-bottom: 15px;
    color: var(--dark); /* White text */
    font-size: 1.8rem;
}

.newsletter p {
    max-width: 600px;
    margin: 0 auto 25px;
    color: var(--gray); /* Light gray text */
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    border-radius: var(--rounded-md);
    overflow: hidden;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--light-gray); /* Dark gray border */
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: var(--darker-gray); /* Dark input background */
    color: var(--dark); /* White text */
}

.newsletter-form input:focus {
    border-color: var(--primary); /* Turquoise border */
}

.newsletter-form button {
    padding: 0 25px;
    background-color: var(--primary); /* Turquoise background */
    color: var(--light); /* Black text for contrast */
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.newsletter-form button:hover {
    background-color: var(--primary-light); /* Lighter turquoise */
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary); /* Turquoise background */
    color: var(--light); /* Black text for contrast */
    border-radius: 50%;
    transition: all 0.3s ease;
}

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

/* Footer */
footer {
    background-color: var(--footer-bg); /* Footer dark background */
    color: var(--dark); /* White text */
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--primary); /* Turquoise accent */
    margin-bottom: 20px;
    font-size: 1.2rem;
}

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

.footer-column li {
    margin-bottom: 14px;
    line-height: 1.4;
}

.footer-column a {
    color: var(--footer-text); /* Footer light text */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary); /* Turquoise accent */
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 40px;
    text-align: center;
    font-size: 0.9rem;
    color: #aaaaaa; /* Medium gray text */
    line-height: 1.5;
}

/* Mobile Navigation */
.mobile-nav-container {
    display: none;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--dark-gray); /* Dark gray background */
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    transition: right 0.3s ease;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light-gray); /* Dark gray border */
}

.mobile-menu-header h3 {
    margin: 0;
    color: var(--dark); /* White text */
    font-size: 1.2rem;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray); /* Light gray text */
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-menu-btn:hover {
    color: var(--dark); /* White text */
}

.mobile-nav-menu {
    list-style: none;
    padding: 20px;
}

.mobile-nav-item {
    margin-bottom: 10px;
}

.mobile-nav-item > a {
    display: block;
    padding: 12px 15px;
    color: var(--dark); /* White text */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: var(--rounded-sm);
}

.mobile-nav-item > a:hover {
    background-color: var(--darker-gray); /* Dark background */
    color: var(--primary); /* Turquoise accent */
}

.mobile-nav-item.mega-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-mega-dropdown {
    display: none;
    padding: 15px 0;
}

.mobile-mega-dropdown.active {
    display: block;
}

.mobile-mega-dropdown-column {
    background-color: var(--darker-gray); /* Dark background */
    border-radius: var(--rounded-md);
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.mobile-mega-dropdown-column:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: var(--light-gray); /* Darker background */
}

.mobile-mega-dropdown-column h4 {
    color: var(--primary); /* Turquoise accent */
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary); /* Secondary color */
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-mega-dropdown-column ul {
    list-style: none;
}

.mobile-mega-dropdown-column li {
    margin-bottom: 8px;
}

.mobile-mega-dropdown-column a {
    display: block;
    padding: 8px 12px;
    color: var(--dark); /* White text */
    text-decoration: none;
    border-radius: var(--rounded-sm);
    transition: all 0.3s ease;
}

.mobile-mega-dropdown-column a:hover {
    background-color: rgba(0, 188, 212, 0.1); /* Turquoise background */
    color: var(--primary); /* Turquoise accent */
    padding-left: 15px;
}

/* Top Banner Ad */
.ad-banner {
    background-color: var(--dark-gray); /* Dark gray background */
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid var(--light-gray); /* Dark gray border */
}

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

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

.ad-container.sponsored {
    max-width: 100%;
    min-height: 120px;
    margin: 30px 0;
    flex-direction: column;
    padding: 15px;
}

.ad-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #aaaaaa; /* Medium gray text */
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

/* Layout adjustments for ads */
.content-with-sidebar {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.main-content {
    flex: 1;
}

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

/* In-content ad units */
.in-content-ad {
    margin: 40px 0;
    padding: 20px;
    background-color: var(--dark-gray); /* Dark gray background */
    border-radius: 8px;
    border: 1px solid var(--light-gray); /* Dark gray border */
    text-align: center;
    color: var(--gray); /* Light gray text */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .header-content {
        justify-content: space-between;
    }
    
    .search-bar {
        order: 3;
        flex: 0 0 100%;
        margin-top: 15px;
        max-width: 100%;
    }
    
    .mobile-nav-container {
        display: block;
    }

    .content-with-sidebar {
        flex-direction: column;
    }
    
    .ad-sidebar {
        flex: 0 0 auto;
        order: 2;
    }
    
    .ad-container.sidebar {
        max-width: 100%;
        min-height: 250px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 300px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .sponsored-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .card-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .top-bar-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Mobile user dropdown adjustments */
    .user-dropdown .dropdown-menu {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .top-bar {
        padding: 10px 0;
    }
    
    .language-selector {
        width: 100%;
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .zone-search {
        padding: 30px 0;
        border-radius: 0;
    }
    
    .zone-search h2 {
        font-size: 2rem;
    }
    
    .zone-search p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .search-form {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .search-form select, 
    .search-form button {
        width: 100%;
        padding: 10px 20px;
    }
    
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-box {
        width: 90%;
        max-width: 300px;
    }

    .sponsored-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .card-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ad-banner {
        padding: 10px 0;
    }
    
    .ad-container {
        min-height: 70px;
    }
    
    .ad-container.sponsored {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 250px;
        padding-top: 10px;
        padding-bottom: 20px;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }
    
    .cta-button {
        padding: 10px 20px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: var(--rounded-md);
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: var(--rounded-md);
        padding: 12px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 30px;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: var(--rounded-md);
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.user-dropdown .dropdown-toggle:hover {
    color: var(--primary);
}

.user-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--light);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--rounded-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--light-gray);
}

.user-dropdown .dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-menu a {
    display: block;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--light-gray);
    font-size: 0.9rem;
}

.user-dropdown .dropdown-menu a:last-child {
    border-bottom: none;
}

.user-dropdown .dropdown-menu a:hover {
    background-color: var(--darker-gray);
    color: var(--primary);
    padding-left: 20px;
    transform: translateX(2px);
}

.user-dropdown .dropdown-menu a i {
    margin-right: 8px;
    width: 16px;
    color: var(--gray);
    transition: color 0.3s ease;
}

.user-dropdown .dropdown-menu a:hover i {
    color: var(--primary);
}

/* Arrow indicator for dropdown */
.user-dropdown .dropdown-toggle i.fa-caret-down {
    transition: transform 0.3s ease;
}

.user-dropdown:hover .dropdown-toggle i.fa-caret-down,
.user-dropdown .dropdown-menu.show ~ .dropdown-toggle i.fa-caret-down {
    transform: rotate(180deg);
}

/* Search Bar Autocomplete Styles */
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--dark-gray);
    border: 1px solid var(--light-gray);
    border-top: none;
    border-radius: 0 0 var(--rounded-md) var(--rounded-md);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.autocomplete-results.active {
    display: block;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: var(--dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    gap: 15px;
    cursor: pointer;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background-color: var(--darker-gray);
    transform: translateX(5px);
}

.result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 188, 212, 0.1);
    border-radius: 50%;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--gray);
}

.result-category, .result-location {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.result-category i, .result-location i {
    color: var(--primary);
    font-size: 0.9rem;
}

.result-category span, .result-location span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: var(--gray);
    font-style: italic;
    font-size: 0.95rem;
}

/* Mobile Search Bar Adjustments */
@media (max-width: 768px) {
    .autocomplete-results {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--dark-gray);
        border: 1px solid var(--light-gray);
        border-top: none;
        border-radius: 0 0 var(--rounded-md) var(--rounded-md);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .result-item {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .result-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .result-meta {
        gap: 12px;
    }
}
