/* public/css/pontos_turisticos.css */

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

.tourist-spots-container .section-title {
    color: #fff !important;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.tourist-spots-subtitle {
    text-align: center;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.tourist-spots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tourist-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tourist-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px 8px rgba(255, 255, 255, 0.6);
}

.tourist-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: zoom-in;
    transition: filter 0.3s ease;
}

.tourist-card-img:hover {
    filter: brightness(0.9);
}

.tourist-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tourist-card-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #333;
}

.tourist-card-description {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.tourist-card-description.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--brand-blue, #0054a6);
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: color 0.3s ease;
}

.btn-read-more:hover {
    color: var(--brand-orange, #f26522);
}

.tourist-card-description-container {
    display: flex;
    flex-direction: column;
}

.tourist-card-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.link-maps {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-maps:hover {
    color: var(--brand-blue-700, #004485);
}

.link-fotos {
    color: #ff5a5f;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.link-fotos:hover {
    opacity: 0.8;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    position: relative;
    padding: 2rem;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    color: #333;
    z-index: 10;
}

.modal-overlay.active {
    display: flex;
}

#gallery-container {
    margin-top: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.02);
}

/* Zoom Overlay */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    cursor: zoom-out;
}

.zoom-overlay.active {
    display: flex;
}

.zoom-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

/* Admin Gallery UI */
.admin-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.admin-gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.admin-gallery-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.btn-delete-img {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 90, 95, 0.9);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-delete-img:hover {
    background: #ff5a5f;
}

@media (max-width: 768px) {
    .tourist-card-links {
        flex-direction: column;
        align-items: flex-start;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .modal-content {
        padding: 1.5rem 1rem;
        width: 95%;
    }
    .tourist-spots-container .section-title {
        font-size: 2rem;
    }
}
