/* ================================================
   DESTINATIONS PAGE - SAFARI STYLE (FIXED BLUR ISSUE)
   ================================================ */

/* ================================================
   HERO SECTION (SAFARI STYLE)
   ================================================ */
.destinations-hero-3d {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: var(--header-height);
    padding: 80px 0;
}

.hero-bg-3d {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0D9488 0%, #14B8A6 50%, #0D9488 100%);
    z-index: 0;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
}

.hero-main-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-main-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg, 
        
    );
    z-index: 1;
}

.hero-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-header-3d {
    position: relative;
    z-index: 2;
    text-align: center;
}

.destinations-hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
}

.destinations-hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: var(--font-weight-black);
    line-height: 1.1;
    margin-bottom: 20px;
}

.destinations-hero-title .title-line {
    display: block;
    animation: slide-up 0.8s var(--ease-bounce) backwards;
}

.destinations-hero-title .title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.destinations-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    animation: fade-in 1s ease 0.6s backwards;
}

/* Legacy title styles for compatibility */
.page-title-3d {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: var(--font-weight-black);
    color: var(--white);
    margin-bottom: 20px;
}

.title-word {
    display: inline-block;
    animation: slideUp 0.8s var(--ease-bounce) backwards;
    margin: 0 10px;
}

.title-word:nth-child(2) { animation-delay: 0.2s; }
.title-word:nth-child(3) { animation-delay: 0.4s; }

.page-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 1s ease 0.6s backwards;
}

/* ================================================
   FILTER SECTION 3D (SAFARI STYLE)
   ================================================ */
.filter-section-3d {
    padding: 60px 0;
    background: linear-gradient(180deg, rgba(92, 80, 17, 0.2) 0%, rgba(133, 177, 174, 0.2) 100%);
}

.filter-card-3d {
    padding: 40px;
    background: rgba(157, 236, 227, 0.3);
    transform-style: preserve-3d;
    transition: var(--transition-base);
}

.filter-card-3d:hover {
    transform: translateY(-5px);
}

.filter-title-3d {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 30px;
    text-align: center;
}

.filter-form-3d {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.filter-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-field-3d {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label-3d {
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
    font-size: 14px;
}

.filter-select-3d {
    padding: 14px 16px;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    background: rgba(13, 148, 136, 0.4);
    font-size: 15px;
    font-family: var(--font-primary);
    color: var(--slate-dark);
    cursor: pointer;
    transition: var(--transition-base);
}

.filter-select-3d:hover {
    background: var(--white);
    border-color: var(--ocean-teal);
}

.filter-select-3d:focus {
    outline: none;
    border-color: var(--ocean-teal);
    box-shadow: var(--shadow-md);
}

.results-info-3d {
    text-align: center;
    padding: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
}

/* Legacy filter styles for compatibility */
.filter-container-3d {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.results-info {
    text-align: center;
    padding: 20px;
    font-weight: var(--font-weight-medium);
    color: var(--slate-dark);
}

/* ================================================
   DESTINATIONS SECTION
   ================================================ */
.destinations-section {
    padding: 80px 0;
    background: var(--white);
}

.destinations-grid-3d {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    visibility: visible !important;
    opacity: 1 !important;
}

/* ================================================
   DESTINATION CARD 3D (FIXED - NO BLUR)
   ================================================ */
.destination-card-3d {
    position: relative;
    transform-style: preserve-3d;
    transition: var(--transition-base);
    cursor: pointer;
    /* FIXED: Remove all opacity/filter issues */
    opacity: 1 !important;
    filter: none !important;
    visibility: visible !important;
}

.card-3d-wrapper {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    /* FIXED: Ensure card is fully visible */
    opacity: 1 !important;
    filter: none !important;
}

.destination-card-3d:hover .card-3d-wrapper {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: var(--shadow-3d);
}

.card-image-3d {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: var(--sand);
}

.card-image-3d img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    /* FIXED: Remove any opacity issues */
    opacity: 1 !important;
    filter: none !important;
}

.destination-card-3d:hover .card-image-3d img {
    transform: scale(1.1);
    /* Keep image fully visible on hover */
    opacity: 1 !important;
}

/* Badge on TOP RIGHT (Safari Style) */
.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: var(--font-weight-bold);
    color: var(--jungle-green);
    z-index: 2;
}

/* FIXED: Overlay only shows on hover, lighter effect */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
    opacity: 0;
    transition: var(--transition-base);
    pointer-events: none;
}

.destination-card-3d:hover .card-overlay {
    opacity: 1;
}

.card-content-3d {
    padding: 30px;
    background: var(--white);
    /* FIXED: Ensure content is fully visible */
    opacity: 1 !important;
    filter: none !important;
}

.card-content-3d h3 {
    font-size: 24px;
    font-weight: var(--font-weight-bold);
    color: var(--slate-dark);
    margin-bottom: 8px;
    /* FIXED: Ensure text is crisp */
    opacity: 1 !important;
}

.card-region-3d {
    font-size: 14px;
    color: var(--slate-medium);
    margin-bottom: 16px;
    opacity: 1 !important;
}

.card-tags-3d {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.card-tag-3d {
    padding: 4px 12px;
    background: var(--sand);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--slate-medium);
}

.card-tag-3d.featured {
    background: var(--gradient-gold);
    color: var(--white);
}

.card-content-3d p {
    color: var(--slate-medium);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 1 !important;
}

.card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--slate-medium);
}

/* Footer with Single Button (Safari Style) */
.card-footer-3d {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--sand);
}

.card-actions {
    display: flex;
    gap: 12px;
    width: 100%;
}

.card-actions button {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--jungle-green);
    border-radius: var(--radius-full);
    color: var(--jungle-green);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition-base);
    opacity: 1 !important;
}

.card-actions button:hover {
    background: var(--jungle-green);
    color: var(--white);
    transform: translateY(-2px);
}

/* FIXED: Glow effect - subtle and only on hover */
.card-3d-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--ocean-teal) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    filter: blur(40px);
    transition: var(--transition-base);
    pointer-events: none;
    z-index: -1;
}

.destination-card-3d:hover .card-3d-glow {
    opacity: 0.2;
    width: 300px;
    height: 300px;
}

/* ================================================
   LOAD MORE SECTION
   ================================================ */
.load-more-section {
    text-align: center;
    padding: 40px 0;
}

.load-more-section .btn-3d-primary {
    padding: 16px 48px;
    font-size: 18px;
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes slide-up {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   LOADING STATES
   ================================================ */
.skeleton-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    height: 450px;
    border-radius: var(--radius-xl);
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ================================================
   NOTIFICATION SYSTEM
   ================================================ */
.notification-3d {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification-3d.success {
    border-left: 4px solid var(--jungle-green);
}

.notification-3d.error {
    border-left: 4px solid #EF4444;
}

.notification-3d.info {
    border-left: 4px solid var(--ocean-teal);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */
@media (max-width: 1024px) {
    .destinations-grid-3d {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
        gap: 30px;
    }
    
    .filter-grid-3d,
    .filter-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .destinations-hero-3d {
        min-height: 40vh;
        padding: 60px 0;
    }
    
    .destinations-hero-title,
    .page-title-3d {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .destinations-hero-subtitle,
    .page-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }
    
    .title-word {
        display: block;
        margin: 5px 0;
    }
    
    .filter-card-3d,
    .filter-container-3d {
        padding: 24px;
    }
    
    .destinations-grid-3d {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .load-more-section .btn-3d-primary {
        width: 100%;
        max-width: 300px;
    }
}

/* ================================================
   HOVER EFFECTS (SUBTLE)
   ================================================ */
.destination-card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--ocean-teal) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -2;
    filter: blur(60px);
}

.destination-card-3d:hover::before {
    opacity: 0.1;
}

/* Custom scrollbar */
.filter-select-3d::-webkit-scrollbar {
    width: 10px;
}

.filter-select-3d::-webkit-scrollbar-track {
    background: var(--sand);
    border-radius: var(--radius-md);
}

.filter-select-3d::-webkit-scrollbar-thumb {
    background: var(--ocean-teal);
    border-radius: var(--radius-md);
}

.filter-select-3d::-webkit-scrollbar-thumb:hover {
    background: var(--jungle-green);
}

/* ================================================
   FORCE CLEAR VISIBILITY (CRITICAL FIX)
   ================================================ */
.destinations-grid-3d *,
.destination-card-3d *,
.card-3d-wrapper *,
.card-image-3d *,
.card-content-3d * {
    opacity: 1 !important;
    filter: none !important;
}

/* Only allow blur on specific hover effects */
.card-badge {
    backdrop-filter: blur(10px) !important;
}

.card-3d-glow {
    filter: blur(40px) !important;
}

.destination-card-3d::before {
    filter: blur(60px) !important;
}