/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header */
.header {
    background-color: #2c3e50;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0 1rem;
}

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #34495e;
    color: #fff;
}

.nav-link.active {
    background-color: #3498db;
    color: #fff;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.description {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Map Container */
.map-container {
    position: relative;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

#map {
    height: 600px;
    width: 100%;
    border-radius: 8px;
}

/* Map Controls */
.map-controls-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-controls-top-right {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.map-controls-bottom-right {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1000;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.layer-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.control-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.control-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.search-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 10px;
    color: #666;
    font-size: 14px;
}

#searchInput {
    width: 200px;
    height: 40px;
    padding: 8px 8px 8px 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#searchInput:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.layer-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.layer-btn:hover {
    background: #f8f9fa;
    border-color: #007bff;
    color: #007bff;
}

.layer-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 10px 15px;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

#modalContent {
    padding: 20px;
}

.point-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.point-title {
    font-size: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 10px;
}

.point-category {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.point-description {
    color: #555;
    line-height: 1.6;
}

.point-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9rem;
}

.info-value {
    color: #555;
}

.point-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 15px;
}

/* Custom Marker Icons */
.custom-marker {
    background: #27ae60;
    border: 2px solid white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Estilos para popups */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.custom-popup .leaflet-popup-content {
    margin: 12px;
    font-size: 14px;
}

.custom-popup .leaflet-popup-content h3 {
    margin: 0 0 8px 0;
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
}

.custom-popup .leaflet-popup-content p {
    margin: 8px 0;
    color: #555;
    line-height: 1.4;
}

.custom-popup .leaflet-popup-content small {
    color: #666;
    font-size: 12px;
}

.category-badge {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
}

.marker-museu { background: #e74c3c; }
.marker-catedral { background: #9b59b6; }
.marker-congresso { background: #f39c12; }
.marker-palacio { background: #e67e22; }
.marker-praca { background: #27ae60; }
.marker-torre { background: #3498db; }
.marker-planetario { background: #1abc9c; }
.marker-estadio { background: #e74c3c; }
.marker-parque { background: #27ae60; }
.marker-ponte { background: #34495e; }

/* Responsive Design - Melhorado */
@media (max-width: 1024px) {
    .content-container {
        padding: 0 1.5rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    #map {
        height: 550px;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.8rem 0;
    }
    
    .nav {
        justify-content: center;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.95rem;
    }
    
    .main-content {
        padding: 1.5rem 0;
    }
    
    .content-container {
        padding: 0 1rem;
    }
    
    .title {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }
    
    #map {
        height: 450px;
    }
    
    .map-controls-left {
        top: 8px;
        left: 8px;
        gap: 8px;
    }
    
    .map-controls-top-right {
        top: 8px;
        right: 8px;
    }
    
    .map-controls-bottom-right {
        bottom: 8px;
        right: 8px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    #searchInput {
        width: 160px;
        height: 36px;
        font-size: 13px;
    }
    
    .layer-btn {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    .point-info {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    #modalContent {
        padding: 15px;
    }
    
    .point-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.6rem 0;
    }
    
    .nav {
        padding: 0 0.5rem;
    }
    
    .nav-link {
        padding: 0.3rem 0.6rem;
        font-size: 0.9rem;
    }
    
    .main-content {
        padding: 1rem 0;
    }
    
    .content-container {
        padding: 0 0.8rem;
    }
    
    .title {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .description {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
        padding: 0 0.3rem;
    }
    
    #map {
        height: 350px;
    }
    
    .map-controls-left {
        top: 5px;
        left: 5px;
        gap: 6px;
    }
    
    .map-controls-top-right {
        top: 5px;
        right: 5px;
    }
    
    .map-controls-bottom-right {
        bottom: 5px;
        right: 5px;
    }
    
    .control-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    #searchInput {
        width: 130px;
        height: 32px;
        font-size: 12px;
        padding: 6px 6px 6px 30px;
    }
    
    .search-icon {
        font-size: 12px;
        left: 8px;
    }
    
    .layer-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .modal-content {
        margin: 15% auto;
        width: 98%;
    }
    
    #modalContent {
        padding: 12px;
    }
    
    .point-title {
        font-size: 1.2rem;
    }
    
    .point-image {
        height: 150px;
    }
    
    .footer {
        padding: 0.8rem 0;
        font-size: 0.8rem;
    }
}

@media (max-width: 360px) {
    .content-container {
        padding: 0 0.5rem;
    }
    
    .title {
        font-size: 1.3rem;
    }
    
    .description {
        font-size: 0.9rem;
    }
    
    #map {
        height: 300px;
    }
    
    #searchInput {
        width: 110px;
    }
    
    .control-btn,
    .layer-btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }
    
    .map-controls-left {
        top: 3px;
        left: 3px;
        gap: 4px;
    }
    
    .map-controls-top-right {
        top: 3px;
        right: 3px;
    }
    
    .map-controls-bottom-right {
        bottom: 3px;
        right: 3px;
    }
    
    /* Ajustes para popups em telas muito pequenas */
    .custom-popup .leaflet-popup-content {
        margin: 8px;
        font-size: 12px;
    }
    
    .custom-popup .leaflet-popup-content h3 {
        font-size: 14px;
    }
    
    .custom-popup .leaflet-popup-content p {
        font-size: 11px;
    }
    
    .custom-popup .leaflet-popup-content small {
        font-size: 10px;
    }
    
    .category-badge {
        font-size: 10px;
        padding: 1px 6px;
    }
}

/* Melhorias para dispositivos móveis - popups */
@media (max-width: 768px) {
    .custom-popup .leaflet-popup-content-wrapper {
        border-radius: 6px;
    }
    
    .custom-popup .leaflet-popup-content {
        margin: 10px;
        font-size: 13px;
    }
    
    .custom-popup .leaflet-popup-content h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .custom-popup .leaflet-popup-content p {
        font-size: 12px;
        margin: 6px 0;
    }
    
    .custom-popup .leaflet-popup-content small {
        font-size: 11px;
    }
    
    .category-badge {
        font-size: 10px;
        padding: 2px 6px;
        margin-bottom: 6px;
    }
    
    /* Melhorar experiência de toque */
    .custom-popup .leaflet-popup-close-button {
        font-size: 18px;
        padding: 8px;
        line-height: 1;
    }
} 