/* ==============================================
   CUSTOM DESIGN OVERRIDES - custom-design.css
   Percorso: assets/css/custom-design.css
   UPDATED: Removed all card conflicts - Cards handled by tour_cards.css
   ============================================== */

/* ========================================
   COLOR VARIABLES UPDATE
   ======================================== */
:root {
    --orange-light: #fdb584;
    --blue-primary: #3068b3;
    --orange-primary: #f79448;
    --red-primary: #dc3545;
    --timeline-line-blue: #3068b3;
    --timeline-navigation-blue: #2a5ba1;
    --timeline-stop-orange: #f79448;
}

/* ========================================
   ENHANCED ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ========================================
   ENHANCED BUTTON STYLES
   ======================================== */
button,
.btn,
input[type="submit"] {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before,
.btn::before,
input[type="submit"]::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;
    z-index: -1;
}

button:hover::before,
.btn:hover::before,
input[type="submit"]:hover::before {
    left: 100%;
}

/* ========================================
   GLASSMORPHISM EFFECTS
   ======================================== */
.glassmorphism {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.site-header,
.tour-filters-sidebar,
.tour-booking-box {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ========================================
   GRADIENT TEXT EFFECTS
   ======================================== */
.gradient-text {
    background: linear-gradient(135deg, #f79448, #3068b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1, h2, h3 {
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

/* ========================================
   GALLERY STYLES - NEW 2-COLUMN LAYOUT
   ======================================== */
.tour-gallery {
    background: inherit !important;
    padding: 40px 0;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    gap: 20px;
    height: 500px;
}

.gallery-main {
    flex: 2;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: zoom-in;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-main:hover .main-image {
    transform: scale(1.08);
}

.gallery-thumbs {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.thumb-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.thumb-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.thumb-item.active {
    box-shadow: 0 0 0 3px var(--orange-primary);
}

/* ========================================
   SIDEBAR ENHANCEMENTS - FIXED POSITION
   ======================================== */
.tour-sidebar {
    position: sticky !important;
    top: 100px !important;
    transform: none !important;
    transition: top 0.3s ease;
}

.tour-sidebar::-webkit-scrollbar {
    width: 6px;
}

.tour-sidebar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}

.tour-sidebar::-webkit-scrollbar-thumb {
    background: rgba(48,104,179,0.3);
    border-radius: 3px;
}

.tour-booking-box {
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid rgba(48,104,179,0.1);
}

.tour-info-panel h3 {
    background: linear-gradient(135deg, var(--blue-primary), #2a5ba1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* ========================================
   SECTION TITLES STYLING
   ======================================== */
.tour-content h2,
.tour-content .section-title {
    position: relative;
    padding-left: 20px;
}

.tour-content h2::before,
.tour-content .section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--orange-primary), var(--blue-primary));
    border-radius: 2px;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 1024px) {
    .tour-gallery {
        padding: 20px 0;
    }
    
    .gallery-container {
        flex-direction: column;
        height: auto;
    }
    
    .gallery-main {
        height: 400px;
    }
    
    .gallery-thumbs {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        gap: 10px;
    }
    
    .tour-sidebar {
        position: static !important;
        top: auto !important;
        transform: none !important;
    }
}

@media (max-width: 768px) {
    .tour-gallery {
        padding: 15px 0;
    }
    
    .gallery-container {
        padding: 0 15px;
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}

/* ========================================
   ACCESSIBILITY & DARK MODE
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --white-95: rgba(30, 30, 30, 0.95);
        --text-color: #e0e0e0;
        --text-muted: #a0a0a0;
    }
    
    body {
        background: linear-gradient(135deg, #1a3a5c 0%, #2a4a6c 100%);
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .site-header,
    .tour-filters-sidebar,
    .favorite-btn,
    .book-now-btn,
    .search-availability-btn,
    .gallery-thumbs {
        display: none !important;
    }
    
    .gallery-main {
        height: 400px !important;
    }
}

/* ========================================
   UTILITIES
   ======================================== */
html {
    scroll-behavior: smooth;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(247, 148, 72, 0.2);
    color: #333;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #f79448, #3068b3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #e8843f, #2a5ba1);
}
