/*
Theme Name: EVchargemap
Description: A modern WordPress theme for EV charging station directory with advanced filtering, responsive design, and beautiful UI.
Version: 2.0
Author: EVcharge Team
*/

/* CSS Variables for consistent theming */
:root {
    --accent-color: #01bda4;
    --heading-color: #012638;
    --background-color: #ffffff;
    --footer-color: #f0f0ed;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-max-width: 1200px;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

#page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--heading-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background-color: var(--heading-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Secondary Button Styles - Fixed */
.btn-secondary,
.btn.btn-secondary,
.clear-filters,
.learn-more-btn,
.view-stations-btn {
    background-color: white !important;
    color: #01bda4 !important;
    border: 2px solid #01bda4 !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    box-sizing: border-box;
}

.btn-secondary:hover,
.btn.btn-secondary:hover,
.clear-filters:hover,
.learn-more-btn:hover,
.view-stations-btn:hover {
    background-color: #01bda4 !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 189, 164, 0.3);
}

/* Header Main Bar */
.site-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem; /* Provides spacing on the sides */
    height: 80px; /* Gives the header a consistent height */
}

/* Site Logo/Branding */
.site-branding a {
    text-decoration: none;
    color: #012638;
}

.site-branding img {
    max-height: 50px; /* Adjust logo height */
    width: auto;
}

/* Hamburger Menu Button */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #012638;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

/* Desktop Navigation */
.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem; /* Space between menu items */
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: #01bda4;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Show the hamburger button */
    .menu-toggle {
        display: block;
    }

    /* Hide the desktop navigation menu */
    .main-navigation {
        display: none; /* Hide it initially */
        position: absolute;
        top: 80px; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    
    /* This class will be added by JavaScript to show the menu */
    .main-navigation.toggled {
        display: block; 
    }

    /* Style the mobile menu list */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }

    .main-navigation a {
        display: block;
        padding: 1rem 1.5rem;
        width: 100%;
    }

    /* Animate hamburger icon when active */
    .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}

/* Single Station Layout */
.single-station {
    padding: 2rem 0;
}

.station-details {
    max-width: 800px;
    margin: 0 auto;
}

/* Station Header */
.station-header {
    margin-bottom: 2rem;
}

.station-title {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.station-address-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.address-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.address-icon {
    font-size: 1.2rem;
    color: var(--accent-color);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.address-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.4;
}

.btn-copy-address {
    background-color: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-copy-address:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Station Sections */
.station-info-section,
.connector-info-section {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: var(--heading-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: #666;
}

.info-value a {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.info-value a:hover {
    text-decoration: underline;
}

.visit-icon {
    font-size: 0.9rem;
}

.no-connector-data {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

/* Directions Section */
.directions-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Single Station Responsive Design */
@media (max-width: 768px) {
    .station-title {
        font-size: 1.75rem;
    }
    
    .station-address-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .address-content {
        width: 100%;
    }
    
    .btn-copy-address {
        align-self: flex-start;
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .station-info-section,
    .connector-info-section {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .single-station {
        padding: 1rem 0;
    }
    
    .station-title {
        font-size: 1.5rem;
    }
    
    .station-info-section,
    .connector-info-section {
        padding: 1rem;
    }
    
    .address-text {
        font-size: 1rem;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--accent-color), var(--heading-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Grid Systems */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-1 {
    grid-template-columns: 1fr;
}

/* Card Styles */
.card {
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Features Section - Fixed 3x2 Grid */
.features-section {
    padding: 4rem 0;
    background-color: var(--light-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.feature-card h3 {
    font-size: 1.3rem;
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* Enhanced Popular Networks Section */
.networks-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.networks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.network-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.network-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #01bda4;
}

.network-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #01bda4;
    display: block;
}

.network-name {
    font-size: 1.2rem;
    color: #012638;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.network-count {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.network-card .btn {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Location Types Section */
.location-types-section {
    padding: 4rem 0;
    background-color: #ffffff;
}

.location-types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.location-type-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #01bda4;
}

.location-type-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #01bda4;
    display: block;
}

.location-type-card h3 {
    font-size: 1.3rem;
    color: #012638;
    margin-bottom: 1rem;
    font-weight: 600;
}

.location-type-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.location-type-card .btn {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Enhanced Browse by City Section */
.cities-section {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.city-card {
    background-color: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #01bda4;
}

.city-name {
    font-size: 1.2rem;
    color: #012638;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.city-count {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.city-card .btn {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--heading-color);
    margin-bottom: 3rem;
    position: relative;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.section-footer .btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* FAQ Section - Fixed Accordion */
.faq-section {
    padding: 5rem 0;
    background-color: var(--light-gray);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--heading-color);
    transition: var(--transition);
    position: relative;
}

.faq-question:hover {
    background-color: var(--light-gray);
}

.faq-question[aria-expanded="true"] {
    background-color: var(--accent-color);
    color: white;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: bold;
    color: #01bda4;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    transform: rotate(45deg);
    color: white;
}
.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 1.5rem;
    max-height: 200px;
}

.faq-answer p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Connector Info Section - Fixed */
.connector-info-section {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.connector-tabs {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.tab-buttons {
    display: flex;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 1rem 2rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    border-right: 1px solid #ddd;
}

.tab-button:last-child {
    border-right: none;
}

.tab-button:hover {
    background-color: rgba(1, 189, 164, 0.1);
}

.tab-button.active {
    background-color: #01bda4;
    color: white;
}

.tab-content {
    padding: 2rem;
    background-color: white;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

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

.connector-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.connector-label {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connector-value {
    font-size: 1.1rem;
    color: #01bda4;
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-in-service {
    background-color: #d4edda;
    color: #155724;
}

.status-out-of-service {
    background-color: #f8d7da;
    color: #721c24;
}

/* Filter Section */
.filter-section {
    background-color: var(--light-gray);
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: white;
    font-size: 1rem;
    min-width: 150px;
}

.search-input {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    flex: 1;
    min-width: 200px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination a,
.pagination span {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--heading-color);
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.pagination .current {
    background-color: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

/* Footer */
.footer-content {
    text-align: center;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    list-style: none;
}

.footer-nav a {
    color: var(--heading-color);
}

.copyright {
    color: #666;
    font-size: 0.9rem;
}

/* Breadcrumbs - Only show on single station pages */
.breadcrumbs {
    margin-bottom: 2rem;
}

.single-ev_station .breadcrumbs {
    display: block;
}

.breadcrumbs:not(.single-ev_station .breadcrumbs) {
    display: none;
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin: 0 0.5rem;
    color: #666;
}

.breadcrumb-list a {
    color: var(--accent-color);
    text-decoration: none;
}

.breadcrumb-list a:hover {
    text-decoration: underline;
}

.breadcrumb-list li[aria-current="page"] {
    color: #666;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--heading-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(1, 189, 164, 0.1);
}

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

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }
.visible { display: block; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .networks-grid,
    .cities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .location-types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 900px) {
    .networks-grid,
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .location-types-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .network-card,
    .city-card,
    .location-type-card {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .location-types-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .filter-controls {
        flex-direction: column;
    }
    
    .filter-select,
    .search-input {
        width: 100%;
    }
    
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .main-navigation.active {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .tab-button {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .tab-button:last-child {
        border-bottom: none;
    }
    
    .tab-content {
        padding: 1.5rem;
    }
    
    .connector-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Fix button alignment and width issues on mobile */
    .network-card .btn,
    .location-type-card .btn,
    .city-card .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        box-sizing: border-box;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 600px) {
    .networks-grid,
    .cities-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .networks-section,
    .cities-section,
    .location-types-section {
        padding: 3rem 0;
    }
    
    .network-card,
    .city-card,
    .location-type-card {
        padding: 1.5rem;
    }
    
    .network-name,
    .city-name,
    .location-type-card h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .features-grid,
    .location-types-grid,
    .cities-grid,
    .networks-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    /* Ensure all buttons are properly centered and full width on mobile */
    .btn,
    .network-card .btn,
    .location-type-card .btn,
    .city-card .btn {
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        box-sizing: border-box;
    }
    
    .network-card,
    .location-type-card,
    .city-card {
        text-align: center;
    }
}