/*=========================================================
CLASSIFIEDAD.IN
MATRIMONIAL BOOKING
Extends: newspaper-booking.css (variables, cards, buttons, inputs)
=========================================================*/

.mat-hidden{
    display:none !important;
}

.mat-help{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:10px;
    font-size:13px;
    color:#888;
}

.mat-inline-note{
    font-weight:500;
    color:#888;
    margin-left:6px;
}

.mat-price-red{
    color:var(--primary) !important;
}


/*=========================================================
HERO (uses existing .booking-header-content look)
=========================================================*/

.mat-header-content{
    background:linear-gradient(135deg,#e30613,#7a0a29);
}


/*=========================================================
PACKAGE GRID
=========================================================*/

.mat-package-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
    margin-top:14px;
}

.mat-package-card{
    position:relative;
    background:#fff;
    border:2px solid #e9edf3;
    border-radius:18px;
    padding:22px;
    cursor:pointer;
    transition:.25s;
    overflow:hidden;
}

.mat-package-card:hover{
    border-color:var(--primary);
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(0,0,0,.08);
}

.mat-package-card.active{
    border-color:var(--primary);
    background:#fff7f7;
}

.mat-package-card.active::before{
    content:"";
    position:absolute;
    left:0;
    top:0;
    width:5px;
    height:100%;
    background:var(--primary);
}

.mat-package-card .mat-package-check{
    position:absolute;
    top:16px;
    right:16px;
    width:26px;
    height:26px;
    border-radius:50%;
    border:2px solid #d8dde5;
    display:flex;
    align-items:center;
    justify-content:center;
    color:transparent;
    font-size:13px;
    transition:.2s;
    background:#fff;
}

.mat-package-card.active .mat-package-check{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.mat-package-card h4{
    font-size:17px;
    font-weight:800;
    color:#111827;
    margin:0 0 10px;
    padding-right:30px;
}

.mat-package-card .mat-package-price{
    font-size:24px;
    font-weight:800;
    color:var(--primary);
    margin-bottom:8px;
}

.mat-package-card .mat-package-meta{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    font-size:12px;
    color:#6b7280;
}

.mat-package-card .mat-package-meta span{
    background:#f3f4f6;
    border-radius:30px;
    padding:4px 10px;
}


/*=========================================================
PACKAGE DETAIL BOX
=========================================================*/

.mat-package-info{
    margin-top:26px;
    background:#fafbfd;
    border:1px solid #edf0f5;
    border-radius:20px;
    padding:24px;
}

.mat-package-info-label{
    font-size:12px;
    color:#888;
    margin-bottom:4px;
}

.mat-package-info-head h4{
    font-size:20px;
    font-weight:800;
    margin:0;
    color:#111827;
}

.mat-package-stat-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:14px;
    margin:18px 0;
}

.mat-package-stat{
    background:#fff;
    border:1px solid #edf0f5;
    border-radius:14px;
    padding:14px;
    text-align:center;
}

.mat-package-stat-label{
    font-size:12px;
    color:#888;
    margin-bottom:6px;
}

.mat-package-stat-value{
    font-size:19px;
    font-weight:800;
    color:#111827;
}

.mat-package-detail-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:14px;
}

.mat-package-detail-box{
    background:#fff;
    border:1px solid #edf0f5;
    border-radius:14px;
    padding:16px;
}

.mat-package-detail-title{
    font-size:13px;
    font-weight:700;
    color:#374151;
    margin-bottom:8px;
    display:flex;
    align-items:center;
    gap:8px;
}

.mat-package-detail-title i{
    color:var(--primary);
}

.mat-package-detail-box > div:last-child{
    font-size:13.5px;
    color:#555;
    line-height:1.7;
}


/*=========================================================
EMPTY STATE
=========================================================*/

.mat-empty-state{
    text-align:center;
    padding:50px 20px;
    color:#999;
}

.mat-empty-state i{
    font-size:40px;
    display:block;
    margin-bottom:14px;
    color:#d8dde5;
}


/*=========================================================
HEADER TRIGGER BUTTON
=========================================================*/

.mat-header-trigger{
    width:100%;
    height:54px;
    border:1px solid #d8dde5;
    border-radius:14px;
    background:#fff;
    padding:0 18px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-size:15px;
    color:#374151;
    cursor:pointer;
    transition:.25s;
}

.mat-header-trigger:hover{
    border-color:var(--primary);
}

.mat-header-trigger i{
    color:#999;
}

.mat-header-path{
    margin-top:10px;
    background:#fff5f5;
    border:1px solid rgba(227,6,19,.15);
    color:var(--primary);
    border-radius:12px;
    padding:10px 14px;
    font-size:13px;
    font-weight:600;
}


/*=========================================================
HEADER MODAL
=========================================================*/

.mat-modal-overlay{
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.6);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:99999;
    padding:20px;
}

.mat-modal-overlay.show{
    display:flex;
}

.mat-modal-popup{
    width:100%;
    max-width:900px;
    max-height:85vh;
    background:#fff;
    border-radius:22px;
    overflow:hidden;
    display:flex;
    flex-direction:column;
    box-shadow:0 30px 80px rgba(0,0,0,.25);
}

.mat-modal-top{
    background:linear-gradient(135deg,#e30613,#9b000b);
    color:#fff;
    padding:20px 24px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    font-weight:700;
    font-size:16px;
}

.mat-modal-top i{
    margin-right:8px;
}

.mat-modal-top button{
    border:none;
    background:rgba(255,255,255,.15);
    color:#fff;
    width:34px;
    height:34px;
    border-radius:10px;
    font-size:14px;
}

.mat-modal-search{
    padding:18px 24px 0;
}

.mat-modal-body{
    padding:20px 24px 24px;
    overflow-y:auto;
    flex:1;
}

.mat-header-group{
    margin-bottom:16px;
    border:1px solid #edf0f5;
    border-radius:16px;
    padding:16px;
    background:#fafbfd;
}

.mat-header-group-title{
    font-weight:700;
    color:var(--primary);
    margin-bottom:10px;
}

.mat-header-node{
    margin-bottom:6px;
}

.mat-header-node-label{
    display:flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    font-weight:600;
    color:#1f2937;
    padding:8px 10px;
    border-radius:10px;
    transition:.2s;
}

.mat-header-node-label:hover{
    background:#f3f4f6;
}

.mat-header-node-icon{
    width:20px;
    height:20px;
    border-radius:6px;
    background:#e5e7eb;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    flex-shrink:0;
}

.mat-header-children{
    margin-left:22px;
    display:none;
}

.mat-header-children.open{
    display:block;
}

.mat-header-child{
    cursor:pointer;
    padding:8px 10px 8px 24px;
    border-radius:10px;
    color:#4b5563;
    font-size:14px;
    position:relative;
    transition:.2s;
}

.mat-header-child:hover{
    background:#fff5f5;
    color:var(--primary);
}

.mat-header-child::before{
    content:"";
    position:absolute;
    left:6px;
    top:16px;
    width:6px;
    height:6px;
    border-radius:50%;
    background:#d8dde5;
}


/*=========================================================
SUNDAY DATE PICKER
=========================================================*/

.mat-sunday-scroll{
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    gap:10px;
    padding-bottom:10px;
    scrollbar-width:thin;
}

.mat-sunday-pill{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
    border:1px solid #d8dde5;
    background:#fff;
    border-radius:40px;
    padding:10px 18px;
    font-size:14px;
    font-weight:600;
    color:#374151;
    cursor:pointer;
    transition:.2s;
    white-space:nowrap;
}

.mat-sunday-pill:hover{
    border-color:var(--primary);
}

.mat-sunday-pill.active{
    background:var(--primary);
    border-color:var(--primary);
    color:#fff;
}

.mat-sunday-pill.disabled{
    opacity:.45;
    cursor:not-allowed;
}

.mat-selected-dates{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:12px;
}

.mat-selected-dates .mat-date-chip{
    background:#111827;
    color:#fff;
    border-radius:30px;
    padding:6px 14px;
    font-size:13px;
    font-weight:600;
}


/*=========================================================
LIVE PRICE BOX (Step 3)
=========================================================*/

.mat-price-box{
    margin-top:20px;
    background:#111827;
    border-radius:20px;
    padding:22px 24px;
}

.mat-price-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
}

.mat-price-label{
    color:#9ca3af;
    font-size:12px;
    margin-bottom:6px;
}

.mat-price-breakup{
    color:#e5e7eb;
    font-size:13px;
    line-height:1.6;
}

.mat-price-pill{
    background:var(--primary);
    color:#fff;
    font-size:22px;
    font-weight:800;
    padding:12px 20px;
    border-radius:14px;
    white-space:nowrap;
}

.mat-confirm-checkbox{
    margin-top:18px;
}


/*=========================================================
STICKY FOOTER BAR
(booking-footer-left/center/right classes are already styled
in newspaper-booking.css, but the position:fixed / flex
container rules there are scoped to #bookingFooter, so we
replicate them here against our own #matBookingFooter id)
=========================================================*/

#matBookingFooter{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:999;
    background:#fff;
    border-top:1px solid #ececec;
    box-shadow:0 -10px 30px rgba(0,0,0,.08);
    padding:16px 30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}

@media(max-width:1200px){
    #matBookingFooter{
        padding:15px 20px;
    }
}

@media(max-width:992px){
    #matBookingFooter .booking-footer-center{
        display:none;
    }
    #matBookingFooter .booking-footer-right{
        width:100%;
        justify-content:flex-end;
    }
}

@media(max-width:768px){
    #matBookingFooter{
        padding:12px 15px;
    }
    #matBookingFooter .booking-footer-left{
        display:none;
    }
    #matBookingFooter .booking-footer-right{
        width:100%;
        display:flex;
        gap:10px;
    }
    #matBookingFooter .booking-footer-right .booking-btn{
        height:48px;
        padding:0 18px;
        font-size:14px;
        flex:1;
    }
}

@media print{
    #matBookingFooter{
        display:none;
    }
}


/*=========================================================
FOOTER PRICE
=========================================================*/

#matFooterPrice{
    font-weight:700;
    color:#111827;
}

#matFooterPrice .mat-footer-price-value{
    color:var(--primary);
}


/*=========================================================
TABLET
=========================================================*/

@media(max-width:992px){

    .mat-package-grid{
        grid-template-columns:1fr 1fr;
    }

    .mat-package-stat-row,
    .mat-package-detail-row{
        grid-template-columns:1fr;
    }

}


/*=========================================================
MOBILE
=========================================================*/

@media(max-width:768px){

    .mat-package-grid{
        grid-template-columns:1fr;
    }

    .mat-price-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .mat-price-pill{
        width:100%;
        text-align:center;
    }

    .mat-modal-popup{
        max-height:92vh;
        border-radius:18px;
    }

    .mat-modal-top{
        padding:16px 18px;
        font-size:14px;
    }

    .mat-modal-search{
        padding:14px 18px 0;
    }

    .mat-modal-body{
        padding:14px 18px 18px;
    }

    .mat-header-trigger{
        height:50px;
        font-size:14px;
    }

    .mat-sunday-pill{
        padding:9px 14px;
        font-size:13px;
    }

}


/*=========================================================
SMALL MOBILE
=========================================================*/

@media(max-width:480px){

    .mat-package-card{
        padding:16px;
    }

    .mat-package-card .mat-package-price{
        font-size:20px;
    }

    .mat-price-box{
        padding:16px;
    }

    .mat-price-pill{
        font-size:18px;
        padding:10px 16px;
    }

}
