/**
 * Majestic Tours - Visual Calendar Widget Styles
 * Version: 2.7.6 - All Tours Same Size
 */

/* ============================================
   Container & Header
   ============================================ */
.majestic-calendar-widget {
    max-width: 100%;
    margin: 40px 0;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Hero Banner */
.calendar-hero-banner {
    height: 280px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.calendar-hero-title {
    font-size: 3em;
    color: #fff;
    margin: 0 0 12px 0;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.calendar-hero-subtitle {
    font-size: 1.2em;
    color: #fff;
    margin: 0;
    font-weight: 400;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.calendar-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 32px 32px 0 32px;
    position: relative;
}

.calendar-title {
    font-size: 2em;
    color: #2c3e50;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.calendar-subtitle {
    color: #6c757d;
    font-size: 0.95em;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   Calendar Container mit seitlichen Pfeilen
   ============================================ */
.calendar-container {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    padding: 0 32px 32px 32px;
}

/* Navigation Buttons - Seitlich */
.nav-btn-side {
    background: #fff;
    border: 2px solid #e8ecef;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    min-width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.nav-btn-side:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
    background: #f8f9ff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-btn-side:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn-side svg {
    width: 32px;
    height: 32px;
}


/* ============================================
   Calendar Grid: Professional Column Layout
   ============================================ */
.calendar-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px;
    background: transparent;
    overflow-x: auto;
    overflow-y: visible;
    padding: 4px;
    box-shadow: none;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f1f3f5;
    flex: 1;
    min-width: 0;
}

.calendar-grid::-webkit-scrollbar {
    height: 8px;
}

.calendar-grid::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 4px;
}

.calendar-grid::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.calendar-grid::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Day Column */
.calendar-day-column {
    flex: 0 0 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.calendar-day-column:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

/* Day Header - Mit Monat */
.day-header {
    background: #fff;
    border-bottom: 2px solid #f1f3f5;
    color: #2c3e50;
    padding: 16px 12px;
    text-align: center;
}

.day-name {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    margin-bottom: 2px;
    font-weight: 600;
}

.day-number {
    font-size: 1.8em;
    font-weight: 700;
    line-height: 1;
    color: #2c3e50;
    margin-bottom: 2px;
}

.day-month {
    font-size: 0.65em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #95a5a6;
    font-weight: 500;
}

/* Tours Container - Compact */
.day-tours {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
}

/* Tour Card - With Image */
.tour-card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.tour-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.12);
}

/* Private Charter - Premium Gold Border (Subtle) */
.tour-card-premium {
    border: 2px solid #d4af37;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.tour-card-premium:hover {
    border-color: #d4af37;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.25);
}

/* ⭐ BLOCKED TOUR CARDS (v2.0) ⭐ */
.tour-card-blocked {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
    pointer-events: none;
}

.tour-card-blocked:hover {
    transform: none;
    box-shadow: none;
    border-color: #e8ecef;
}

.tour-card-blocked .tour-card-image {
    filter: grayscale(100%);
}

.tour-card-blocked .tour-card-overlay {
    background: linear-gradient(to top, rgba(100,100,100,0.8) 0%, rgba(100,100,100,0.3) 100%);
}

.tour-card-blocked-badge {
    background: #6c757d !important;
    color: #fff !important;
}

/* Premium Badge for Private Charter */
.premium-badge {
    display: inline-block;
    font-size: 0.65em;
    background: rgba(212, 175, 55, 0.9);
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 4px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Tour Image with Overlay */
.tour-card-image {
    height: 80px;
    background-size: cover;
    background-position: center;
    position: relative;
    background-color: #f1f3f5;
}

.tour-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 8px 12px;
}

.tour-card-name {
    font-size: 0.85em;
    color: #fff;
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Tour Body - Compact */
.tour-card-body {
    padding: 10px 12px;
}

.tour-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    gap: 8px;
}

.tour-card-time {
    font-size: 0.75em;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-card-time svg {
    opacity: 0.6;
}

.tour-card-spots {
    font-size: 0.75em;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 12px;
}

.tour-card-spots.availability-high {
    background: #d4edda;
    color: #155724;
}

.tour-card-spots.availability-medium {
    background: #fff3cd;
    color: #856404;
}

.tour-card-spots.availability-low {
    background: #f8d7da;
    color: #721c24;
}

.tour-card-spots.sold-out {
    background: #e8ecef;
    color: #6c757d;
}

/* Footer - Price & Button */
.tour-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.tour-card-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #2c3e50;
}

.price-unit {
    font-size: 0.65em;
    font-weight: 400;
    color: #6c757d;
}

/* Compact Button */
.tour-card-button {
    display: inline-block;
    padding: 6px 14px;
    background: #667eea;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8em;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tour-card-button:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
    text-decoration: none;
    color: #fff;
}

.tour-card-button-disabled {
    display: inline-block;
    padding: 6px 14px;
    background: #e8ecef;
    color: #95a5a6;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8em;
    cursor: not-allowed;
}

/* No Tours Message */
.no-tours-message {
    text-align: center;
    padding: 32px 12px;
    color: #cbd5e0;
    font-size: 1em;
}

.no-tours-message small {
    display: block;
    margin-top: 6px;
    font-size: 0.75em;
}


/* ============================================
   Responsive - KOMPLETT NEU & SAUBER
   ============================================ */

/* TABLET & MOBILE: 480px - 768px */
@media (max-width: 768px) and (min-width: 481px) {
    .majestic-calendar-widget {
        padding: 0 !important;
    }
    
    .calendar-hero-banner {
        height: 200px !important;
    }
    
    .calendar-hero-title {
        font-size: 2em !important;
    }
    
    .calendar-hero-subtitle {
        font-size: 1em !important;
    }
    
    .majestic-calendar-widget .calendar-header {
        padding: 16px 10px 0 10px !important;
    }
    
    .majestic-calendar-widget .calendar-container {
        padding: 0 10px 16px 10px !important;
    }
    
    .majestic-calendar-widget .calendar-title {
        font-size: 1.5em !important;
    }
    
    /* Pfeile OBEN für Mobile */
    .majestic-calendar-widget .calendar-container {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    /* Navigation OBEN */
    .majestic-calendar-widget .calendar-container .nav-btn-side {
        display: inline-flex !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }
    
    /* Grid UNTER den Pfeilen */
    .majestic-calendar-widget .calendar-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 10px !important;
        width: 100% !important;
    }
    
    /* TABLET: 2 Tage sichtbar */
    .majestic-calendar-widget .calendar-day-column {
        flex: 0 0 calc(50% - 5px) !important;
        min-width: calc(50% - 5px) !important;
        max-width: calc(50% - 5px) !important;
    }
    
    .majestic-calendar-widget .day-header {
        padding: 10px 6px !important;
    }
    
    .majestic-calendar-widget .day-name {
        font-size: 0.7em !important;
    }
    
    .majestic-calendar-widget .day-number {
        font-size: 1.6em !important;
    }
    
    .majestic-calendar-widget .day-month {
        font-size: 0.6em !important;
    }
    
    .majestic-calendar-widget .day-tours {
        padding: 6px !important;
    }
    
    .majestic-calendar-widget .tour-card-image {
        height: 70px !important;
    }
    
    .majestic-calendar-widget .tour-card-name {
        font-size: 0.8em !important;
    }
    
    .majestic-calendar-widget .tour-card-body {
        padding: 6px 8px !important;
    }
    
    .majestic-calendar-widget .tour-card-time {
        font-size: 0.65em !important;
    }
    
    .majestic-calendar-widget .tour-card-spots {
        font-size: 0.65em !important;
        padding: 2px 5px !important;
    }
    
    .majestic-calendar-widget .tour-card-price {
        font-size: 1em !important;
    }
    
    .majestic-calendar-widget .tour-card-button {
        font-size: 0.7em !important;
        padding: 5px 8px !important;
    }
}

/* SMARTPHONE: bis 480px */
@media (max-width: 480px) {
    .majestic-calendar-widget {
        padding: 0 !important;
    }
    
    .calendar-hero-banner {
        height: 180px !important;
    }
    
    .calendar-hero-title {
        font-size: 1.6em !important;
    }
    
    .calendar-hero-subtitle {
        font-size: 0.9em !important;
    }
    
    .majestic-calendar-widget .calendar-header {
        padding: 14px 8px 0 8px !important;
    }
    
    .majestic-calendar-widget .calendar-container {
        padding: 0 8px 14px 8px !important;
    }
    
    .majestic-calendar-widget .calendar-title {
        font-size: 1.3em !important;
    }
    
    /* Pfeile OBEN für Mobile */
    .majestic-calendar-widget .calendar-container {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    /* Grid UNTER den Pfeilen */
    .majestic-calendar-widget .calendar-grid {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* PHONE: 2 Tage sichtbar */
    .majestic-calendar-widget .calendar-day-column {
        flex: 0 0 calc(50% - 4px) !important;
        min-width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
    }
    
    .majestic-calendar-widget .day-header {
        padding: 10px !important;
    }
    
    .majestic-calendar-widget .day-name {
        font-size: 0.75em !important;
    }
    
    .majestic-calendar-widget .day-number {
        font-size: 1.5em !important;
    }
    
    .majestic-calendar-widget .day-month {
        font-size: 0.6em !important;
    }
    
    .majestic-calendar-widget .day-tours {
        padding: 8px !important;
    }
    
    .majestic-calendar-widget .tour-card-image {
        height: 75px !important;
    }
    
    .majestic-calendar-widget .tour-card-name {
        font-size: 0.8em !important;
    }
    
    .majestic-calendar-widget .tour-card-body {
        padding: 7px 9px !important;
    }
    
    .majestic-calendar-widget .tour-card-time {
        font-size: 0.7em !important;
    }
    
    .majestic-calendar-widget .tour-card-spots {
        font-size: 0.65em !important;
        padding: 3px 6px !important;
    }
    
    .majestic-calendar-widget .tour-card-price {
        font-size: 1.05em !important;
    }
    
    .majestic-calendar-widget .tour-card-button {
        font-size: 0.75em !important;
        padding: 5px 10px !important;
    }
    
    .majestic-calendar-widget .nav-btn-side {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }
    
    .majestic-calendar-widget .nav-btn-side svg {
        width: 18px !important;
        height: 18px !important;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .majestic-calendar-widget {
        background: #fff;
        box-shadow: none;
        padding: 20px;
    }
    
    .tour-card-button,
    .nav-btn-side {
        display: none;
    }
}
