:root{
    --primary:#2563EB;
    --primary-dark:#1D4ED8;
    --primary-light:#DBEAFE;
    --success:#16A34A;
    --warning:#F59E0B;
    --danger:#DC2626;
    --bg:#F8FAFC;
    --card:#FFFFFF;
    --border:#E2E8F0;
    --dark:#0F172A;
    --text:#64748B;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

ap_body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--dark);
}

.ap_container{
    max-width:1700px;
    margin:auto;
    padding:40px;
    padding-top: 50px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;

}

.ap_hero{
    background:linear-gradient(135deg,#2563EB,#1D4ED8);
    color:white;
    padding:50px;
    border-radius:30px;
    margin-bottom:25px;
}

.ap_hero-top{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
gap:20px;
}

.ap_hero h1{
    font-size:48px;
    margin-bottom:15px;
}

.ap_hero p{
    max-width:800px;
    opacity:.95;
    font-size:18px;
}

.ap_hero-actions{
display:flex;
gap:12px;
flex-wrap:wrap;
margin-top:25px;
}

.ap_hero-stats{
    display:flex;
    gap:40px;
    flex-wrap:wrap;
    margin-top:30px;
}

.ap_hero-stat strong{
    display:block;
    font-size:30px;
}

.ap_breadcrumb {
    color: #CBD5E1;
    margin-bottom: 25px;
    font-size: 14px;
}

.ap_breadcrumb a{
    color: #CBD5E1;
}



.ap_quick-filters,
.ap_property-filters,
.ap_category-filters{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:15px;
    margin-bottom:20px;
}

.ap_quick-filter,
.ap_property-filter,
.ap_category-filter{
    border:none;
    background:white;
    border-radius:20px;
    border:1px solid var(--border);
    padding:18px 22px;
    text-align:left;
    cursor:pointer;
    transition:.2s;
    box-shadow:0 8px 20px rgba(15,23,42,.05);
}

.ap_quick-filter:hover,
.ap_property-filter:hover,
.ap_category-filter:hover{
    transform:translateY(-2px);
}

.ap_quick-filter strong,
.ap_property-filter strong,
.ap_category-filter strong{
    display:block;
    font-size:26px;
    color:var(--primary);
}

.ap_quick-filter small,
.ap_property-filter small,
.ap_category-filter small{
    color:var(--text);
}

.ap_active{
    background:var(--primary);
    color:white;
}

.ap_active strong,
.ap_active small{
    color:white;
}

.ap_kpi-grid{
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:20px;
    margin:30px 0;
}

.ap_kpi{
    background:white;
    border-radius:24px;
    padding:25px;
    text-align:center;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.ap_kpi-value{
    font-size:34px;
    color:var(--primary);
    font-weight:800;
}

.ap_layout{
    display:grid;
    grid-template-columns:3fr 1fr;
    gap:30px;
}

.ap_two-col{
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
}

.ap_journey{
display:flex;
gap:15px;
flex-wrap:wrap;
justify-content:space-between;
}

.ap_journey-step{
flex:1;
min-width:120px;
padding:16px;
border-radius:16px;
background:#F8FAFC;
border:1px solid var(--border);
text-align:center;
}

.ap_journey-step.active{
background:#2563EB;
color:white;
}

.ap_status-pill{
padding:10px 16px;
border-radius:999px;
background:#DCFCE7;
color:#166534;
font-weight:600;
}

.ap_map{
height:350px;
border-radius:20px;
overflow:hidden;
background:#E2E8F0;
}

.property-map-card{
    width:100%;
    height:100%;
}

#appointmentMap{
    width:100%;
    height:400px;
    min-height:300px;
    border-radius:20px;
    overflow:hidden;
    border:1px solid #E2E8F0;
}

.ap_info-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:15px;
}

.ap_info-card{
background:#F8FAFC;
border:1px solid var(--border);
border-radius:16px;
padding:18px;
}

.ap_record-grid{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.ap_record-card{
border:1px solid var(--border);
border-radius:18px;
padding:20px;
transition:.2s;
cursor:pointer;
}

.ap_record-card:hover{
transform:translateY(-2px);
box-shadow:0 8px 20px rgba(15,23,42,.08);
}


.ap_card{
    background:white;
    border-radius:28px;
    padding:30px;
    margin-bottom:30px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.ap_card h2{
    margin-bottom:25px;
}

.ap_view-switch{
    display:flex;
    gap:12px;
    margin-bottom:20px;
}

.ap_view-switch button{
    border:none;
    background:#F1F5F9;
    padding:10px 16px;
    border-radius:12px;
    cursor:pointer;
}

.ap_view-switch .selected{
    background:var(--primary);
    color:white;
}

.ap_calendar{
    min-height:450px;
    background:#F8FAFC;
    border-radius:20px;
    border:1px solid var(--border);
    padding:20px;
}

.ap_calendar-grid{
    display:grid;
    grid-template-columns:repeat(7,1fr);
    gap:10px;
}

.ap_day{
    background:white;
    min-height:100px;
    border-radius:12px;
    border:1px solid var(--border);
    padding:10px;
}

.ap_event{
    margin-top:8px;
    padding:6px;
    border-radius:8px;
    font-size:12px;
    background:#DBEAFE;
}

.ap_timeline{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.ap_timeline-card{
    border:1px solid var(--border);
    border-radius:20px;
    padding:25px;
}

.ap_timeline-top{
    display:flex;
    justify-content:space-between;
    margin-bottom:15px;
}

.ap_status{
    padding:8px 12px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
}

.ap_confirmed{
    background:#DCFCE7;
    color:#166534;
}

.ap_pending{
    background:#FEF3C7;
    color:#92400E;
}

.ap_appointment-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:20px;
}

.ap_info{
    background:#F8FAFC;
    border:1px solid var(--border);
    border-radius:12px;
    padding:15px;
}

.ap_actions{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    margin-top:20px;
}

.ap_btn{
    text-decoration:none;
    padding:12px 18px;
    border-radius:12px;
    font-weight:600;
}

.ap_btn-primary{
    #background:var(--primary);
    background: rgba(255, 255, 255, .15);
    color:white;
}

.ap_btn-primary2{
    background:var(--primary);
    color:white;
}


.ap_btn-secondary{
    background:#F1F5F9;
    color:#0F172A;
}

.ap_message{
margin-bottom:18px;
padding:16px;
border-radius:16px;
background:#F8FAFC;
}

.ap_message.provider{
border-left:4px solid #2563EB;
}

.ap_message.customer{
border-left:4px solid #16A34A;
}

.ap_timeline{
display:flex;
flex-direction:column;
gap:16px;
}

.ap_timeline-item{
padding-left:20px;
border-left:3px solid #DBEAFE;
}


.ap_sidebar-card{
    background:white;
    border-radius:24px;
    padding:25px;
    margin-bottom:25px;
    box-shadow:0 10px 30px rgba(15,23,42,.08);
}

.ap_sidebar-card h3{
    margin-bottom:15px;
}

.ap_countdown{
font-size:42px;
font-weight:800;
color:#2563EB;
text-align:center;
}

.ap_action-btn{
display:block;
width:100%;
padding:12px;
margin-top:10px;
border-radius:12px;
text-decoration:none;
text-align:center;
font-weight:600;
}

.ap_action-primary{
background:#2563EB;
color:white;
}

.ap_action-secondary{
background:#F1F5F9;
color:#0F172A;
}

.ap_health-score{
    font-size:56px;
    text-align:center;
    color:var(--success);
    font-weight:800;
}

.ap_reminder{
    padding:15px;
    border-radius:12px;
    background:#F8FAFC;
    margin-top:12px;
}

.ap_journey{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
}

.ap_journey-step{
    flex:1;
    min-width:120px;
    background:#F8FAFC;
    border:1px solid var(--border);
    border-radius:16px;
    padding:15px;
    text-align:center;
}

.ap_journey-step.active{
    background:var(--primary);
    color:white;
}

##### service provider 

.ap_provider-card{
display:flex;
flex-direction:column;
gap:25px;
}

.ap_provider-header{
display:flex;
align-items:center;
gap:24px;
}

.ap_provider-logo{
width:110px;
height:110px;
flex-shrink:0;
border-radius:22px;
background:white;
border:1px solid #E2E8F0;
overflow:hidden;
display:flex;
align-items:center;
justify-content:center;
box-shadow:0 10px 25px rgba(15,23,42,.08);
}

.ap_provider-logo img{
width:100%;
height:100%;
object-fit:contain;
padding:16px;
}

.ap_provider-main h3{
font-size:30px;
margin-bottom:8px;
}

.ap_provider-about{
background:#F8FAFC;
padding:20px;
border-radius:18px;
color:#475569;
}

@media(max-width:1400px){

.ap_kpi-grid{
    grid-template-columns:repeat(3,1fr);
}

.ap_layout{
    grid-template-columns:1fr;
}

.ap_appointment-grid{
    grid-template-columns:repeat(2,1fr);
}

.ap_record-grid{
grid-template-columns:1fr;
}

.ap_two-col{
grid-template-columns:1fr;
}

.ap_info-grid{
grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.ap_container{
#    padding:20px;
    padding-top: 50px;
    padding-bottom: 40px;
    padding-left: 0px;
    padding-right: 0px;

}

.ap_hero{
    padding:30px;
}

.ap_kpi-grid,
.ap_appointment-grid{
    grid-template-columns:1fr;
}

}
