/* includes/assets/css/frontend.css - FIXED VERSION */

.tourism-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    height: 100%;
    display: flex;
    flex-direction: column;
    transform: translateZ(0);
}

.tourism-card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.tourism-card-image {
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.tourism-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* FIXED: Badge Positioning */
.tourism-card-badge {
    position: absolute;
    top: 15px;
    padding: 6px 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    border-radius: 4px;
    white-space: nowrap;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
}

.tourism-card-badge-top-left {
    left: 15px;
    right: auto;
}

.tourism-card-badge-top-right {
    right: 15px;
    left: auto;
}

/* FIXED: Rating Positioning */
.tourism-card-ratings {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(5px);
    max-width: calc(100% - 30px);
    z-index: 5;
}

.tourism-card-stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.tourism-card-star {
    font-size: 0.9rem;
    flex-shrink: 0;
}

.tourism-card-star-full {
    color: #f39c12;
}

.tourism-card-star-half {
    color: #f39c12;
    position: relative;
}

.tourism-card-star-half::after {
    content: '★';
    position: absolute;
    left: 0;
    color: #ddd;
    width: 50%;
    overflow: hidden;
}

.tourism-card-star-empty {
    color: #ddd;
}

.tourism-card-rating-text {
    font-size: 0.75rem;
    color: #666;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Enhanced Image Overlay with Multiple Variations */
.tourism-card-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.85), rgba(155, 89, 182, 0.85));
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

/* Slide Up Overlay Effect */
.tourism-card-overlay-slide-up {
    transform: translateY(100%);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

.tourism-card:hover .tourism-card-overlay-slide-up {
    transform: translateY(0);
    opacity: 1;
}

/* Slide Down Overlay Effect */
.tourism-card-overlay-slide-down {
    transform: translateY(-100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
}

.tourism-card:hover .tourism-card-overlay-slide-down {
    transform: translateY(0);
    opacity: 1;
}

/* Diagonal Slide Overlay Effect */
.tourism-card-overlay-diagonal {
    transform: translate(-100%, -100%);
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.9), rgba(52, 152, 219, 0.9));
}

.tourism-card:hover .tourism-card-overlay-diagonal {
    transform: translate(0, 0);
    opacity: 1;
}

/* Circular Reveal Overlay Effect */
.tourism-card-overlay-circular {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.9) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tourism-card:hover .tourism-card-overlay-circular {
    width: 150%;
    height: 150%;
    opacity: 1;
}

/* Gradient Shift Overlay Effect */
.tourism-card-overlay-gradient-shift {
    background: linear-gradient(45deg, 
        rgba(231, 76, 60, 0.7) 0%, 
        rgba(52, 152, 219, 0.7) 25%, 
        rgba(46, 204, 113, 0.7) 50%, 
        rgba(155, 89, 182, 0.7) 75%, 
        rgba(241, 196, 15, 0.7) 100%);
    background-size: 400% 400%;
    background-position: 0% 50%;
    opacity: 0;
}

.tourism-card:hover .tourism-card-overlay-gradient-shift {
    opacity: 1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.tourism-card-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
}

/* Content Reveal Effects */
.tourism-card-content-reveal {
    transform: translateY(20px);
    opacity: 0.9;
}

.tourism-card:hover .tourism-card-content-reveal {
    transform: translateY(0);
    opacity: 1;
}

.tourism-card-title {
    margin: 0 0 16px 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.tourism-card:hover .tourism-card-title {
    color: #3498db;
}

.tourism-card-description {
    margin: 0 0 20px 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5d6d7e;
    flex-grow: 1;
}

/* ENHANCED: Hover Effects */

/* 1. Zoom with Parallax Effect */
.tourism-card-image-hover-zoom-parallax {
    transform: scale(1);
}

.tourism-card:hover .tourism-card-image-hover-zoom-parallax {
    transform: scale(1.15);
}

.tourism-card-image-hover-zoom-parallax img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tourism-card:hover .tourism-card-image-hover-zoom-parallax img {
    transform: scale(1.1);
}

/* 2. Glitch Zoom Effect */
.tourism-card-image-hover-glitch-zoom {
    position: relative;
    overflow: hidden;
}

.tourism-card-image-hover-glitch-zoom::before,
.tourism-card-image-hover-glitch-zoom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 1;
}

.tourism-card-image-hover-glitch-zoom::before {
    transform: translateX(-5px) scale(1.05);
    filter: hue-rotate(90deg);
}

.tourism-card-image-hover-glitch-zoom::after {
    transform: translateX(5px) scale(1.05);
    filter: hue-rotate(-90deg);
}

.tourism-card:hover .tourism-card-image-hover-glitch-zoom::before,
.tourism-card:hover .tourism-card-image-hover-glitch-zoom::after {
    opacity: 0.3;
    transform: translateX(0) scale(1);
}

.tourism-card:hover .tourism-card-image-hover-glitch-zoom img {
    transform: scale(1.1);
}

/* 3. Tilt Zoom Effect */
.tourism-card-image-hover-tilt-zoom {
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
}

.tourism-card:hover .tourism-card-image-hover-tilt-zoom {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05);
}

.tourism-card-image-hover-tilt-zoom img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tourism-card:hover .tourism-card-image-hover-tilt-zoom img {
    transform: scale(1.08) translateZ(20px);
}

/* 4. Blur Zoom Effect */
.tourism-card-image-hover-blur-zoom img {
    transition: all 0.6s ease;
    filter: blur(0px);
}

.tourism-card:hover .tourism-card-image-hover-blur-zoom img {
    transform: scale(1.15);
    filter: blur(2px);
}

/* 5. Split Zoom Effect */
.tourism-card-image-hover-split-zoom {
    position: relative;
    overflow: hidden;
}

.tourism-card-image-hover-split-zoom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    transform: scale(1.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    z-index: 1;
}

.tourism-card:hover .tourism-card-image-hover-split-zoom::before {
    opacity: 1;
    transform: scale(1);
}

.tourism-card:hover .tourism-card-image-hover-split-zoom img {
    transform: scale(1.1) translateX(-10%);
}

/* Hover Content */
.tourism-card-hover-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 3;
}

.tourism-card:hover .tourism-card-hover-content {
    opacity: 1;
    transform: translateY(0);
}

.tourism-card-hover-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.tourism-card-hover-description {
    color: #ecf0f1;
    text-align: center;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Enhanced Button Styles */
.tourism-card-button {
    display: inline-block;
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.tourism-card-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.tourism-card-button:hover::before {
    left: 100%;
}

.tourism-card-button:hover {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* NEW: Enhanced Badge Hover Effects */
.tourism-card:hover .tourism-card-badge {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tourism-card:hover .tourism-card-ratings {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 1);
}

/* Card Lift Effects */
.tourism-card-hover-lift:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tourism-card-hover-float:hover {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tourism-card-hover-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Responsive Design */
@media (max-width: 768px) {
    .tourism-card-content {
        padding: 20px;
    }
    
    .tourism-card-hover-content {
        padding: 20px;
    }
    
    .tourism-card-badge {
        font-size: 0.7rem;
        padding: 4px 8px;
        top: 10px;
    }
    
    .tourism-card-badge-top-left {
        left: 10px;
    }
    
    .tourism-card-badge-top-right {
        right: 10px;
    }
    
    .tourism-card-ratings {
        left: 10px;
        bottom: 10px;
        padding: 6px 10px;
    }
    
    .tourism-card-rating-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .tourism-card-ratings {
        flex-direction: column;
        gap: 4px;
        padding: 6px 8px;
    }
    
    .tourism-card-rating-text {
        font-size: 0.65rem;
    }
}

/* RTL Support */
.rtl .tourism-card-overlay-diagonal {
    transform: translate(100%, -100%);
}

.rtl .tourism-card:hover .tourism-card-overlay-diagonal {
    transform: translate(0, 0);
}

.rtl .tourism-card-badge-top-left {
    left: auto;
    right: 15px;
}

.rtl .tourism-card-badge-top-right {
    right: auto;
    left: 15px;
}

.rtl .tourism-card-ratings {
    left: auto;
    right: 15px;
}

/* includes/assets/css/frontend.css - FIXED HOVER EFFECTS */

/* Reset all hover effects for editor mode */
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-zoom-parallax,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-glitch-zoom,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-tilt-zoom,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-blur-zoom,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-split-zoom {
    transform: none !important;
}

.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-zoom-parallax img,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-glitch-zoom img,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-tilt-zoom img,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-blur-zoom img,
.elementor-editor-active .tourism-card:hover .tourism-card-image-hover-split-zoom img {
    transform: none !important;
    filter: none !important;
}

/* FIXED: Image Hover Effects - Enhanced with better specificity */
.tourism-card-image-hover-zoom-parallax {
    transform: scale(1);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tourism-card-image-hover-zoom-parallax img {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tourism-card:hover .tourism-card-image-hover-zoom-parallax {
    transform: scale(1.15) !important;
}

.tourism-card:hover .tourism-card-image-hover-zoom-parallax img {
    transform: scale(1.1) !important;
}

/* Glitch Zoom Effect - FIXED */
.tourism-card-image-hover-glitch-zoom {
    position: relative;
    overflow: hidden;
}

.tourism-card-image-hover-glitch-zoom::before,
.tourism-card-image-hover-glitch-zoom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    opacity: 0;
    transition: all 0.4s ease !important;
    z-index: 1;
}

.tourism-card-image-hover-glitch-zoom::before {
    transform: translateX(-5px) scale(1.05);
    filter: hue-rotate(90deg);
}

.tourism-card-image-hover-glitch-zoom::after {
    transform: translateX(5px) scale(1.05);
    filter: hue-rotate(-90deg);
}

.tourism-card:hover .tourism-card-image-hover-glitch-zoom::before,
.tourism-card:hover .tourism-card-image-hover-glitch-zoom::after {
    opacity: 0.3 !important;
    transform: translateX(0) scale(1) !important;
}

.tourism-card-image-hover-glitch-zoom img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tourism-card:hover .tourism-card-image-hover-glitch-zoom img {
    transform: scale(1.1) !important;
}

/* 3D Tilt Zoom Effect - FIXED */
.tourism-card-image-hover-tilt-zoom {
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tourism-card:hover .tourism-card-image-hover-tilt-zoom {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) scale(1.05) !important;
}

.tourism-card-image-hover-tilt-zoom img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tourism-card:hover .tourism-card-image-hover-tilt-zoom img {
    transform: scale(1.08) translateZ(20px) !important;
}

/* Blur Zoom Effect - FIXED */
.tourism-card-image-hover-blur-zoom img {
    transition: all 0.6s ease !important;
    filter: blur(0px);
}

.tourism-card:hover .tourism-card-image-hover-blur-zoom img {
    transform: scale(1.15) !important;
    filter: blur(2px) !important;
}

/* Split Zoom Effect - FIXED */
.tourism-card-image-hover-split-zoom {
    position: relative;
    overflow: hidden;
}

.tourism-card-image-hover-split-zoom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    background-size: cover;
    transform: scale(1.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    opacity: 0;
    z-index: 1;
}

.tourism-card:hover .tourism-card-image-hover-split-zoom::before {
    opacity: 1 !important;
    transform: scale(1) !important;
}

.tourism-card-image-hover-split-zoom img {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.tourism-card:hover .tourism-card-image-hover-split-zoom img {
    transform: scale(1.1) translateX(-10%) !important;
}

/* Ensure hover effects work in frontend */
body:not(.elementor-editor-active) .tourism-card {
    cursor: pointer;
}

/* Force hover states in frontend */
body:not(.elementor-editor-active) .tourism-card:hover .tourism-card-image-hover-zoom-parallax,
body:not(.elementor-editor-active) .tourism-card:hover .tourism-card-image-hover-glitch-zoom,
body:not(.elementor-editor-active) .tourism-card:hover .tourism-card-image-hover-tilt-zoom,
body:not(.elementor-editor-active) .tourism-card:hover .tourism-card-image-hover-blur-zoom,
body:not(.elementor-editor-active) .tourism-card:hover .tourism-card-image-hover-split-zoom {
    /* keep specificity without overriding behavior */
    opacity: inherit;
}