/* DelhiMaps.com - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-color: #1a73e8;
    --primary-dark: #1557b0;
    --secondary-color: #34a853;
    --accent-color: #ea4335;
    --text-color: #202124;
    --text-light: #5f6368;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #dadce0;
    --metro-blue: #0066b3;
    --metro-yellow: #ffcc00;
    --metro-red: #ee3124;
    --metro-green: #00a650;
    --metro-violet: #994499;
    --metro-pink: #f78fb3;
    --metro-magenta: #bb2288;
    --metro-orange: #f7941d;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.main-header {
    background: var(--background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 20px 15px;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 100;
}

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

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-color);
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--background-alt);
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 40px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Map Section */
.map-section {
    padding: 30px 0;
    background: var(--background-alt);
}

#map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.map-controls {
    margin-top: 20px;
    text-align: center;
}

.map-controls h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-light);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: var(--background);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
}

/* Quick Links Section */
.quick-links {
    padding: 60px 0;
}

.quick-links h2,
.popular-maps h2,
.seo-content h2,
.map-categories h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

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

.link-card {
    display: block;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metro-icon { background: linear-gradient(135deg, var(--metro-blue), var(--metro-yellow)); }
.tourist-icon { background: linear-gradient(135deg, var(--accent-color), #ff7043); }
.road-icon { background: linear-gradient(135deg, var(--text-light), var(--text-color)); }
.ncr-icon { background: linear-gradient(135deg, var(--secondary-color), #66bb6a); }
.political-icon { background: linear-gradient(135deg, var(--metro-violet), var(--metro-pink)); }
.areas-icon { background: linear-gradient(135deg, var(--metro-orange), var(--metro-magenta)); }

.link-card h3 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.link-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Popular Maps Section */
.popular-maps {
    padding: 60px 0;
    background: var(--background-alt);
}

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

.map-card {
    background: var(--background);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.map-card:hover {
    box-shadow: var(--shadow-lg);
}

.map-card a {
    display: block;
    padding: 25px;
}

.map-card h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.map-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* SEO Content Section */
.seo-content {
    padding: 60px 0;
}

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

.content-block h3 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
}

.content-block p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Map Categories Section */
.map-categories {
    padding: 60px 0;
    background: var(--background-alt);
}

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

.category-column h4 {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.category-column ul li {
    margin-bottom: 8px;
}

.category-column ul li a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.category-column ul li a:hover {
    color: var(--primary-color);
}

/* Footer */
.main-footer {
    background: var(--text-color);
    color: white;
    padding: 50px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.7;
}

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* Page-specific Styles */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumb {
    padding: 15px 0;
    background: var(--background-alt);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.breadcrumb ul li:not(:last-child)::after {
    content: '/';
    margin-left: 10px;
    color: var(--text-light);
}

.breadcrumb ul li a {
    color: var(--text-light);
}

.breadcrumb ul li:last-child a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Content Sections */
.content-section {
    padding: 50px 0;
}

.content-section.alt {
    background: var(--background-alt);
}

.content-section h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.content-section h3 {
    font-size: 1.3rem;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.content-section p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.content-section ul li {
    color: var(--text-light);
    margin-bottom: 8px;
    list-style: disc;
}

/* Metro Line Colors */
.line-blue { color: var(--metro-blue); }
.line-yellow { color: var(--metro-yellow); }
.line-red { color: var(--metro-red); }
.line-green { color: var(--metro-green); }
.line-violet { color: var(--metro-violet); }
.line-pink { color: var(--metro-pink); }
.line-magenta { color: var(--metro-magenta); }
.line-orange { color: var(--metro-orange); }

.line-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.line-badge.blue { background: var(--metro-blue); }
.line-badge.yellow { background: var(--metro-yellow); color: var(--text-color); }
.line-badge.red { background: var(--metro-red); }
.line-badge.green { background: var(--metro-green); }
.line-badge.violet { background: var(--metro-violet); }
.line-badge.pink { background: var(--metro-pink); }
.line-badge.magenta { background: var(--metro-magenta); }
.line-badge.orange { background: var(--metro-orange); }

/* Stations Table */
.stations-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--background);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    overflow: hidden;
}

.stations-table th,
.stations-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.stations-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.stations-table tr:hover {
    background: var(--background-alt);
}

/* Info Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.info-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
}

.info-card h4 {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    padding: 50px 0;
}

.faq-item {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition), padding var(--transition);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
}

/* Related Links */
.related-links {
    padding: 50px 0;
    background: var(--background-alt);
}

.related-links h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    text-align: center;
}

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

.related-grid a {
    display: block;
    padding: 15px 20px;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    text-align: center;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.related-grid a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform var(--transition);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu > li > a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    #map {
        height: 350px;
    }

    .page-header h1 {
        font-size: 1.6rem;
    }

    .quick-links h2,
    .popular-maps h2,
    .seo-content h2,
    .map-categories h2 {
        font-size: 1.4rem;
    }
}

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

    .hero {
        padding: 30px 0;
    }

    .quick-links,
    .popular-maps,
    .seo-content,
    .map-categories {
        padding: 40px 0;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .stations-table th,
    .stations-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .map-controls,
    .filter-buttons {
        display: none;
    }

    #map {
        height: auto;
        page-break-inside: avoid;
    }

    .content-section {
        page-break-inside: avoid;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden { display: none; }
.visible { display: block; }
