/* evoucher-doitac-detail.css - Stylesheet for E-Voucher Partner Detail Page */

/* Fix header layering */
header, .header-menu {
    position: relative;
    z-index: 1000;
}

.evoucher-detail-page {
    background-color: #fafafa;
    padding-bottom: 60px;
}

/* 1. Banner section styling */
.partner-banner {
    position: relative;
    height: 320px;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    border-radius: 16px;
    margin-top: 32px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(255, 255, 255, 1) 35%,
            rgba(255, 255, 255, 0.95) 45%,
            rgba(255, 255, 255, 0.8) 55%,
            rgba(255, 255, 255, 0) 80%);
    z-index: 1;
}

.partner-banner .ctnr {
    height: 100%;
    z-index: 2;
    position: relative;
}

.banner-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
    padding: 0 24px;
}

.partner-logo-container {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo-white-box {
    background-color: #ffffff;
    border-radius: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    padding: 12px;
    box-sizing: border-box;
}

.logo-helu {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.logo-helu .helu-text {
    font-size: 26px;
    font-weight: 900;
    color: #3aaa35;
    font-style: italic;
    letter-spacing: -0.5px;
}

.logo-helu .food-text {
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: 2.5px;
    margin-top: 4px;
    text-indent: 2.5px;
}

.partner-banner-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.partner-tag {
    background-color: #f2fbf2;
    color: #3aaa35;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    border: 1px solid #e1f5e1;
    letter-spacing: 0.2px;
}

.partner-name {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 6px 0;
    letter-spacing: -0.5px;
}

.partner-desc {
    font-size: 14px;
    color: #475569;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.partner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-item.rating {
    color: #0f172a;
}

.meta-item.rating strong {
    font-weight: 700;
}

.meta-item .star-icon {
    width: 14px;
    height: 14px;
    color: #f59f00;
}

.meta-divider {
    width: 4px;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 50%;
}

.meta-item.usage {
    color: #64748b;
    font-weight: 500;
}

/* 2. Voucher section styling */
.partner-vouchers-sec {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 16px;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1;
}

.section-header .header-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.red-header {
    color: #ca1204;
}

.dark-header {
    color: #0f172a;
    border-bottom: none;
    padding-bottom: 0;
}

.green-header {
    color: #3aaa35;
}

.vouchers-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.voucher-detail-card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    padding: 24px;
    position: relative;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.voucher-detail-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border-color: #e2e8f0;
}

.voucher-detail-left {
    display: flex;
    flex-direction: column;
    width: 140px;
    flex-shrink: 0;
}

.voucher-detail-left .v-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.voucher-detail-left .v-value {
    font-size: 36px;
    font-weight: 800;
    color: #3aaa35;
    line-height: 1;
}

.voucher-detail-divider {
    width: 1px;
    height: 54px;
    border-left: 1px dashed #cbd5e1;
    margin: 0 24px;
    flex-shrink: 0;
}

.voucher-detail-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.voucher-detail-right .v-condition {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.3;
}

.v-expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.v-expiry .clock-icon {
    width: 13px;
    height: 13px;
    color: #94a3b8;
}

/* 3. About section styling */
.partner-about-sec {
    margin-top: 48px;
    margin-bottom: 32px;
}

.about-inner-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.015);
}

.about-desc-col p {
    font-size: 14px;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    text-align: justify;
}

.about-illus-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bento-illustration {
    width: 100%;
    max-width: 240px;
}

.illus-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* 4. Responsive media queries */
@media (max-width: 991px) {
    .partner-banner {
        height: 280px;
        margin-top: 24px;
    }

    .banner-overlay {
        background: linear-gradient(90deg,
                rgba(255, 255, 255, 1) 0%,
                rgba(255, 255, 255, 1) 50%,
                rgba(255, 255, 255, 0.95) 60%,
                rgba(255, 255, 255, 0.8) 70%,
                rgba(255, 255, 255, 0) 90%);
    }

    .partner-name {
        font-size: 24px;
    }

    .about-inner-layout {
        gap: 24px;
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .vouchers-detail-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .about-inner-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .about-illus-col {
        order: -1;
        /* Place illustration above description text on mobile */
    }

    .bento-illustration {
        max-width: 180px;
    }
}

@media (max-width: 576px) {
    .partner-banner {
        height: auto;
        min-height: 220px;
    }

    .banner-overlay {
        background: rgba(255, 255, 255, 0.92);
        /* Semi-transparent full white background overlay on mobile */
    }

    .banner-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 16px;
        gap: 16px;
    }

    .partner-logo-container {
        width: 80px;
        height: 80px;
    }

    .partner-logo-white-box {
        border-radius: 12px;
        padding: 8px;
    }

    .logo-helu .helu-text {
        font-size: 18px;
    }

    .logo-helu .food-text {
        font-size: 10px;
        letter-spacing: 1.5px;
        text-indent: 1.5px;
    }

    .partner-name {
        font-size: 20px;
    }

    .partner-desc {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .partner-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .meta-divider {
        display: none;
    }

    .voucher-detail-card {
        padding: 16px;
    }

    .voucher-detail-left {
        width: 100px;
    }

    .voucher-detail-left .v-value {
        font-size: 28px;
    }

    .voucher-detail-divider {
        margin: 0 16px;
    }
}

/* 4. Food Images swiper section */
.partner-images-sec {
    margin-top: 48px;
}

.food-swiper {
    position: relative;
    padding: 4px;
    overflow: hidden;
}

.food-swiper .swiper-slide {
    height: auto;
}

.food-swiper .swiper-slide a {
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.food-swiper .swiper-slide a:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    border-color: #e2e8f0;
}

.food-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.food-swiper .swiper-button-prev,
.food-swiper .swiper-button-next {
    color: #3aaa35;
    background: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}

.food-swiper .swiper-button-prev:hover,
.food-swiper .swiper-button-next:hover {
    background-color: #3aaa35;
    color: #ffffff;
    border-color: #3aaa35;
    box-shadow: 0 6px 16px rgba(58, 170, 53, 0.25);
}

.food-swiper .swiper-button-prev::after,
.food-swiper .swiper-button-next::after {
    font-size: 16px;
    font-weight: 800;
}

/* 5. Contact & Map section styling */
.partner-contact-sec {
    margin-top: 48px;
    margin-bottom: 32px;
}

.contact-map-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.contact-info-col {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.015);
    padding: 32px;
    box-sizing: border-box;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #f2fbf2;
    color: #3aaa35;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 16px;
    height: 16px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-text .label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-text .value {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    text-decoration: none;
}

.contact-text a.value {
    transition: color 0.2s ease;
}

.contact-text a.value:hover {
    color: #3aaa35;
}

.map-col {
    height: 100%;
}

.map-wrapper {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.015);
    height: 100%;
    min-height: 280px;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

@media (max-width: 768px) {
    .contact-map-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .map-wrapper {
        min-height: 220px;
    }
    
    .map-wrapper iframe {
        min-height: 220px;
    }
}