/*!
 * Atrativos - Foz do Iguaçu
 * Versão: 1.0.2
 * Data: 2025
 */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --success-color: #27ae60;
    --border-color: #ddd;
    --white-color: #ffffff;
    --background-color: #f5f7fa;
    
    /* Cores para classificações */
    --cor-lazer: #0a53a8;
    --cor-ecoturismo: #11734b;
    --cor-historia: #b10202;
    --cor-compras: #ffe5a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--background-color);
    color: #333;
    line-height: 1.6;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem;
}

/* Filtros */
.filters {
    background-color: var(--white-color);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.search-input, .filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--white-color);
    transition: border-color 0.3s;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.filter-select {
    cursor: pointer;
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #95a5a6;
    color: var(--white-color);  
}

.btn-secondary:hover {
    background-color: #7f8c8d;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    color:var(--white-color);
}

.btn-success:hover {
    background-color: var(--success-color);;
    transform: translateY(-1px);
}

.btn-comprar {
    background-color: #4CAF50;
    color: var(--white-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-comprar:hover {
    background-color: #388E3C;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Resultados e Paginação */
.results-info {
    margin: 1rem 0;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.results-count {
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.items-per-page {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.items-per-page select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color:var(--white-color);
    cursor: pointer;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-info {
    font-size: 0.9rem;
    color: var(--dark-color);
    margin: 0 0.5rem;
}

.btn-pagination {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    background-color: var(--white-color);
    color: var(--dark-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    min-width: auto;
}

.btn-pagination:hover:not(:disabled) {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

.btn-pagination:disabled {
    background-color: var(--light-color);
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-pagination.active {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

/* Data Grid */
.data-grid {
    background-color: var(--white-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.grid-header {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.grid-row {
    display: grid;
    grid-template-columns: 100px 2fr 1fr 1fr;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
    cursor: pointer;
}

.grid-row:hover {
    background-color: #f8f9fa;
}

.grid-row.active {
    background-color: #e3f2fd;
    border-left: 4px solid var(--secondary-color);
}

.grid-row:last-child {
    border-bottom: none;
}

.atrativo-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
}

.atrativo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.atrativo-name {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.atrativo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.atrativo-address {
    color: #666;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.atrativo-address i {
    color: var(--secondary-color);
    margin-top: 0.1rem;
}

.atrativo-classificacao {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.atrativo-classificacao i {
    margin-top: 0.1rem;
}

.atrativo-phone {
    color: var(--dark-color);
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.atrativo-phone i {
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.atrativo-price {
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-2px);
}

.social-link .tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: var(--white-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.social-link:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--dark-color);
    grid-column: 1 / -1;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Layout com Mapa */
.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 35%;
    gap: 1.5rem;
    align-items: start;
}

.data-grid-container {
    min-width: 0;
}

.map-container {
    position: sticky;
    top: 1rem;
    height: 1080px;
    background: var(--white-color);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

#map.leaflet-container {
    height: 100% !important;
    min-height: 400px;
}

.map-info {
    padding: 1rem;
    background-color: var(--light-color);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark-color);
}

.map-info i {
    color: var(--secondary-color);
}

/* Popup do Leaflet Customizado */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 15px;
    min-width: 250px;
}

.atrativo-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.5rem;
}

.popup-price {
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.popup-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
}

.popup-phone i {
    color: var(--secondary-color);
}

.popup-social {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.popup-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--light-color);
    border-radius: 50%;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.popup-social-link:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
    transform: translateY(-1px);
}

.popup-route {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--light-color);
    color: var(--white-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.popup-route:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
}

/* Marcadores customizados */
.atrativo-marker {
    background-color: var(--secondary-color);
    border: 3px solid var(--white-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.marker-lazer {
    background-color: var(--cor-lazer);
}

.marker-ecoturismo {
    background-color: var(--cor-ecoturismo);
}

.marker-historia {
    background-color: var(--cor-historia);
}

.marker-compras {
    background-color: var(--cor-compras);
}

.highlighted-marker {
    border: 3px solid var(--white-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

/* Tags */
.atrativo-tag {
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.8rem;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.atrativo-tag i {
    font-size: 0.7rem;
}

/* Tags por classificação */
.tag-lazer {
    background-color: rgba(10, 83, 168, 0.1);
    color: var(--cor-lazer);
    border-color: var(--cor-lazer);
}

.tag-ecoturismo {
    background-color: rgba(17, 115, 75, 0.1);
    color: var(--cor-ecoturismo);
    border-color: var(--cor-ecoturismo);
}

.tag-historia {
    background-color: rgba(177, 2, 2, 0.1);
    color: var(--cor-historia);
    border-color: var(--cor-historia);
}

.tag-compras {
    background-color: rgba(255, 229, 160, 0.3);
    color: #333;
    border-color: var(--cor-compras);
}

/* Tags de preço */
.tag-free {
    background-color: #e8f5e9;
    color: #2e7d32;
    border-color: #a5d6a7;
}

.tag-paid {
    background-color: #fff3e0;
    color: #f57c00;
    border-color: #ffcc80;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
}

.modal-content {
    background-color: var(--white-color);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-modal {
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.close-modal:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

/* Detalhes expandidos */
.expanded-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 1.25rem;
    border-left: 4px solid var(--secondary-color);
}

.detail-section h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h3 i {
    color: var(--secondary-color);
}

.detail-content {
    color: #555;
    line-height: 1.6;
}

.detail-content p {
    margin: 0.5rem 0;
}

.discount-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.discount-list li {
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.discount-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.detail-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.detail-icon {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 0.1rem;
    min-width: 24px;
}

.detail-text {
    flex: 1;
}

.detail-text strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.detail-text span {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}

.detail-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 350px;
    }
    
    .map-container {
        height: 500px;
    }
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .btn {
        min-width: 100px;
        flex: 1;
    }
    
    .results-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .pagination-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .map-container {
        display: none;
    }
    
    .data-grid-container {
        width: 100%;
    }
    
    .grid-header {
        display: none;
    }
    
    .grid-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .atrativo-tags {
        justify-content: flex-start;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 80px);
    }
    
    .detail-row {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0.5rem;
    }
    
    .filters {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .pagination-buttons {
        align-self: stretch;
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .atrativo-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .atrativo-tag {
        width: 100%;
        justify-content: flex-start;
    }
    
    .detail-buttons {
        flex-direction: column;
    }
    
    .btn-comprar {
        width: 100%;
        justify-content: center;
    }
}