/* =============================================
   GALLERY GRID (Airbnb Style)
   ============================================= */
.wcdt-gallery-grid {
    display: grid;
    gap: 8px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    background: #f1f5f9;
}

/* Image Count Grid Formats */
.wcdt-gallery-count-1 {
    grid-template-columns: 1fr;
    height: 380px;
}
.wcdt-gallery-count-2 {
    grid-template-columns: 1fr 1fr;
    height: 380px;
}
.wcdt-gallery-count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 186px 186px;
    height: 380px;
}
.wcdt-gallery-count-3 .wcdt-gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.wcdt-gallery-count-3 .wcdt-gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.wcdt-gallery-count-3 .wcdt-gallery-item:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }

.wcdt-gallery-count-4 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 186px 186px;
    height: 380px;
}
.wcdt-gallery-count-4 .wcdt-gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.wcdt-gallery-count-4 .wcdt-gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.wcdt-gallery-count-4 .wcdt-gallery-item:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.wcdt-gallery-count-4 .wcdt-gallery-item:nth-child(4) { grid-column: 2 / 4; grid-row: 2 / 3; }

.wcdt-gallery-count-5,
.wcdt-gallery-count-6 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 186px 186px;
    height: 380px;
}
.wcdt-gallery-count-5 .wcdt-gallery-item:nth-child(1),
.wcdt-gallery-count-6 .wcdt-gallery-item:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
.wcdt-gallery-count-5 .wcdt-gallery-item:nth-child(2),
.wcdt-gallery-count-6 .wcdt-gallery-item:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
.wcdt-gallery-count-5 .wcdt-gallery-item:nth-child(3),
.wcdt-gallery-count-6 .wcdt-gallery-item:nth-child(3) { grid-column: 3 / 4; grid-row: 1 / 2; }
.wcdt-gallery-count-5 .wcdt-gallery-item:nth-child(4),
.wcdt-gallery-count-6 .wcdt-gallery-item:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; }
.wcdt-gallery-count-5 .wcdt-gallery-item:nth-child(5),
.wcdt-gallery-count-6 .wcdt-gallery-item:nth-child(5) { grid-column: 3 / 4; grid-row: 2 / 3; }
.wcdt-gallery-count-6 .wcdt-gallery-item:nth-child(6) { display: none; }

.wcdt-gallery-item {
    overflow: hidden;
    position: relative;
}

.wcdt-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.4s ease;
    cursor: pointer;
}

/* Dim effect on hover */
.wcdt-gallery-grid:hover .wcdt-gallery-item img {
    opacity: 0.82;
}

.wcdt-gallery-grid .wcdt-gallery-item img:hover {
    opacity: 1 !important;
    transform: scale(1.025);
}

.wcdt-gallery-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.wcdt-gallery-btn:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


/* =============================================
   LIGHTBOX
   ============================================= */
.wcdt-lightbox-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.92);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wcdt-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.wcdt-lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 6px;
}

.wcdt-lightbox-close {
    position: fixed;
    top: 20px; right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
}

.wcdt-lightbox-prev,
.wcdt-lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.wcdt-lightbox-prev:hover,
.wcdt-lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.wcdt-lightbox-prev { left: 20px; }
.wcdt-lightbox-next { right: 20px; }

/* =============================================
   TWO-COLUMN LAYOUT
   ============================================= */
.wcdt-content-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

.wcdt-product-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 18px 0;
    color: #1a1a1a !important;
    line-height: 1.3;
}

.wcdt-product-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

.wcdt-product-desc p {
    margin-bottom: 14px;
}

.wcdt-calendar-col {
    position: sticky;
    top: 100px;
}

/* Responsive */
@media (max-width: 900px) {
    .wcdt-content-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .wcdt-gallery-grid {
        grid-template-columns: 1fr 1fr;
        max-height: 300px;
    }
    .wcdt-gallery-main {
        grid-row: auto;
        grid-column: 1 / -1;
    }
    .wcdt-calendar-col {
        position: static;
    }
}

@media (max-width: 500px) {
    .wcdt-gallery-grid {
        grid-template-columns: 1fr;
        max-height: 240px;
    }
    .wcdt-gallery-item:not(.wcdt-gallery-main) {
        display: none;
    }
    .wcdt-product-title {
        font-size: 22px;
    }
}

/* =============================================
   TICKET CALENDAR WIDGET
   ============================================= */
.wcdt-widget-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    overflow: hidden;
}

.wcdt-header {
    background: var(--wcdt-primary-color) !important;
    color: #fff !important;
    padding: 15px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 16px;
}

.wcdt-header svg {
    margin-right: 10px;
    fill: #fff;
}

.wcdt-month-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
}

.wcdt-month-btn {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: none !important;
    padding: 5px 15px !important;
    cursor: pointer !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: background-color 0.2s !important;
}

.wcdt-month-btn:hover:not(.active) {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

.wcdt-month-btn.active {
    background: var(--wcdt-primary-color) !important;
    color: #fff !important;
}

.wcdt-calendar {
    padding: 15px;
}

.wcdt-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

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

.wcdt-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    position: relative;
    border: 1px solid transparent;
}

.wcdt-day:hover:not(.disabled) {
    background: #f0f0f0;
}

.wcdt-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.wcdt-day.active {
    background: color-mix(in srgb, var(--wcdt-primary-color) 10%, #fff) !important;
    border-color: var(--wcdt-primary-color) !important;
    color: var(--wcdt-primary-color) !important;
}

.wcdt-day .wcdt-price {
    font-size: 10px;
    color: #666;
}

.wcdt-day.active .wcdt-price {
    color: var(--wcdt-primary-color) !important;
    font-weight: bold !important;
}

.wcdt-day.status-best_price {
    border-bottom: 2px solid var(--wcdt-primary-color) !important;
}

.wcdt-day.status-low_availability {
    border-bottom: 2px solid var(--wcdt-primary-color) !important;
}

.wcdt-legends {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 11px;
    color: #666;
}

.wcdt-legend-item {
    display: flex;
    align-items: center;
}

.wcdt-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.wcdt-legend-color.best { background: var(--wcdt-primary-color) !important; }
.wcdt-legend-color.low { background: var(--wcdt-primary-color) !important; }

.wcdt-time-selector {
    display: flex;
    justify-content: center;
    padding: 15px;
    border-top: 1px solid #eee;
}

.wcdt-time-btn {
    border: 1px solid var(--wcdt-primary-color) !important;
    background: #fff !important;
    color: var(--wcdt-primary-color) !important;
    padding: 8px 30px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.wcdt-ticket-types {
    display: flex;
    border-top: 1px solid #eee;
}

.wcdt-type-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    border: none;
    background: #fff;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-bottom: 2px solid transparent;
}

.wcdt-type-btn.active {
    color: var(--wcdt-primary-color) !important;
    border-bottom-color: var(--wcdt-primary-color) !important;
}

.wcdt-selection-area {
    padding: 20px 15px;
    background: color-mix(in srgb, var(--wcdt-primary-color) 5%, #fff) !important;
    border-top: 1px solid color-mix(in srgb, var(--wcdt-primary-color) 15%, #fff) !important;
}

.wcdt-selection-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.wcdt-section-title {
    font-weight: bold;
    font-size: 14px;
}

.wcdt-promo-badge {
    color: var(--wcdt-primary-color) !important;
    font-size: 12px;
    display: block;
}

.wcdt-section-price {
    font-weight: bold;
}

.wcdt-qty-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.wcdt-qty-btn {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: none !important;
    background: var(--wcdt-primary-color) !important;
    color: #fff !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.wcdt-qty-btn.minus {
    background: #eee !important;
    color: #333 !important;
}

.wcdt-qty-display {
    font-size: 16px;
    font-weight: bold;
}

.wcdt-submit-btn {
    width: 100% !important;
    border: none !important;
    background: var(--wcdt-primary-color) !important;
    color: #fff !important;
    padding: 15px !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-top: 10px !important;
    transition: opacity 0.2s !important;
    box-shadow: none !important;
}

.wcdt-submit-btn:hover {
    opacity: 0.9 !important;
}

.wcdt-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.wcdt-tiers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wcdt-tier-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 16px 12px;
    background: #fff;
    border: none;
    border-bottom: 1px dashed #e2e8f0;
    transition: all 0.2s;
}

.wcdt-tier-row:last-child {
    border-bottom: none;
}

.wcdt-tier-active {
    background: color-mix(in srgb, var(--wcdt-primary-color) 8%, #fff) !important;
}

.wcdt-tier-deactivated {
    opacity: 0.55;
    background: #fff;
}

.wcdt-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wcdt-radio.active {
    border-color: var(--wcdt-primary-color) !important;
}

.wcdt-radio-inner {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wcdt-primary-color) !important;
}

.wcdt-tier-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    margin-left: 12px;
}

.wcdt-tier-info {
    display: flex;
    flex-direction: column;
}

.wcdt-tier-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 3px;
}

.wcdt-tier-active .wcdt-tier-name {
    color: #1e293b !important;
}

.wcdt-tier-stock {
    font-size: 12px;
    color: #64748b;
}

.wcdt-tier-price {
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
}

.wcdt-tier-active .wcdt-tier-price {
    color: var(--wcdt-primary-color) !important;
    font-size: 16px;
}

.wcdt-tier-status-sold {
    font-size: 10px;
    font-weight: 600;
    color: #ef4444;
    text-transform: uppercase;
}

.wcdt-tier-status-upcoming {
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
}

