/* Rome Maps - Main Stylesheet */

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

:root {
    --primary-color: #8B4513;
    --secondary-color: #D4A574;
    --accent-color: #C41E3A;
    --text-color: #333;
    --light-bg: #FDF5E6;
    --white: #fff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

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

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

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-color), #5D3A1A);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.main-nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255,255,255,0.2);
    color: var(--white);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://romemaps.com/hero-image.jpg') center/cover;
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Map Container */
.map-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.map-controls {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px 10px 0 0;
    box-shadow: var(--shadow);
}

.map-controls h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1.1rem;
    border: 2px solid var(--primary-color);
    background: var(--white);
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(139, 69, 19, 0.25);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.3);
}

/* Category-specific active colors */
.filter-btn[data-filter="attractions"].active {
    background: #C41E3A;
    border-color: #C41E3A;
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.3);
}
.filter-btn[data-filter="attractions"]:hover {
    background: #C41E3A;
    border-color: #C41E3A;
}

.filter-btn[data-filter="ancient"].active {
    background: #8B4513;
    border-color: #8B4513;
}
.filter-btn[data-filter="ancient"]:hover {
    background: #8B4513;
    border-color: #8B4513;
}

.filter-btn[data-filter="churches"].active {
    background: #9932CC;
    border-color: #9932CC;
    box-shadow: 0 2px 8px rgba(153, 50, 204, 0.3);
}
.filter-btn[data-filter="churches"]:hover {
    background: #9932CC;
    border-color: #9932CC;
}

.filter-btn[data-filter="piazzas"].active {
    background: #4169E1;
    border-color: #4169E1;
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}
.filter-btn[data-filter="piazzas"]:hover {
    background: #4169E1;
    border-color: #4169E1;
}

.filter-btn[data-filter="metro"].active {
    background: #FF6600;
    border-color: #FF6600;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}
.filter-btn[data-filter="metro"]:hover {
    background: #FF6600;
    border-color: #FF6600;
}

/* Map Legend */
.map-legend {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.map-legend h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.legend-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.legend-icon svg {
    display: block;
}

#rome-map {
    height: 500px;
    width: 100%;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
}

/* Content Section */
.content-section {
    max-width: 1400px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.content-section > p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

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

.feature-card h3 a {
    color: var(--primary-color);
}

.feature-card h3 a:hover {
    color: var(--accent-color);
}

/* Book Cafes Section */
.book-cafes-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    max-width: 1000px;
}

.book-cafes-link {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.book-cafes-link:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* GetYourGuide Widget */
.gyg-widget-section {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.gyg-widget-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.4rem;
}

/* SEO Content */
.seo-content {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.seo-content h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.seo-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

.seo-content p {
    margin-bottom: 1rem;
}

/* Page Content */
.page-content {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.page-content h2 {
    color: var(--primary-color);
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.page-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 0.5rem;
    font-size: 1.2rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
    margin: 1rem 0 1rem 2rem;
}

.page-content li {
    margin-bottom: 0.5rem;
}

/* Attractions List */
.attractions-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.attraction-item {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.attraction-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.attraction-item p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.attraction-item .coords {
    font-size: 0.85rem;
    color: #666;
}

/* Metro Lines */
.metro-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.metro-line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light-bg);
    border-radius: 5px;
}

.line-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: bold;
    font-size: 0.9rem;
}

.line-a { background-color: #FF6600; }
.line-b { background-color: #003399; }
.line-c { background-color: #009933; }

/* Walking Tour Route */
.tour-route {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.tour-route h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tour-route ol {
    margin-left: 1.5rem;
}

.tour-route li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--secondary-color);
}

.tour-route li:last-child {
    border-bottom: none;
}

/* Breadcrumbs */
.breadcrumbs {
    max-width: 1400px;
    margin: 1rem auto;
    padding: 0 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs span {
    color: #666;
}

/* Related Maps Section */
.related-maps-section {
    background: linear-gradient(135deg, var(--primary-color), #5D3A1A);
    padding: 3rem 2rem;
    margin-top: 3rem;
}

.related-maps-content {
    max-width: 1200px;
    margin: 0 auto;
}

.related-maps-section h2 {
    color: var(--white);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 1rem;
}

.related-maps-section > .related-maps-content > p {
    color: var(--white);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.1rem;
    opacity: 0.95;
}

.related-maps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.related-map-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.related-map-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

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

.related-map-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    color: var(--text-color);
}

.related-map-card h3 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.related-map-card p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.related-map-card .arrow {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
}

.related-map-card:hover .arrow {
    transform: translateX(5px);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2C1810, var(--primary-color));
    color: var(--white);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    text-align: center;
    padding: 1rem;
}

.footer-bottom a {
    color: var(--white);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-bottom a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.affiliate-disclaimer {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.5rem;
}

/* ============================================
   LEAFLET MAP VISUAL ENHANCEMENTS
   ============================================ */

/* Map Container Polish */
#rome-map,
.leaflet-container {
    border-radius: 0 0 10px 10px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.06), 0 4px 20px rgba(0,0,0,0.12);
}

/* Leaflet Zoom Controls - Themed */
.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.15) !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.leaflet-control-zoom a {
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border: none !important;
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 18px !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.leaflet-control-zoom a:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
}

.leaflet-control-zoom-in {
    border-bottom: 1px solid #eee !important;
    border-radius: 8px 8px 0 0 !important;
}

.leaflet-control-zoom-out {
    border-radius: 0 0 8px 8px !important;
}

/* Attribution - Less Intrusive */
.leaflet-control-attribution {
    background: rgba(255,255,255,0.75) !important;
    font-size: 10px !important;
    padding: 2px 6px !important;
    border-radius: 4px 0 0 0 !important;
    color: #888 !important;
}

.leaflet-control-attribution a {
    color: #666 !important;
}

/* Leaflet Popup Customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.leaflet-popup-content {
    margin: 0;
    min-width: 180px;
}

.popup-content {
    padding: 12px 15px;
}

.popup-content h3 {
    color: #2C1810;
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.popup-content p {
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.45;
}

.popup-content .popup-address {
    font-size: 0.82rem;
    color: #777;
}

.popup-content .category {
    display: inline-block;
    color: var(--white);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* Teardrop Pin Marker Styles */
.custom-marker-pin,
.tour-marker-pin {
    background: none !important;
    border: none !important;
}

.marker-pin-wrapper,
.tour-pin {
    transition: transform 0.2s ease;
}

.marker-pin-wrapper:hover,
.tour-pin:hover {
    transform: scale(1.12) translateY(-2px);
}

/* Animated Route Line */
.animated-route {
    animation: routeDash 20s linear infinite;
}

@keyframes routeDash {
    to {
        stroke-dashoffset: -200;
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .nav-links a {
        display: block;
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero h1 {
        font-size: 2rem;
    }

    #rome-map {
        height: 400px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 2rem 1rem;
    }

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

    .hero p {
        font-size: 1rem;
    }

    .map-container,
    .content-section,
    .breadcrumbs {
        padding: 0 1rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    #rome-map {
        height: 350px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ============================================
   CUSTOM INTERACTIVE MAPS
   ============================================ */

/* Common Map Container Styles */
.custom-map-container {
    position: relative;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: 450px;
}

.custom-map-container > svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Leaflet maps inside custom-map-container */
.custom-map-container .leaflet-container,
.custom-map-container[id$="-interactive"] {
    height: 500px;
    width: 100%;
}

/* Ensure marker icons render properly */
.custom-marker-pin {
    background: transparent !important;
    border: none !important;
}

/* Metro Schematic Map */
.metro-schematic {
    min-height: 400px;
}

.metro-schematic .map-title {
    font-size: 24px;
    font-weight: bold;
    fill: var(--primary-color);
}

.metro-schematic .station {
    cursor: pointer;
}

.metro-schematic .station-dot {
    transition: r 0.15s ease, filter 0.15s ease;
}

.metro-schematic .station:hover .station-dot {
    filter: drop-shadow(0 0 6px rgba(0,0,0,0.4));
}

.metro-schematic .station-label {
    font-size: 9px;
    fill: #333;
    font-weight: 500;
    pointer-events: none;
}

.metro-schematic .legend-title {
    font-size: 14px;
    font-weight: bold;
    fill: #333;
}

.metro-schematic .legend-text {
    font-size: 10px;
    fill: #555;
}

.metro-schematic .poi-indicator {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.metro-tooltip {
    display: none;
    position: absolute;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
    pointer-events: none;
    max-width: 200px;
}

.metro-tooltip strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.metro-tooltip .poi-text {
    color: var(--accent-color);
    font-weight: 500;
}

.metro-tooltip .interchange-text {
    color: #666;
    font-style: italic;
}

/* Neighborhoods Map - Geographic Style */
.neighborhoods-map {
    min-height: 450px;
    border: 2px solid #ddd;
}

.neighborhoods-map .neighborhood {
    cursor: pointer;
}

.neighborhoods-map .neighborhood-area {
    transition: fill-opacity 0.2s ease, stroke-width 0.2s ease, stroke 0.2s ease;
}

.neighborhoods-map .neighborhood-label {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14px;
    font-weight: 600;
    fill: #333;
    pointer-events: none;
    text-shadow:
        1px 1px 0 rgba(255,255,255,0.8),
        -1px -1px 0 rgba(255,255,255,0.8),
        1px -1px 0 rgba(255,255,255,0.8),
        -1px 1px 0 rgba(255,255,255,0.8);
}

.neighborhood-info-panel {
    background: white;
    padding: 20px;
    border-top: 3px solid var(--primary-color);
}

.neighborhood-info-panel h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.neighborhood-info-panel h4 {
    color: var(--primary-color);
    margin: 15px 0 8px;
    font-size: 1rem;
}

.neighborhood-info-panel ul {
    margin-left: 20px;
}

.neighborhood-info-panel li {
    margin-bottom: 5px;
}

/* Walking Tours Map */
.walking-tours-map {
    min-height: 400px;
}

.walking-tours-map .map-title {
    font-size: 22px;
    font-weight: bold;
    fill: var(--primary-color);
}

.walking-tours-map .tour-name {
    font-size: 16px;
    font-weight: 600;
}

.walking-tours-map .tour-duration {
    font-size: 12px;
    fill: #666;
}

.walking-tours-map .tour-stop {
    cursor: pointer;
}

.walking-tours-map .stop-marker {
    transition: r 0.2s ease;
}

.walking-tours-map .stop-label {
    font-size: 11px;
    font-weight: 600;
    fill: #333;
}

.walking-tours-map .legend-text {
    font-size: 10px;
    fill: #555;
}

.walking-tours-map .walking-path {
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

.tour-selector {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: var(--light-bg);
    flex-wrap: wrap;
    justify-content: center;
}

.tour-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tour-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

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

.tour-btn.active .tour-dot {
    background: white !important;
}

.tour-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.stop-info-panel {
    background: white;
    padding: 20px;
    border-top: 3px solid var(--secondary-color);
    min-height: 80px;
}

.stop-info-panel h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.stop-info-panel p {
    color: #555;
    margin: 0;
}

/* Leaflet Walking Tours Map */
.walking-tours-leaflet {
    width: 100%;
    height: 500px;
    border-radius: 0 0 10px 10px;
    z-index: 1;
}

.walking-tours-leaflet .leaflet-popup-content h3 {
    margin: 0 0 6px 0;
    font-size: 15px;
    color: #333;
}

.walking-tours-leaflet .leaflet-popup-content p {
    margin: 0;
    color: #555;
    font-size: 13px;
}

.walking-tours-leaflet .leaflet-popup-content .tour-popup-number {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: white;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
    font-size: 12px;
    margin-right: 6px;
    vertical-align: middle;
}

.walking-tour-stop-icon {
    background: none !important;
    border: none !important;
}

.walking-tour-stop-icon .stop-pin {
    transition: transform 0.2s ease;
}

.walking-tour-stop-icon:hover .stop-pin {
    transform: scale(1.15) translateY(-2px);
}

/* Landmark Map Styles */
.landmark-map {
    width: 100%;
    min-height: 400px;
}

.landmark-map .map-title {
    font-family: Georgia, 'Times New Roman', serif;
}

.landmark-map .lm-landmark {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.landmark-map .lm-icon {
    transition: filter 0.2s ease, transform 0.2s ease;
}

.landmark-map .lm-dot {
    transition: r 0.2s ease;
}

.landmark-map .lm-label {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.landmark-info-panel {
    padding: 15px 20px;
    background: #fefefe;
    border-top: 2px solid #eee;
    min-height: 60px;
}

.landmark-info-panel h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.landmark-info-panel p {
    color: #555;
    margin: 0 0 5px 0;
    line-height: 1.5;
}

.landmark-info-panel .landmark-address {
    font-size: 0.9em;
    color: #777;
}

/* Map popup (foreignObject inside SVG) */
.lm-popup-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 14px 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    color: #444;
}

.lm-popup-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #333;
    padding-right: 22px;
}

.lm-popup-content p {
    margin: 0 0 6px 0;
    color: #555;
    font-size: 11.5px;
}

.lm-popup-content .popup-address {
    font-size: 11px;
    color: #888;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.lm-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}

.lm-popup-close:hover {
    color: #333;
    background: #f0f0f0;
}

.lm-popup-content .popup-affiliate-link {
    display: block;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    color: #2e7d32;
    font-size: 11.5px;
    text-decoration: none;
}

.lm-popup-content .popup-affiliate-link:hover {
    text-decoration: underline;
}

/* Responsive adjustments for custom maps */
@media (max-width: 768px) {
    .metro-schematic {
        min-height: 300px;
    }

    .metro-schematic .station-label {
        font-size: 7px;
    }

    .metro-schematic .map-title {
        font-size: 18px;
    }

    .neighborhoods-map .map-title {
        font-size: 18px;
    }

    .neighborhoods-map .neighborhood-label {
        font-size: 9px;
    }

    .walking-tours-map .map-title {
        font-size: 18px;
    }

    .walking-tours-map .stop-label {
        font-size: 9px;
    }

    .tour-selector {
        padding: 10px;
    }

    .tour-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .landmark-map .map-title {
        font-size: 18px;
    }

    .landmark-map .lm-label {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .metro-schematic .station-label {
        display: none;
    }

    .metro-schematic .legend-text {
        font-size: 8px;
    }

    .neighborhoods-map .neighborhood-label {
        font-size: 8px;
    }

    .walking-tours-map .stop-label {
        font-size: 8px;
    }

    .tour-btn {
        padding: 6px 12px;
        font-size: 11px;
    }

    .landmark-map .lm-label {
        font-size: 8px;
    }
}

/* Affiliate Links - Subtle Contextual Style */
.popup-affiliate-link {
    display: block;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid #eee;
    color: var(--accent-color);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.popup-affiliate-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.transport-cta {
    max-width: 1400px;
    margin: 0 auto 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 8px;
    text-align: center;
}

.transport-cta p {
    color: var(--white);
    margin: 0;
    font-size: 1.1rem;
}

.transport-cta a {
    display: inline-block;
    margin-top: 0.4rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 6px 18px;
    border-radius: 5px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.transport-cta a:hover {
    background: rgba(255, 255, 255, 0.35);
    color: var(--white);
}

.quick-book-links {
    margin: 1.5rem 0;
    padding: 1rem 1.2rem;
    background: #faf7f2;
    border: 1px solid #e8ddd0;
    border-radius: 8px;
}

.quick-book-links h3 {
    margin: 0 0 0.6rem;
    font-size: 1rem;
    color: var(--primary-color);
}

.quick-book-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quick-book-links li {
    margin: 0;
}

.affiliate-tip {
    font-size: 0.88rem;
    color: #666;
    font-style: italic;
    margin-top: 0.4rem;
    margin-bottom: 0.5rem;
}

.affiliate-tip a,
.affiliate-inline {
    color: var(--white);
    background: var(--accent-color);
    text-decoration: none;
    font-style: normal;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 3px 10px;
    border-radius: 4px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.affiliate-tip a:hover,
.affiliate-inline:hover {
    background: var(--secondary-color);
    text-decoration: none;
}

/* Weather Widget */
.weather-widget {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 1.2rem auto 0;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    color: var(--white);
    font-size: 0.9rem;
    max-width: 400px;
}

.weather-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.weather-temp {
    font-weight: 700;
    font-size: 1.05rem;
}

.weather-desc {
    opacity: 0.9;
}

.weather-feels {
    opacity: 0.7;
    font-size: 0.8rem;
}

@media (max-width: 600px) {
    .weather-widget {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
        gap: 0.4rem;
    }

    .weather-feels {
        display: none;
    }
}

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

    #rome-map {
        height: 600px;
        page-break-inside: avoid;
    }

    .page-content {
        box-shadow: none;
    }
}
