/* Frontend styles for Tour Calendar - Clean modern design */

/* Base reset and box-sizing */
.tour-calendar *,
.tour-calendar *:before,
.tour-calendar *:after {
    box-sizing: border-box;
}

/* Main container */
.tour-calendar {
    width: 100%;
    max-width: 100%;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Custom width support */
.tour-calendar[style*="width"] {
    margin-left: auto;
    margin-right: auto;
}

/* Tour tabs container */
.tour-tabs {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Tab navigation */
.tab-navigation {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.tab-button {
    background: transparent;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    flex: 1;
    min-width: 0;
}

.tab-button:hover {
    background: #e9ecef;
    color: #495057;
}

.tab-button.active {
    color: #007cba;
    background: #fff;
    border-bottom-color: #007cba;
}

.tab-button:focus {
    outline: 2px solid #007cba;
    outline-offset: -2px;
}

/* Desktop tabs */
.desktop-tab {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile tabs (hidden by default) */
.mobile-tab {
    display: none;
    width: 100%;
    text-align: left;
    padding: 12px 20px;
    border-bottom: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.mobile-tab.active {
    background: #007cba;
    color: #fff;
}

/* Tab content */
.tab-content-wrapper {
    position: relative;
}

.tab-content {
    display: none;
    padding: 25px;
    background: #fff;
    min-height: 200px;
}

.tab-content.active {
    display: block;
}

/* Month details list */
.month-details {
    list-style: none;
    margin: 0;
    padding: 0;
}

.month-details li {
    margin-bottom: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
    line-height: 1.6;
    color: #333;
}

.month-details li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.month-details li strong {
    color: #007cba;
    font-weight: 600;
    margin-right: 8px;
}

/* Responsive design */
@media (max-width: 767px) {
    .tour-calendar.hidden-mobile {
        display: none;
    }
    
    .tab-navigation {
        display: none;
    }
    
    .mobile-tab {
        display: block;
    }
    
    .tab-content {
        padding: 15px;
    }
    
    .month-details li {
        padding: 10px 0;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .tour-calendar.hidden-tablet {
        display: none;
    }
    
    .tab-button {
        padding: 12px 15px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .tab-navigation {
        justify-content: center;
    }
    
    .tab-button {
        flex: 0 1 auto;
        min-width: 60px;
    }
}

/* Print styles */
@media print {
    .tour-calendar {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .tab-navigation {
        display: none;
    }
    
    .tab-content {
        display: block !important;
        page-break-inside: avoid;
        border-bottom: 1px solid #000;
        margin-bottom: 20px;
    }
    
    .tab-content:before {
        content: attr(aria-labelledby);
        font-weight: bold;
        display: block;
        margin-bottom: 10px;
        text-transform: uppercase;
    }
}