/* =========================================================
   Interactive Tour Calendar Modal Styles
   ========================================================= */

.mototravel-calendar-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mototravel-calendar-modal.is-active {
    display: flex;
    opacity: 1;
}

.mototravel-calendar-modal__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 10, 40, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mototravel-calendar-modal__container {
    position: relative;
    width: 90%;
    max-width: 980px;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 64px rgba(0, 10, 40, 0.16);
    overflow: hidden;
    z-index: 2;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.mototravel-calendar-modal.is-active .mototravel-calendar-modal__container {
    transform: translateY(0);
}

.mototravel-calendar-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #9292A5;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mototravel-calendar-modal__close:hover {
    color: #e41b25;
    transform: scale(1.15);
}

.mototravel-calendar-modal__layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    height: 100%;
    max-height: 90vh;
    overflow: hidden;
}

/* Left Column: Calendar Main */
.mototravel-calendar-modal__main {
    padding: 32px;
    overflow-y: auto;
    background: #ffffff;
}

.mototravel-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 0 8px;
}

.mototravel-calendar-title {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #001450;
}

.mototravel-calendar-nav {
    background: #f4f6fc;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #001450;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mototravel-calendar-nav:hover {
    background: #001450;
    color: #ffffff;
}

.mototravel-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 12px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #9292A5;
    text-transform: uppercase;
}

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

.mototravel-calendar-day {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-family: Ubuntu, sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #0d1b2d;
    cursor: pointer;
    background: none;
    border: none;
    transition: all 0.2s ease;
}

.mototravel-calendar-day:hover {
    background: #f4f6fc;
}

.mototravel-calendar-day.empty {
    cursor: default;
    background: none !important;
}

.mototravel-calendar-day.today {
    color: #001450;
    font-weight: 700;
}

.mototravel-calendar-day.today::after {
    content: "";
    position: absolute;
    bottom: 6px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #001450;
}

/* Tour schedule styling */
.mototravel-calendar-day.has-tour {
    background: #fff0f1;
    color: #e41b25;
    font-weight: 700;
}

.mototravel-calendar-day.has-tour:hover {
    background: #ffe3e5;
}

.mototravel-calendar-day.has-tour.is-selected {
    background: #e41b25 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(228, 27, 37, 0.3);
}

.mototravel-calendar-day.has-tour.is-selected::after {
    background: #ffffff !important;
}

.mototravel-calendar-day.is-selected {
    background: #001450;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 20, 80, 0.2);
}

.mototravel-calendar-day.is-selected::after {
    background: #ffffff;
}

/* Indicators inside cells */
.mototravel-calendar-day__indicators {
    position: absolute;
    bottom: 6px;
    display: flex;
    gap: 3px;
    justify-content: center;
}

.mototravel-calendar-day__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #e41b25;
}

.mototravel-calendar-day.is-selected .mototravel-calendar-day__dot {
    background: #ffffff;
}

/* Right Column: Side Detail Panel */
.mototravel-calendar-modal__side {
    background: #f8fafc;
    border-left: 1px solid #eef2f6;
    padding: 32px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mototravel-calendar-side__header {
    margin-bottom: 20px;
}

.mototravel-calendar-side__title {
    margin: 0 0 6px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: #9292A5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mototravel-calendar-side__subtitle {
    margin: 0;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #001450;
}

.mototravel-calendar-card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

/* Feature/Tour card item in side panel */
.mototravel-calendar-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 10, 40, 0.02);
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mototravel-calendar-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 10, 40, 0.05);
}

.mototravel-calendar-card__img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1.8;
    overflow: hidden;
    background: #eef2f6;
}

.mototravel-calendar-card__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mototravel-calendar-card__badge-container {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.mototravel-calendar-card__badge {
    padding: 3px 8px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 4px;
    color: #ffffff;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mototravel-calendar-card__badge--closest { background: #001450; }
.mototravel-calendar-card__badge--soldout { background: #e41b25; }
.mototravel-calendar-card__badge--fewspots { background: #ff7a00; }
.mototravel-calendar-card__badge--available { background: #10b981; }

.mototravel-calendar-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mototravel-calendar-card__title {
    margin: 0 0 10px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    color: #0d1b2d;
}

.mototravel-calendar-card__dates {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: Ubuntu, sans-serif;
    font-size: 13px;
    color: #001450;
    font-weight: 500;
    margin-bottom: 16px;
}

.mototravel-calendar-card__dates iconify-icon {
    font-size: 16px;
    color: #9292A5;
}

.mototravel-calendar-card__btn {
    margin-top: auto;
    min-height: 40px;
    background: #e41b25;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    letter-spacing: 0.5px;
}

.mototravel-calendar-card__btn:hover {
    background: #001450;
}

.mototravel-calendar-side__reset-link {
    margin-top: 16px;
    align-self: center;
    font-family: Montserrat, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #e41b25;
    text-decoration: underline;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.mototravel-calendar-side__reset-link:hover {
    color: #001450;
}

.mototravel-calendar-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    flex-grow: 1;
    color: #9292A5;
}

.mototravel-calendar-empty-state iconify-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.mototravel-calendar-empty-state p {
    margin: 0;
    font-family: Ubuntu, sans-serif;
    font-size: 14px;
}

/* =========================================================
   Responsive Stacking Layout
   ========================================================= */

@media (max-width: 768px) {
    .mototravel-calendar-modal__container {
        width: 95%;
        max-height: 85vh;
        height: auto;
    }
    
    .mototravel-calendar-modal__layout {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .mototravel-calendar-modal__main {
        padding: 24px;
        overflow-y: visible;
    }

    .mototravel-calendar-modal__side {
        border-left: none;
        border-top: 1px solid #eef2f6;
        padding: 24px;
        overflow-y: visible;
        background: #ffffff;
    }
}
