/* 
  Styles for DCF Ticket Card 
  Used in index_dcf.html, index_home_2.html, and dcf_eventiva_option.html
*/

.dtc-card {
    display: flex;
    flex-direction: row;
    /* background-color: #EFDDB3; */
    /* Beige */
    /* border: 1.5px solid #1E1E1E;
    border-radius: 16px; */
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-family: 'DM Sans', sans-serif;
}

.dtc-info-section {
    flex: 1;
    display: flex;
    flex-direction: row;
    padding: 16px;
    gap: 20px;
    /* Per kartu bisa dioverride lewat --dtc-info-bg (diisi dari
       TicketProduct.card_bg_color). Tanpa itu, warna default di bawah. */
    background-color: var(--dtc-info-bg, #EFDDB3);
    border-radius: 16px;
    border: 1.5px solid #1E1E1E;
}

.dtc-image-wrap {
    /* flex: 0 0 160px; */
    /* height: 160px; */
    border: 1.5px solid #1E1E1E;
    border-radius: 12px;
    overflow: hidden;
    background-color: #D3CEC4;
    max-width: 175px;
    max-height: 175px;
    width: 100%;
}

.dtc-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.dtc-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.dtc-text-area {
    margin-bottom: 12px;
}

.dtc-title {
    margin: 0;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.9rem, 2vw, 58px);
    font-weight: 700;
    color: #1E1E1E;
    line-height: 32px;
}

.dtc-title small {
    font-size: 50%;
    opacity: 0.8;
}

.dtc-subtitle {
    margin: 6px 0 10px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(0.9rem, 1.5vw, 58px);
    font-weight: 500;
    color: #1E1E1E;
    line-height: 1.1;
}

.dtc-description {
    margin: 0;
    margin-bottom: 0px !important;
    font-size: clamp(0.9rem, 1.3vw, 58px);
    color: #4A4A4A;
    line-height: 1.4;
    max-width: 90%;
    font-family: "Cormorant Garamond", serif;
}

.dtc-info-bottom {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dtc-stock-badge {
    background-color: #6E857C;
    color: #efddb3;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dtc-coming-soon {
    background-color: #4A4A4A;
    color: #FFF;
}



.dtc-action-section {
    flex: 0 0 260px;
    background-color: #6E857C;
    border-left: 1.5px solid #1E1E1E;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    border: 1.5px solid #1E1E1E;
    border-radius: 16px;
}

.dtc-price-label {
    color: #EFDDB3;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 24px;
    margin-bottom: 4px;
}

.dtc-price-before {
    color: rgba(239, 221, 179, 0.6);
    text-decoration: line-through;
    font-size: 0.85rem;
    font-weight: 400;
}

.dtc-price-main {
    color: #FFC107;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    margin-top: -2px;
}

.dtc-currency {
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: 6px;
}

.dtc-amount {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.dtc-amount small {
    font-size: 1rem;
    font-weight: 700;
}

.dtc-btn-wrapper {
    width: 100%;
}

.dtc-btn-book {
    display: block;
    width: 100%;
    background-color: #EFDDB3;
    color: #1E1E1E;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 0;
    border-radius: 24px;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: transform 0.2s, filter 0.2s;
    border: none;
    cursor: pointer;
}

.dtc-btn-book:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    color: #1E1E1E;
}

.dtc-btn-book:disabled,
.dtc-btn-book.is-disabled,
.dtc-btn-book[aria-disabled="true"] {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    filter: grayscale(0.35);
}

.dtc-btn-book.is-disabled:hover,
.dtc-btn-book[aria-disabled="true"]:hover {
    color: #1E1E1E;
    transform: none;
    filter: grayscale(0.35);
}

.dtc-mobile-only {
    display: none;
}

/* --- Mobile Styles --- */
@media (max-width: 767.98px) {
    .dtc-card {
        flex-direction: column;
        border-radius: 12px;
    }

    .dtc-info-section {
        padding: 16px;
        gap: 16px;
    }

    .dtc-image-wrap {
        border-radius: 8px;
        max-width: 100px;
        height: auto;
        max-height: 250px;
    }

    .dtc-title {
        font-size: clamp(1.3rem, 2vw, 58px);
    }

    .dtc-subtitle {
        font-size: 1.15rem;
        margin: 4px 0 6px;
    }

    .dtc-description {
        line-height: 1.1;
    }

    .dtc-price-before {
        font-size: 0.7rem;
    }

    .dtc-desktop-only {
        display: none !important;
    }

    .dtc-price-label {
        font-size: 14px;
    }

    .dtc-mobile-only {
        display: block;
    }

    .dtc-stock-badge {
        background-color: #FFC107;
        color: #292929;
        padding: 2px 8px;
        font-size: 0.6rem;
    }

    .dtc-action-section {
        flex: auto;
        flex-direction: row;
        border-left: none;
        border-top: 1.5px solid #1E1E1E;
        padding: 16px;
        align-items: center;
    }

    .dtc-price-area {
        flex: 1;
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .dtc-price-main {
        justify-content: flex-start;
    }

    .dtc-amount {
        font-size: 2rem;
    }

    .dtc-mobile-controls {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-end;
        gap: 18px;
    }

    .dtc-bottom-row {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        justify-content: flex-end;
    }

    .dtc-title {
        line-height: 22px;
    }



    .dtc-btn-book {
        width: auto;
        padding: 4px 16px;
        font-size: 1rem;
    }
}
