/**
 * attr-main.css - Stylesheet for Sri Lankan Attractions Master Page
 * Defines styles for the destinations listing page
 * Enhanced with premium elements from template-destinations.css
 * 
 * Lala's Ceylon Trails - Attractions Module
 */

/* Hero Section */
.attr-hero {
    background: linear-gradient(to right, #0a1118, var(--primary-color));
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.attr-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('../images/slider/pattern-dot.png');
    opacity: 0.12;
    z-index: 1;
    pointer-events: none;
}

.attr-hero .container {
    position: relative;
    z-index: 2;
}

.attr-hero img {
    transform: translateY(0);
    transition: transform 0.7s ease, box-shadow 0.7s ease;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.attr-hero img:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
}

/* Category Filter Section */
.attr-filter {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    background: #f8f9fa;
}

.filter-btn {
    transition: all 0.4s ease;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    border-width: 2px;
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(2, 117, 216, 0.2);
    transform: translateY(-2px);
}

.filter-btn:hover:not(.active) {
    transform: translateY(-2px);
    background-color: rgba(2, 117, 216, 0.05);
}

/* Section Headers */
.section-title {
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    font-size: 2.2rem;
    letter-spacing: 0.5px;
}

.section-title:after {
    content: '';
    position: absolute;
    width: 70px;
    height: 4px;
    background-color: var(--primary-color);
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    font-weight: 400;
    color: #555;
    margin-top: 25px;
}

/* Destination Cards - Updated Layout */
.attr-card {
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.8s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    border: none;
    opacity: 0;
    transform: translateY(20px);
    height: 100%;
    cursor: pointer;
    background-color: #212529; /* Dark background for the card */
}

.attr-card-animated {
    animation: fadeInUp 0.8s forwards;
}

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

.attr-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.attr-card-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.attr-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 1s ease;
}

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

.attr-card-category {
    display: inline-block;
    color: white;
    padding: 6px 14px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    left: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.attr-card .card-title {
    font-weight: 700;
    margin: 10px 0;
    color: #ffffff;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-align: center;
}

.attr-card:hover .card-title {
    color: #f5a623;
    transform: scale(1.02);
}

.attr-card .card-text {
    color: #d9d9d9;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
    font-weight: 400;
}

.attr-card .btn-primary {
    transition: all 0.4s ease;
    border-width: 2px;
    font-weight: 600;
    padding: 0.5rem 1.4rem;
    background-color: var(--primary-color);
    color: white;
    letter-spacing: 0.5px;
}

.attr-card .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 12px rgba(2, 117, 216, 0.25);
    background-color: #0069d9;
}

/* Loading Overlay */
#loading-overlay {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

#loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

#loading-overlay p {
    font-size: 1.1rem;
    color: #555;
    font-weight: 500;
    margin-top: 15px;
}

/* Error message styling */
#error-message {
    padding: 50px 0;
}

#error-message i {
    color: #f5a623;
}

/* Why Visit Section */
.attr-why-visit {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.premium-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 117, 216, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    top: -70px;
    right: 10%;
    border-radius: 50%;
    z-index: 1;
}

.premium-glow-2 {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
    bottom: -120px;
    left: 5%;
    border-radius: 50%;
    z-index: 1;
}

/* FIXED: Changed text color to be dark for better readability on white background */
.attr-why-visit .card {
    transition: all 0.5s ease;
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    background-color: white;
    z-index: 2;
    position: relative;
}

.attr-why-visit .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* FIXED: Changed icon color to primary for better visibility */
.attr-why-visit .card i {
    transition: transform 0.5s ease, color 0.5s ease;
    color: var(--primary-color);
}

.attr-why-visit .card:hover i {
    transform: scale(1.15);
    color: #f5a623;
}

/* FIXED: Card text now dark for better visibility on white background */
.attr-why-visit .card-title {
    font-weight: 700;
    color: #333;
    transition: color 0.5s ease;
}

.attr-why-visit .card:hover .card-title {
    color: var(--primary-color);
}

/* FIXED: Added card-text style to ensure it's visible on white background */
.attr-why-visit .card-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .attr-card-img-wrapper {
        height: 200px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .attr-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .attr-card-img-wrapper {
        height: 180px;
    }
    
    .attr-hero h1 {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-title:after {
        width: 60px;
    }
}

/* Animation Effects for Why Visit Cards */
.attr-why-visit .card:nth-child(1) {
    animation-delay: 0.1s;
}

.attr-why-visit .card:nth-child(2) {
    animation-delay: 0.3s;
}

.attr-why-visit .card:nth-child(3) {
    animation-delay: 0.5s;
}

/* Light Theme Adjustments */
body.light-theme .attr-hero {
    background: linear-gradient(to right, #f8f9fa, var(--primary-color));
    color: #333;
}

body.light-theme .attr-hero h1,
body.light-theme .attr-hero p {
    color: #333;
}

body.light-theme .attr-hero .btn-outline-light {
    color: #333;
    border-color: #333;
}

body.light-theme .attr-hero .btn-outline-light:hover {
    background-color: #333;
    color: #fff;
}