/* McCarthy's Tours Plugin Styles */

/* Interactive Calendar Styles */
.mccarthys-interactive-calendar {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.calendar-header {
    margin-bottom: 30px;
}

.calendar-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

/* Month Selector */
.month-selector-wrapper {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.month-selector-year {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.selector-year {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    min-width: 60px;
    text-align: center;
}

.year-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-nav-btn:hover {
    background: #007cba;
    border-color: #007cba;
    color: #ffffff;
}

.year-nav-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.month-selector-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.month-selector-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 5px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
}

.month-selector-item:hover:not(.past) {
    border-color: #007cba;
    background: #f0f8ff;
}

.month-selector-item.past {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.month-selector-item.has-tours {
    border-color: #4caf50;
    background: #f1f8f4;
}

.month-selector-item.has-tours:hover:not(.past) {
    border-color: #2e7d32;
    background: #e8f5e9;
}

.month-selector-item.active {
    border-color: #007cba;
    background: #007cba;
}

.month-selector-item.active .month-name,
.month-selector-item.active .month-tour-count {
    color: #ffffff;
}

.month-name {
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
}

.month-tour-count {
    font-size: 11px;
    color: #4caf50;
    font-weight: 600;
    margin-top: 2px;
}

.month-selector-item.active .month-tour-count {
    color: rgba(255, 255, 255, 0.9);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    gap: 15px;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: #e0e0e0;
    padding: 4px;
    border-radius: 6px;
}

.view-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.view-toggle-btn.active {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.view-toggle-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #555;
}

.view-toggle-btn.active .dashicons {
    color: #007cba;
}

.calendar-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 10px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px;
    background: #007cba;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: #005a87;
}

.nav-btn .dashicons {
    font-size: 16px;
}

.current-month {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

.calendar-grid {
    margin-bottom: 30px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.weekday {
    text-align: center;
    padding: 10px;
    font-weight: 600;
    font-size: 13px;
    color: #7f8c8d;
    text-transform: uppercase;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
}

.calendar-day.empty {
    border: none;
    background: transparent;
}

.calendar-day.past {
    opacity: 0.4;
    background: #f5f5f5;
}

.calendar-day.today {
    border-color: #007cba;
    background: #e3f2fd;
}

.calendar-day.has-tours {
    cursor: pointer;
    border-color: #4caf50;
    background: #f1f8f4;
}

.calendar-day.has-tours:hover {
    border-color: #2e7d32;
    background: #c8e6c9;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.calendar-day.selected {
    border-color: #007cba;
    background: #007cba;
}

.calendar-day.selected .day-number,
.calendar-day.selected .tour-indicator {
    color: #ffffff;
}

.day-number {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
}

.tour-indicator {
    font-size: 10px;
    color: #4caf50;
    font-weight: 600;
    margin-top: 4px;
    text-align: center;
}

/* Selected Date Tours */
.selected-date-tours {
    margin-top: 40px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.tours-heading {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 20px 0;
    text-align: center;
}

.tours-list {
    display: grid;
    gap: 20px;
}

.tour-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tour-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.tour-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 15px;
}

.tour-card-title {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}

.tour-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #007cba;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.tour-card-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.tour-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 15px;
}

.tour-detail .dashicons {
    color: #007cba;
    font-size: 18px;
}

.tour-card-actions {
    display: flex;
    gap: 12px;
}

.book-now-btn {
    flex: 1;
    padding: 14px 24px;
    background: #4caf50;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.book-now-btn:hover {
    background: #45a049;
    transform: scale(1.02);
    color: #ffffff;
}

.no-tours-message {
    text-align: center;
    padding: 40px 20px;
    color: #7f8c8d;
    font-size: 16px;
}

/* List View Styles */
.calendar-list-view {
    min-height: 200px;
}

.calendar-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-date-group {
    background: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.list-date-header {
    margin: 0;
    padding: 12px 20px;
    background: #007cba;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.list-tours {
    display: flex;
    flex-direction: column;
}

.list-tour-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    gap: 15px;
}

.list-tour-item:last-child {
    border-bottom: none;
}

.list-tour-item:hover {
    background: #f0f8ff;
}

.list-tour-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.list-tour-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}

.list-tour-time {
    font-size: 13px;
    color: #7f8c8d;
}

.list-tour-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-tour-seats {
    font-size: 13px;
    color: #4caf50;
    font-weight: 500;
}

.list-tour-price {
    font-size: 15px;
    font-weight: 600;
    color: #2c3e50;
}

.list-book-btn {
    padding: 8px 16px;
    background: #4caf50;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.list-book-btn:hover {
    background: #45a049;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mccarthys-interactive-calendar {
        padding: 20px 15px;
        margin: 20px auto;
    }

    .calendar-title {
        font-size: 22px;
    }

    /* Month selector responsive */
    .month-selector-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .month-selector-item {
        padding: 8px 4px;
        min-height: 45px;
    }

    .month-name {
        font-size: 12px;
    }

    .month-tour-count {
        font-size: 10px;
    }

    .calendar-controls {
        flex-direction: column;
        gap: 15px;
    }

    .calendar-navigation {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-btn {
        padding: 10px 15px;
        font-size: 13px;
    }

    .current-month {
        font-size: 16px;
        width: 100%;
        text-align: center;
        order: -1;
        margin-bottom: 10px;
    }

    .calendar-days {
        gap: 5px;
    }

    .calendar-day {
        padding: 8px 4px;
    }

    .day-number {
        font-size: 14px;
    }

    .tour-indicator {
        font-size: 9px;
    }

    .tour-card {
        padding: 18px;
    }

    .tour-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tour-card-title {
        font-size: 18px;
    }

    /* List view responsive */
    .list-tour-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .list-tour-meta {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .month-selector-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.mccarthys-tours-list {
    margin: 20px 0;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.tour-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.tour-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tour-card-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.tour-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    color: #333;
}

.tour-number {
    display: inline-block;
    padding: 4px 10px;
    background: #007cba;
    color: #fff;
    border-radius: 4px;
    font-size: 0.85em;
}

.tour-dates {
    margin: 15px 0;
}

.tour-dates span {
    display: block;
    margin: 5px 0;
}

.tour-pricing {
    margin: 15px 0;
}

.tour-price {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
}

.price-amount {
    font-weight: bold;
    color: #007cba;
    font-size: 1.1em;
}

.tour-availability {
    margin: 15px 0;
    padding: 10px;
    background: #f0f8ff;
    border-radius: 4px;
    text-align: center;
}

.available-seats {
    font-weight: bold;
    color: #0a7c14;
}

.tour-card-footer {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #007cba;
    color: #fff;
}

.btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.btn-secondary {
    background: #666;
    color: #fff;
    margin-left: 10px;
}

.btn-secondary:hover {
    background: #444;
    color: #fff;
}

/* Single Tour Styles */
.mccarthys-tour-single {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
}

.tour-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #007cba;
}

.tour-main-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.tour-main-info > div {
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.tour-main-info h3 {
    margin-top: 0;
    color: #007cba;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.pricing-table tr {
    border-bottom: 1px solid #ddd;
}

.pricing-table td {
    padding: 10px 5px;
}

.seats-available {
    font-size: 1.5em;
    color: #0a7c14;
    margin: 15px 0;
}

.tour-itinerary,
.included-tours,
.optional-tours,
.extra-nights,
.tour-hotels {
    margin: 30px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.tour-itinerary h3,
.included-tours h3,
.optional-tours h3,
.extra-nights h3,
.tour-hotels h3 {
    color: #007cba;
    margin-top: 0;
}

.tour-actions {
    margin-top: 30px;
    padding: 20px;
    background: #f0f8ff;
    border-radius: 8px;
    text-align: center;
}

.tours-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
}

.pagination-info {
    font-weight: bold;
}

.mccarthys-tours-error {
    background: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #c62828;
    margin: 20px 0;
}

.mccarthys-tours-message {
    background: #fff3e0;
    color: #e65100;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #e65100;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
    }
    
    .tour-main-info {
        grid-template-columns: 1fr;
    }
}
