/* css/attractions.css */

/* --- CSS Variable for Primary Color (fallback if not set by JS) --- */
:root {
    --primary-color: #17a2b8; /* Default primary color */
    --primary-hover-color: #138496; /* Default hover color */
    --text-color-dark: #2c3e50;
    --text-color-light: #555;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.07);
    --card-hover-shadow: rgba(0, 0, 0, 0.1);
}

/* --- Attractions Page Specific Styles --- */
.attractions-section {
    padding: 3rem 1rem;
    background-color: #f9f9f9; 
    overflow-x: hidden;
}

.attractions-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.attractions-title {
    font-family: 'Lora', serif;
    font-size: 2.8rem;
    color: var(--text-color-dark);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    opacity: 0;
    animation: slideDownFadeInPageTitle 0.8s 0.3s ease-out forwards;
}

.attractions-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.attractions-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUpSubtitle 0.8s 0.6s ease-out forwards;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    list-style: none;
    padding: 0;
}

.todo-item-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 5px 20px var(--card-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation-name: fadeInUpItem;
    animation-duration: 0.5s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.todo-item-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px var(--card-hover-shadow);
}

.todo-item-card .card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
}

.todo-item-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.card-image-gallery {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: #f8f9fa;
    overflow-x: auto;
}

.card-image-gallery .gallery-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent;
}

.card-image-gallery .gallery-thumbnail:hover {
    opacity: 0.8;
    transform: scale(1.05);
    border-color: var(--primary-color);
}

.todo-item-card .card-content {
    padding: 1.5rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.todo-item-card .card-title-link {
    text-decoration: none;
    color: inherit; 
    display: block;
}
.todo-item-card .card-title-link:hover .card-title {
    color: var(--primary-hover-color); 
}


.todo-item-card .card-title {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem; /* Space below title before distance/address */
    color: var(--text-color-dark);
    transition: color 0.3s ease;
}

.todo-item-card .card-distance {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 0.5rem; /* Space from title/social icons */
    margin-bottom: 0.75rem; 
    font-weight: 500;
}

.todo-item-card .card-address {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-color-light); 
    margin-bottom: 1rem;
    display: flex; 
    align-items: center;
    text-decoration: none; 
    transition: color 0.3s ease;
}

.todo-item-card .card-address i {
    margin-right: 0.5rem;
    color: #777; 
}

.todo-item-card .card-address:hover {
    color: var(--primary-color); 
    text-decoration: underline; 
}

.todo-item-card .card-description {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
    margin-top: 0.5rem; 
}

/* --- Social Links Styles (Positioned Above Title & Colored by Default) --- */
.card-social-links {
    margin-bottom: 0.6rem; /* Space below social icons, before the title */
    display: flex;
    gap: 0.8rem; /* Space between icons */
    justify-content: flex-start; 
    flex-wrap: wrap; 
}

.card-social-links .social-icon {
    font-size: 1.25rem; /* Slightly larger for better visibility */
    /* The color is set by the specific brand classes below */
    transition: transform 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    opacity: 1; /* Default opacity */
}

.card-social-links .social-icon:hover {
    transform: scale(1.15); 
    opacity: 0.85; /* Slight fade on hover for feedback */
}

/* Default brand colors for icons */
.card-social-links .social-icon-facebook { color: #3b5998; }
.card-social-links .social-icon-instagram { color: #e4405f; }
.card-social-links .social-icon-twitter { color: #1da1f2; } 
.card-social-links .social-icon-tiktok { color: #000000; } 
.card-social-links .social-icon-youtube { color: #ff0000; }
/* Fallback color if a specific brand class isn't matched by JS (shouldn't happen if JS is correct) */
/* This rule targets the <i> tag directly if the parent <a> doesn't have a specific brand color class. */
/* However, the JS should be adding specific classes to the <a> tag. */
.card-social-links .social-icon i { 
    /* color: #6c757d; */ /* This line can be removed if JS always adds specific classes to <a> */
}
/* --- END: Social Links Styles --- */


/* --- Lightbox Modal Styles --- */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-modal.active {
    display: flex;
    animation: fadeInLightbox 0.3s ease-out;
}

.lightbox-content {
    position: relative;
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    animation: zoomInLightbox 0.3s ease-out;
}

.lightbox-content img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100vh; 
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1001;
}

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

@keyframes fadeInLightbox { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomInLightbox { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }


/* --- Keyframe Animations --- */
@keyframes slideDownFadeInPageTitle {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .attractions-title {
        font-size: 2.2rem;
    }
    .attractions-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    .attractions-grid {
        grid-template-columns: 1fr; 
        gap: 1.5rem;
    }
    .todo-item-card .card-title {
        font-size: 1.3rem;
    }
    .card-social-links {
        justify-content: flex-start; 
        gap: 0.6rem; 
    }
    .card-social-links .social-icon {
        font-size: 1.15rem; 
    }
}
