.kd-v2-wrapper {
    display: flex;
    flex-direction: column;
}

/* Flex responsive layouts depending on responsive control prefix class */
.kd-v2-grid-cols-1- .kd-v2-wrapper {
    display: flex;
    flex-direction: column;
}

@media (min-width: 1025px) {
    .kd-v2-grid-cols-2- .kd-v2-wrapper {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Year panel default */
.kd-v2-year-panel {
    background-color: #E9FF7D;
    border-radius: 32px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: auto;
}

.kd-v2-year-header {
    width: 100%;
}

.kd-v2-year-title {
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 700;
    color: #1F5F9D;
    margin: 0;
    padding: 0;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.kd-v2-year-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 4px;
    background-color: #1F5F9D;
    border-radius: 2px;
}

/* Trips list */
.kd-v2-trips-list {
    display: flex;
    flex-direction: column;
}

/* Travel ticket-style card */
.kd-v2-card {
    background-color: #FFFFFF;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    box-sizing: border-box;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    overflow: hidden;
}

/* Hover Lift Effect */
@media (hover: hover) {
    .kd-v2-hover-lift-yes .kd-v2-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kd-v2-card {
        transition: none !important;
        transform: none !important;
    }
}

/* Subtle ticket-style notch decoration */
.kd-v2-card-accent {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 40px;
    background-color: #1F5F9D;
    border-radius: 0 4px 4px 0;
}

/* Card inner layout - uses two columns on mobile if space permits */
.kd-v2-card-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
}

.kd-v2-card-left {
    display: flex;
    flex-direction: column;
}

/* Date range design */
.kd-v2-dates {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.kd-v2-date-group {
    display: flex;
    flex-direction: column;
}

.kd-v2-date-main {
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 700;
    color: #1F5F9D;
    line-height: 1.1;
}

.kd-v2-date-sub {
    font-size: clamp(11px, 1.5vw, 13px);
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-top: 2px;
}

.kd-v2-connector {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: #1F5F9D;
    user-select: none;
}

/* Availability panel (Counter) */
.kd-v2-counter-panel {
    background-color: #F4F7F9;
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 90px;
    box-sizing: border-box;
}

.kd-v2-counter-label {
    font-size: 10px;
    font-weight: 700;
    color: #888888;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    white-space: nowrap;
}

.kd-v2-counter-number {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    color: #1F5F9D;
    line-height: 1;
}

/* Sold Out State Styles */
.kd-v2-card-soldout {
    opacity: 0.75;
}

.kd-v2-card-soldout .kd-v2-dates::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 3px;
    background-color: #FF4D4D;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Sold-out Stamp style */
.kd-v2-stamp {
    border: 3px double #FF4D4D;
    color: #FF4D4D;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    transform: rotate(-2deg);
    display: inline-block;
    text-align: center;
    letter-spacing: 0.1em;
    background-color: #FFFFFF;
    box-shadow: 0 0 0 3px #FFFFFF;
}

/* Optional link styling */
.kd-v2-card-link-wrapper {
    display: flex;
}

.kd-v2-card-link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
}

/* Responsiveness adjustments - forced stacking only on extremely narrow screen sizes */
@media (max-width: 320px) {
    .kd-v2-card-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .kd-v2-card-right {
        align-self: flex-start;
    }
    
    .kd-v2-counter-panel {
        align-items: flex-start;
        text-align: left;
        min-width: unset;
        display: inline-flex;
    }
}

@media (max-width: 360px) {
    .kd-v2-year-panel {
        border-radius: 20px;
    }
    .kd-v2-card {
        padding: 16px;
    }
}
