/* Attraction Page Styles - National Geographic Inspired */

/* Typography */
.attraction-hero h1 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.attraction-description {
    font-family: 'Lato', serif;
    line-height: 1.8;
}

.attraction-description p {
    margin-bottom: 1.5rem;
}

.attraction-description h2,
.attraction-description h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1E293B;
    margin: 2rem 0 1rem 0;
}

.attraction-description h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #2DD4BF;
    padding-bottom: 0.5rem;
}

.attraction-description h3 {
    font-size: 1.5rem;
}

/* Hero Section */
.attraction-hero {
    position: relative;
    height: 100vh;
    max-height: 800px;
    min-height: 600px;
    overflow: hidden;
}

.attraction-hero .absolute.inset-0 img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Gallery */
.photo-gallery .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.photo-gallery .gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 212, 191, 0.8);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery .gallery-item:hover::after {
    opacity: 1;
}

.photo-gallery .gallery-item::before {
    content: '\f065';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 1.5rem;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-gallery .gallery-item:hover::before {
    opacity: 1;
}

/* Quick Facts */
.quick-facts {
    background: linear-gradient(135deg, #F1F5F9 0%, #E2E8F0 100%);
}

.fact-item h4 {
    font-family: 'Poppins', sans-serif;
}

/* Sidebar Widgets */
.widget {
    border: 1px solid #E2E8F0;
    transition: box-shadow 0.3s ease;
}

.widget:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.weather-widget .weather-icon {
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.05);
    }
}

/* Business Items */
.business-item:hover h4 a {
    color: #14B8A6;
}

/* Social Share */
.social-share-buttons a {
    transition: all 0.3s ease;
}

.social-share-buttons a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Archive Page */
.archive-hero {
    background: linear-gradient(135deg, #2DD4BF 0%, #3B82F6 100%);
    position: relative;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Filter Buttons */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.filter-btn:hover::before {
    left: 100%;
}

/* Attraction Cards */
.attraction-card {
    position: relative;
    transition: all 0.3s ease;
}

.attraction-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #2DD4BF, #3B82F6);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.attraction-card:hover::before {
    opacity: 0.05;
}

.attraction-card .card-image {
    position: relative;
}

.attraction-card .card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 50%);
    pointer-events: none;
}

/* Line Clamp Utility */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination */
.pagination-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pagination-custom .page-numbers {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-custom .page-numbers:hover,
.pagination-custom .page-numbers.current {
    background: #2DD4BF;
    border-color: #2DD4BF;
    color: white;
}

/* Lightbox */
#lightbox {
    backdrop-filter: blur(5px);
}

#lightbox img {
    border-radius: 8px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Hero Content Styling */
.attraction-hero .bg-black\/40 {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.attraction-hero .bg-black\/30 {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .attraction-hero {
        height: 100vh;
        max-height: 700px;
        min-height: 500px;
    }
    
    .attraction-hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .attraction-hero p {
        font-size: 1rem !important;
    }
    
    .attraction-hero .bg-black\/40 {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .attraction-hero .h-80 {
        height: 16rem;
    }
    
    .attractions-list-view .attraction-card {
        flex-direction: column;
    }
    
    .attractions-list-view .card-image {
        width: 100%;
    }
    
    .filter-categories {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .attraction-hero {
        min-height: 450px;
        max-height: 600px;
    }
    
    .attraction-hero h1 {
        font-size: 2rem !important;
    }
    
    .attraction-hero .bg-black\/40 {
        padding: 1rem;
        border-radius: 1rem;
    }
    
    .attraction-hero .max-w-4xl {
        max-width: 100%;
    }
}

/* Print Styles */
@media print {
    .attraction-sidebar,
    .related-attractions,
    .social-share-widget {
        display: none;
    }
    
    .attraction-hero {
        background: none !important;
        color: black !important;
        padding: 2rem 0;
    }
    
    .attraction-content {
        max-width: 100%;
        grid-template-columns: 1fr;
    }
}