/* ========================================
   LOCATION PAGE STYLES - LEONIDA BRASIL
   ======================================== */

/* Location Container */
.location-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    position: relative;
}

/* ========================================
   LOCATION HEADER
   ======================================== */

.location-header {
    margin-bottom: 32px;
}

.location-hero {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
    position: relative;
    height: 400px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6) blur(2px);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 191, 255, 0.7) 0%, 
        rgba(72, 219, 251, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 32px;
    gap: 32px;
}

.location-avatar {
    position: relative;
    flex-shrink: 0;
}

.location-image {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
}

.location-status {
    position: absolute;
    bottom: -8px;
    right: -8px;
    background: var(--color-success);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.location-status.confirmed {
    background: var(--color-success);
}

.location-status.rumor {
    background: var(--color-warning);
}

.location-status.theory {
    background: #a55eea;
}

.location-info {
    flex: 1;
    color: white;
}

.location-title h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.location-subtitle {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
}

.location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.meta-item .fa {
    color: var(--color-accent);
    font-size: 16px;
}

.location-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ========================================
   LOCATION CONTENT LAYOUT
   ======================================== */

.location-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

.content-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0; /* Permite que flex items shrink */
    overflow: hidden; /* Evita overflow horizontal */
}

/* ========================================
   LOCATION SECTIONS
   ======================================== */

.location-section {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.section-header {
    background: var(--bg-light);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0; /* Permite que o texto se ajuste */
}

.section-header .fa {
    color: var(--color-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.section-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-small {
    padding: 6px 12px;
    font-size: 11px;
    white-space: nowrap;
}

/* ========================================
   LOCATION STATS
   ======================================== */

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

.stat-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

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

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
}

.stat-info {
    flex: 1;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-meta {
    font-size: 10px;
    color: var(--text-light);
}
/* ========================================
   OVERVIEW SECTION
   ======================================== */

.overview-content {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.location-description {
    margin-bottom: 24px;
    width: 100%;
}

.location-description p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.quick-facts {
    width: 100%;
}

.quick-facts h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.facts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.fact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-light);
    min-width: 0;
}

.fact-label {
    font-size: 12px;
    color: var(--text-medium);
    font-weight: 500;
    flex-shrink: 0;
    margin-right: 8px;
}

.fact-value {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 600;
    text-align: right;
    word-wrap: break-word;
    min-width: 0;
}

.status-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
    white-space: nowrap;
}

.status-badge.confirmed {
    background: var(--color-success);
}

/* ========================================
   LOCATION TAGS STYLES
   ======================================== */

   .tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

.tag-item.beach {
    background: var(--color-secondary);
    color: white;
}

.tag-item.confirmed {
    background: var(--color-success);
    color: white;
}

.tag-item.urban {
    background: var(--color-info);
    color: white;
}

.tag-item.luxury {
    background: var(--color-accent);
    color: white;
}
/* ========================================
   FEATURES SECTION
   ======================================== */


.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--color-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 12px;
}

.feature-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.feature-bar {
    background: var(--bg-lighter);
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
    overflow: hidden;
}

.feature-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    border-radius: 3px;
    transition: width 1s ease;
}

.feature-info p {
    font-size: 11px;
    color: var(--text-medium);
    line-height: 1.4;
}

/* ========================================
   INTERACTIVE MAP SECTION
   ======================================== */

.map-section {
    overflow: visible;
}

.map-content {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

.map-container {
    position: relative;
    background: var(--bg-light);
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    border: 2px solid var(--border-light);
    width: 100%;
    max-width: 100%;
}

.map-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.map-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: all;
}

.map-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-dark);
    font-size: 12px;
}

.map-btn:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

/* Points of Interest */
.map-poi {
    position: absolute;
    pointer-events: all;
    cursor: pointer;
    z-index: 10;
}

.poi-marker {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid white;
}

.poi-marker.hotel {
    background: var(--color-primary);
}

.poi-marker.nightlife {
    background: #a55eea;
}

.poi-marker.activity {
    background: var(--color-secondary);
}

.poi-marker.shop {
    background: var(--color-accent);
}

.map-poi:hover .poi-marker {
    transform: scale(1.2);
    z-index: 20;
}

.poi-info {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.map-poi:hover .poi-info {
    opacity: 1;
}

.poi-info h5 {
    margin: 0 0 2px 0;
    font-weight: 600;
}

.poi-info span {
    opacity: 0.8;
    font-size: 10px;
}

/* Map Legend */
.map-legend {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    height: fit-content;
}

.map-legend h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 12px 0;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-medium);
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 8px;
    flex-shrink: 0;
}

.legend-marker.hotel {
    background: var(--color-primary);
}

.legend-marker.nightlife {
    background: #a55eea;
}

.legend-marker.activity {
    background: var(--color-secondary);
}

.legend-marker.shop {
    background: var(--color-accent);
}

/* ========================================
   MISSIONS SECTION
   ======================================== */

.missions-content {
    padding: 24px;
}

.missions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.mission-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.mission-card:hover {
    background: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.mission-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.mission-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-type {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}

.mission-type.main {
    background: var(--color-primary);
}

.mission-type.side {
    background: var(--color-secondary);
}

.mission-info {
    padding: 12px;
}

.mission-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.mission-status {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-success);
    margin-bottom: 8px;
    display: block;
}

.mission-info p {
    font-size: 12px;
    color: var(--text-medium);
    line-height: 1.4;
    margin-bottom: 8px;
}

.mission-characters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.character-tag {
    background: var(--color-primary);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 500;
}

/* ========================================
   RELATED LOCATIONS
   ======================================== */

.related-content {
    padding: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.related-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.related-card:hover {
    background: white;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.related-image {
    position: relative;
    flex-shrink: 0;
}

.related-image img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.distance-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: var(--color-accent);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 2px;
    border: 2px solid white;
}

.related-info {
    flex: 1;
}

.related-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.relation-type {
    font-size: 11px;
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

.related-info p {
    font-size: 11px;
    color: var(--text-medium);
    line-height: 1.4;
    margin-bottom: 8px;
}

.view-location {
    font-size: 10px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
}

.view-location:hover {
    text-decoration: underline;
}

/* ========================================
   SIDEBAR LAYOUT FIX
   ======================================== */

.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.widget-header {
    background: var(--color-primary);
    color: white;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
}

.widget-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-content {
    padding: 16px;
}

/* Navigation Widget */
.location-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-medium);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.nav-link.active {
    background: var(--color-primary);
    color: white;
}

/* Weather Widget */
.weather-info .widget-content {
    padding: 16px;
}

.weather-display {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    border-radius: 8px;
    color: white;
}

.weather-icon {
    font-size: 24px;
}

.weather-details {
    flex: 1;
}

.temperature {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 2px;
}

.condition {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 2px;
}

.humidity {
    font-size: 10px;
    opacity: 0.8;
}

.weather-forecast h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forecast-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-medium);
}

.forecast-item .fa {
    color: var(--color-secondary);
    width: 16px;
    text-align: center;
}

/* Services Widget */
.nearby-services .widget-content {
    padding: 16px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.service-item:hover {
    background: var(--bg-light);
}

.service-icon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
}

.service-icon.hospital {
    background: #e74c3c;
}

.service-icon.police {
    background: #3498db;
}

.service-icon.garage {
    background: #f39c12;
}

.service-icon.shop {
    background: #27ae60;
}

.service-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-name {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dark);
}

.service-distance {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .content-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .location-meta {
        justify-content: center;
    }
    
    .map-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .map-legend {
        order: -1;
    }
    
    .legend-items {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .location-container {
        padding: 16px;
    }
    
    .location-hero {
        height: auto;
        min-height: 350px;
    }
    
    .hero-content {
        padding: 24px 20px;
    }
    
    .location-title h1 {
        font-size: 32px;
    }
    
    .location-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .missions-grid {
        grid-template-columns: 1fr;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .content-sidebar {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        height: 300px;
    }
    
    .map-controls {
        top: 8px;
        right: 8px;
        gap: 4px;
    }
    
    .map-btn {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
    
    .facts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .location-title h1 {
        font-size: 24px;
    }
    
    .location-stats {
        grid-template-columns: 1fr;
    }
    
    .location-meta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .location-actions {
        justify-content: center;
        width: 100%;
    }
    
    .btn {
        flex: 1;
        justify-content: center;
    }
    
    .map-container {
        height: 250px;
    }
    
    .poi-info {
        top: 35px;
        font-size: 10px;
        padding: 6px 8px;
    }
    
    .poi-marker {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
    
    .mission-image {
        height: 100px;
    }
    
    .forecast-list {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .forecast-item {
        flex-direction: column;
        text-align: center;
        gap: 4px;
        font-size: 10px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-view {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.location-section {
    animation: fadeInUp 0.6s ease-out;
}

.location-section:nth-child(2) { animation-delay: 0.1s; }
.location-section:nth-child(3) { animation-delay: 0.2s; }
.location-section:nth-child(4) { animation-delay: 0.3s; }
.location-section:nth-child(5) { animation-delay: 0.4s; }
.location-section:nth-child(6) { animation-delay: 0.5s; }

.sidebar-widget {
    animation: slideInLeft 0.6s ease-out;
}

.sidebar-widget:nth-child(2) { animation-delay: 0.1s; }
.sidebar-widget:nth-child(3) { animation-delay: 0.2s; }
.sidebar-widget:nth-child(4) { animation-delay: 0.3s; }
.sidebar-widget:nth-child(5) { animation-delay: 0.4s; }
.sidebar-widget:nth-child(6) { animation-delay: 0.5s; }

.feature-fill {
    animation: fillBar 2s ease-out 0.5s both;
}

@keyframes fillBar {
    from {
        width: 0;
    }
}

.poi-marker {
    animation: pulse 2s infinite;
}

.poi-marker:hover {
    animation: none;
}

/* ========================================
   INTERACTIVE STATES
   ======================================== */

.map-poi.active .poi-marker {
    transform: scale(1.3);
    z-index: 30;
    box-shadow: var(--shadow-lg);
}

.map-poi.active .poi-info {
    opacity: 1;
    background: var(--color-primary);
}

/* Map fullscreen mode */
.map-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
    border-radius: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: none !important;
    border: none !important;
    background: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.map-container.fullscreen .map-placeholder {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.map-container.fullscreen .map-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
    padding: 0 !important;
}

.map-container.fullscreen .map-overlay {
    pointer-events: none !important;
    width: 100% !important;
    height: 100% !important;
}

.map-container.fullscreen .map-controls {
    top: 20px !important;
    right: 20px !important;
    z-index: 10001 !important;
    pointer-events: all !important;
    position: fixed !important;
}

.map-container.fullscreen .map-btn {
    width: 48px !important;
    height: 48px !important;
    font-size: 16px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    color: white !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.map-container.fullscreen .map-btn:hover {
    background: rgba(0, 0, 0, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: scale(1.05) !important;
}

.map-container.fullscreen .map-poi {
    pointer-events: all !important;
    z-index: 10000 !important;
}

.map-container.fullscreen .poi-marker {
    width: 40px !important;
    height: 40px !important;
    font-size: 16px !important;
    border: 3px solid white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
}

.map-container.fullscreen .poi-info {
    background: rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 12px !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    top: 50px !important;
    z-index: 10001 !important;
}

/* Hide other content when map is fullscreen */
body.map-fullscreen {
    overflow: hidden !important;
}

body.map-fullscreen .site-header,
body.map-fullscreen .main-nav,
body.map-fullscreen .location-header,
body.map-fullscreen .content-sidebar,
body.map-fullscreen .location-section:not(.map-section),
body.map-fullscreen .breadcrumb-container,
body.map-fullscreen .back-to-hub,
body.map-fullscreen .site-footer {
    display: none !important;
    visibility: hidden !important;
}

body.map-fullscreen .location-container {
    padding: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
}

body.map-fullscreen .location-content {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
    width: 100vw !important;
}

body.map-fullscreen .content-main {
    margin: 0 !important;
    padding: 0 !important;
    height: 100vh !important;
}

body.map-fullscreen .map-section {
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    height: 100vh !important;
    overflow: hidden !important;
    box-shadow: none !important;
}

body.map-fullscreen .map-content {
    padding: 0 !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    height: 100vh !important;
}

body.map-fullscreen .map-legend {
    display: none !important;
}

/* Fullscreen exit button */
.map-container.fullscreen::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10001;
    pointer-events: none;
}

.fullscreen-exit-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none;
}

.map-container.fullscreen .fullscreen-exit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fullscreen-exit-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

.location-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

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

.weather-display:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-contrast: high) {
    .location-hero,
    .location-section,
    .sidebar-widget {
        border-width: 2px;
    }
}

/* Focus indicators */
.btn:focus-visible,
.nav-link:focus-visible,
.map-btn:focus-visible,
.map-poi:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ========================================
   LIGHTBOX FOR GALLERY
   ======================================== */

.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.show {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.lightbox-caption {
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--text-dark);
    background: white;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-content {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    width: 100%;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-light);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-view {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.gallery-view:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}

.gallery-type {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-item {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
}

.tag-item:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-1px);
}

.tag-item.beach {
    background: var(--color-secondary);
    color: white;
}

.tag-item.confirmed {
    background: var(--color-success);
    color: white;
}

.tag-item.urban {
    background: var(--color-info);
    color: white;
}

.tag-item.luxury {
    background: var(--color-accent);
    color: white;
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--color-primary);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

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

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */

#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    border-left: 4px solid;
    min-width: 300px;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--color-success);
}

.notification.error {
    border-left-color: var(--color-danger);
}

.notification.warning {
    border-left-color: var(--color-warning);
}

.notification.info {
    border-left-color: var(--color-info);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.notification-content .fa {
    font-size: 16px;
    flex-shrink: 0;
}

.notification.success .fa {
    color: var(--color-success);
}

.notification.error .fa {
    color: var(--color-danger);
}

.notification.warning .fa {
    color: var(--color-warning);
}

.notification.info .fa {
    color: var(--color-info);
}

.notification-message {
    flex: 1;
    font-size: 13px;
    color: var(--text-dark);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}



/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .location-actions,
    .section-actions,
    .content-sidebar,
    .back-to-hub,
    .map-controls,
    .poi-info,
    .notification,
    .lightbox-overlay {
        display: none !important;
    }
    
    .location-container {
        max-width: 100%;
        padding: 0;
    }
    
    .location-content {
        grid-template-columns: 1fr;
    }
    
    .location-hero {
        height: auto;
        min-height: 200px;
        page-break-inside: avoid;
    }
    
    .location-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.3) !important;
    }
    
    .location-title h1 {
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.8) !important;
    }
    
    .location-meta,
    .location-subtitle {
        color: white !important;
    }
    
    .map-container {
        height: 300px !important;
    }
}

/* ========================================
   UTILITIES
   ======================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ==========================================================================
   WIDGET LOCAIS PRÓXIMOS - SIDEBAR
   ========================================================================== */

   .sidebar-widget.nearby-locations {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sidebar-widget.nearby-locations:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.nearby-locations .widget-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 1.25rem;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.nearby-locations .widget-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.nearby-locations:hover .widget-header::before {
    opacity: 1;
    right: 150%;
}

.nearby-locations .widget-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nearby-locations .widget-header i {
    font-size: 1.1rem;
    opacity: 0.9;
}

.nearby-locations .widget-content {
    padding: 0;
}

/* Lista de Locais Próximos */
.nearby-list {
    display: flex;
    flex-direction: column;
}

.nearby-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.nearby-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nearby-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    padding-left: 1.5rem;
}

.nearby-item:hover::before {
    transform: scaleY(1);
}

/* Imagem do Local Próximo */
.nearby-image {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 0.75rem;
    position: relative;
    flex-shrink: 0;
    background: var(--background-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.nearby-item:hover .nearby-image img {
    transform: scale(1.1);
}

.nearby-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nearby-item:hover .nearby-image::after {
    opacity: 1;
}

/* Informações do Local Próximo */
.nearby-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nearby-info h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.nearby-info h5 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-info h5 a:hover {
    color: var(--primary-color);
}

.nearby-type {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
}

.nearby-distance {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.125rem;
}

.nearby-distance::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.6;
}

/* Estados Especiais */
.nearby-item.featured {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05), rgba(var(--secondary-rgb), 0.05));
    border-left: 3px solid var(--primary-color);
}

.nearby-item.featured .nearby-info h5 a {
    color: var(--primary-color);
    font-weight: 700;
}

/* Indicadores de Tipo de Local */
.nearby-type.distrito {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

.nearby-type.marco {
    background: rgba(230, 126, 34, 0.1);
    color: #e67e22;
}

.nearby-type.negócio {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
}

.nearby-type.praia {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Animações e Estados de Loading */
.nearby-item.loading {
    opacity: 0.6;
    pointer-events: none;
}

.nearby-item.loading .nearby-image {
    background: var(--skeleton-color);
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

.nearby-item.loading .nearby-info h5,
.nearby-item.loading .nearby-type,
.nearby-item.loading .nearby-distance {
    background: var(--skeleton-color);
    color: transparent;
    border-radius: 4px;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Estado Vazio */
.nearby-list:empty::after {
    content: 'Nenhum local próximo encontrado';
    display: block;
    text-align: center;
    padding: 2rem 1.25rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Responsividade */
@media (max-width: 768px) {
    .nearby-item {
        padding: 0.75rem 1rem;
    }
    
    .nearby-image {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
    }
    
    .nearby-info h5 {
        font-size: 0.85rem;
    }
    
    .nearby-type {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
    
    .nearby-distance {
        font-size: 0.75rem;
    }
}

/* Modo Escuro */
@media (prefers-color-scheme: dark) {
    .sidebar-widget.nearby-locations {
        background: var(--surface-dark);
        border-color: var(--border-dark);
    }
    
    .nearby-item {
        border-bottom-color: var(--border-dark);
    }
    
    .nearby-item:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .nearby-info h5 a {
        color: var(--text-light);
    }
    
    .nearby-info h5 a:hover {
        color: var(--primary-light);
    }
    
    .nearby-type {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-light);
    }
    
    .nearby-distance {
        color: var(--primary-light);
    }
}

/* Micro-interações */
.nearby-item {
    cursor: pointer;
}

.nearby-item:active {
    transform: scale(0.98);
}

.nearby-info h5 a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Indicador de Carregamento no Widget */
.nearby-locations.loading .widget-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: loading-bar 1.5s ease-in-out infinite;
}

@keyframes loading-bar {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Skeleton loading states */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-title {
    height: 2em;
    margin-bottom: 1em;
    border-radius: 4px;
}

.skeleton-image {
    aspect-ratio: 16/9;
    border-radius: 8px;
}