:root{
    --ew-green:#087a5b;
    --ew-green-dark:#075f49;
    --ew-orange:#f59b23;
    --ew-text:#172320;
    --ew-muted:#66736f;
    --ew-border:#e4e9e7;
    --ew-soft:#f5f8f7;
}

/* =========================
   BUS LIST
========================= */

.ew-bus-list{
    display:grid;
    gap:20px;
}

.ew-bus-list.ew-cols-1{
    grid-template-columns:1fr;
}

.ew-bus-list.ew-cols-2{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.ew-bus-list.ew-cols-3{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.ew-bus-list.ew-cols-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
}


/* =========================
   BUS CARD
========================= */

.ew-bus-card{
    background:#fff;
    border:1px solid var(--ew-border);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 8px 24px rgba(18,44,36,.07);
    transition:.25s ease;
}

.ew-bus-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 30px rgba(18,44,36,.11);
}

.ew-bus-image{
    display:block;
    aspect-ratio:16/10;
    background:#eef3f1;
    overflow:hidden;
}

.ew-bus-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:.35s ease;
}

.ew-bus-card:hover .ew-bus-image img{
    transform:scale(1.025);
}

.ew-no-image{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    color:var(--ew-muted);
}


/* =========================
   CARD BODY
========================= */

.ew-bus-card-body{
    padding:16px;
}

.ew-route-label{
    font-size:11px;
    line-height:1.4;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--ew-green);
}

.ew-bus-title{
    margin:5px 0 10px;
    font-size:18px;
    line-height:1.35;
    font-weight:700;
}

.ew-bus-title a{
    text-decoration:none;
    color:var(--ew-text);
}

.ew-bus-title a:hover{
    color:var(--ew-green);
}


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

.ew-price-line{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:14px;
}

.ew-price-line strong,
.ew-single-price strong{
    font-size:18px;
    line-height:1.3;
    font-weight:700;
    color:var(--ew-orange);
}

.ew-price-line del,
.ew-single-price del{
    font-size:14px;
    color:#9aa4a1;
}


/* =========================
   SCHEDULE
========================= */

.ew-card-schedules{
    display:grid;
    gap:10px;
}

.ew-schedule{
    border:1px solid var(--ew-border);
    border-radius:12px;
    padding:15px;
    background:#fff;
}

.ew-schedule-compact{
    padding:12px;
    background:var(--ew-soft);
}

.ew-schedule-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}

.ew-schedule-kicker{
    display:block;
    font-size:11px;
    line-height:1.4;
    font-weight:700;
    color:var(--ew-green);
    text-transform:uppercase;
    letter-spacing:.05em;
}

.ew-schedule-head h4{
    margin:3px 0 0;
    font-size:16px;
    line-height:1.4;
    font-weight:700;
    color:var(--ew-text);
}

.ew-compact-arrival{
    margin-top:7px;
    font-size:13px;
    line-height:1.5;
    color:var(--ew-muted);
}

.ew-compact-arrival strong{
    font-size:13px;
    color:var(--ew-text);
}


/* =========================
   BUTTON BOOK NOW
========================= */

.ew-book-now{
    border:0;
    background:var(--ew-orange);
    color:#fff;
    font-size:13px;
    line-height:1;
    font-weight:700;
    cursor:pointer;
    border-radius:999px;
    padding:10px 15px;
    white-space:nowrap;
    transition:.2s ease;
}

.ew-book-now:hover{
    filter:brightness(.95);
    transform:translateY(-1px);
}


/* =========================
   VIEW DETAILS
========================= */

.ew-view-details{
    margin-top:14px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    text-decoration:none;
    font-size:13px;
    line-height:1.4;
    font-weight:700;
    color:var(--ew-green);
    border-top:1px solid var(--ew-border);
    padding-top:13px;
}

.ew-view-details:hover{
    color:var(--ew-green-dark);
}

.ew-view-details span{
    font-size:17px;
    line-height:1;
}


/* =========================
   SINGLE BUS
========================= */

.ew-single-bus{
    max-width:1180px;
    margin:0 auto 50px;
}


/* =========================
   SINGLE HERO
========================= */

.ew-single-hero{
    display:grid;
    grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);
    gap:26px;
    align-items:stretch;
    margin-bottom:34px;
}

.ew-single-image{
    border-radius:16px;
    overflow:hidden;
    background:var(--ew-soft);
    min-height:360px;
}

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

.ew-single-summary{
    display:flex;
    flex-direction:column;
    justify-content:center;
    background:var(--ew-soft);
    border-radius:16px;
    padding:28px;
}

.ew-single-summary h1{
    font-size:18px;
    line-height:1.4;
    margin:6px 0 12px;
    font-weight:700;
    color:var(--ew-text);
}

.ew-single-price{
    display:flex;
    gap:10px;
    align-items:center;
    margin-bottom:12px;
}

.ew-single-lead{
    margin:0;
    color:var(--ew-muted);
    font-size:15px;
    line-height:1.65;
}


/* =========================
   SUMMARY TIMES
========================= */

.ew-summary-times{
    display:grid;
    gap:8px;
    margin-top:15px;
}

.ew-summary-times > div{
    background:#fff;
    border:1px solid var(--ew-border);
    border-radius:10px;
    padding:11px 13px;
}

.ew-summary-times small{
    display:block;
    font-size:12px;
    line-height:1.4;
    color:var(--ew-muted);
    margin-bottom:2px;
}

.ew-summary-times strong{
    font-size:15px;
    line-height:1.4;
    color:var(--ew-text);
}


/* =========================
   SINGLE GRID
========================= */

.ew-single-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 310px;
    gap:28px;
}


/* =========================
   SECTION HEADING
========================= */

.ew-section-heading{
    margin-bottom:15px;
}

.ew-section-heading span{
    font-size:11px;
    line-height:1.4;
    font-weight:700;
    color:var(--ew-green);
    letter-spacing:.08em;
}

.ew-section-heading h2{
    margin:4px 0 0;
    font-size:18px;
    line-height:1.4;
    font-weight:700;
    color:var(--ew-text);
}

.ew-single-main > .ew-schedule{
    margin-bottom:14px;
}


/* =========================
   SCHEDULE DETAIL
========================= */

.ew-schedule-info{
    display:grid;
    gap:12px;
    margin-top:14px;
    padding-top:14px;
    border-top:1px solid var(--ew-border);
}

.ew-info-row{
    display:grid;
    grid-template-columns:30px 1fr;
    gap:10px;
    align-items:start;
}

.ew-info-icon{
    width:27px;
    height:27px;
    border-radius:50%;
    background:var(--ew-soft);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:12px;
    font-weight:700;
    color:var(--ew-green);
}

.ew-info-row small{
    display:block;
    font-size:12px;
    line-height:1.4;
    color:var(--ew-muted);
    font-weight:600;
    margin-bottom:2px;
}

.ew-info-row p{
    margin:0;
    font-size:15px;
    line-height:1.6;
    color:var(--ew-text);
}

.ew-info-row p strong{
    font-size:15px;
}


/* =========================
   DESCRIPTION
========================= */

.ew-description{
    margin-top:28px;
}

.ew-description,
.ew-description p,
.ew-description li{
    font-size:15px;
    line-height:1.7;
    color:var(--ew-text);
}

.ew-description h1,
.ew-description h2,
.ew-description h3,
.ew-description h4,
.ew-description h5,
.ew-description h6{
    font-size:18px;
    line-height:1.45;
}


/* =========================
   CONTACT BOX
========================= */

.ew-contact-box{
    position:sticky;
    top:100px;
    border:1px solid var(--ew-border);
    border-radius:15px;
    padding:20px;
    box-shadow:0 8px 24px rgba(18,44,36,.06);
    background:#fff;
}

.ew-contact-box h3{
    font-size:18px;
    line-height:1.4;
    margin:5px 0 7px;
    color:var(--ew-text);
}

.ew-contact-box > p{
    margin:0 0 12px;
    font-size:14px;
    line-height:1.6;
    color:var(--ew-muted);
}

.ew-contact-row{
    padding:12px 0;
    border-top:1px solid var(--ew-border);
}

.ew-contact-row small{
    display:block;
    font-size:12px;
    line-height:1.4;
    color:var(--ew-muted);
    margin-bottom:3px;
}

.ew-contact-row strong,
.ew-contact-row a{
    font-size:14px;
    line-height:1.55;
    color:var(--ew-text);
    font-weight:600;
    text-decoration:none;
    word-break:break-word;
}

.ew-contact-row a:hover{
    color:var(--ew-green);
}


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

body.ew-modal-open{
    overflow:hidden;
}

.ew-bus-modal{
    position:fixed;
    inset:0;
    z-index:999999;
    display:none;
    align-items:center;
    justify-content:center;
    padding:18px;
}

.ew-bus-modal.is-open{
    display:flex;
}

.ew-modal-overlay{
    position:absolute;
    inset:0;
    background:rgba(8,22,18,.68);
    backdrop-filter:blur(4px);
}

.ew-modal-box{
    position:relative;
    z-index:2;
    width:min(540px,100%);
    max-height:calc(100vh - 36px);
    overflow:auto;
    background:#fff;
    border-radius:16px;
    padding:24px;
    box-shadow:0 24px 70px rgba(0,0,0,.28);
}

.ew-modal-close{
    position:absolute;
    right:14px;
    top:12px;
    border:0;
    background:transparent;
    font-size:18px;
    line-height:1;
    cursor:pointer;
    color:#73807c;
}

.ew-modal-heading{
    padding-right:28px;
    margin-bottom:15px;
}

.ew-modal-heading > span{
    font-size:11px;
    line-height:1.4;
    font-weight:700;
    color:var(--ew-green);
    letter-spacing:.08em;
}

.ew-modal-heading h3{
    font-size:18px;
    line-height:1.4;
    margin:4px 0 5px;
    color:var(--ew-text);
}

.ew-modal-heading p{
    margin:0;
    font-size:14px;
    line-height:1.6;
    color:var(--ew-muted);
}


/* =========================
   CONTACT FORM 7
========================= */

.ew-modal-form .bus-booking-form{
    display:grid;
    gap:12px;
}

.ew-modal-form .bus-form-title{
    display:none;
}

.ew-modal-form .bus-form-row label{
    display:block;
    font-size:13px;
    line-height:1.4;
    font-weight:600;
    color:var(--ew-text);
    margin-bottom:4px;
}

.ew-modal-form input,
.ew-modal-form textarea{
    width:100%;
    border:1px solid #dce4e1;
    border-radius:9px;
    padding:10px 12px;
    box-sizing:border-box;
    font-size:14px;
    line-height:1.5;
    color:var(--ew-text);
}

.ew-modal-form textarea{
    min-height:90px;
    resize:vertical;
}

.ew-modal-form input:focus,
.ew-modal-form textarea:focus{
    outline:none;
    border-color:var(--ew-green);
    box-shadow:0 0 0 2px rgba(8,122,91,.08);
}

.ew-modal-form input[readonly]{
    background:#f5f8f7;
    color:#55615e;
}

.ew-modal-form input[type=submit]{
    background:var(--ew-green);
    color:#fff;
    border:0;
    font-size:14px;
    line-height:1;
    font-weight:700;
    cursor:pointer;
    padding:12px 18px;
}

.ew-modal-form input[type=submit]:hover{
    background:var(--ew-green-dark);
}

.ew-modal-form .wpcf7-spinner{
    display:none;
}

.ew-modal-form .wpcf7-not-valid-tip{
    font-size:12px;
    margin-top:4px;
}

 


/* =========================
   GENERAL TEXT CONTROL
========================= */

.ew-single-bus p,
.ew-single-bus li,
.ew-bus-card p,
.ew-bus-card li{
    font-size:15px;
}

.ew-single-bus a,
.ew-bus-card a,
.ew-single-bus button,
.ew-bus-card button{
    font-family:inherit;
}


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

@media(max-width:980px){

    .ew-bus-list.ew-cols-3,
    .ew-bus-list.ew-cols-4{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ew-single-hero{
        grid-template-columns:1fr;
    }

    .ew-single-grid{
        grid-template-columns:1fr;
    }

    .ew-contact-box{
        position:static;
    }

    .ew-single-image{
        min-height:320px;
    }
}


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

@media(max-width:640px){

    .ew-bus-list.ew-cols-2,
    .ew-bus-list.ew-cols-3,
    .ew-bus-list.ew-cols-4{
        grid-template-columns:1fr;
    }

    .ew-bus-list{
        gap:16px;
    }

    .ew-bus-card-body{
        padding:15px;
    }

    .ew-bus-title{
        font-size:17px;
    }

    .ew-schedule{
        padding:13px;
    }

    .ew-schedule-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .ew-schedule-head .ew-book-now{
        width:100%;
    }

    .ew-single-summary{
        padding:20px;
    }

    .ew-single-summary h1{
        font-size:18px;
    }

    .ew-single-image{
        min-height:240px;
    }

    .ew-single-hero{
        gap:18px;
        margin-bottom:26px;
    }

    .ew-single-grid{
        gap:20px;
    }

    .ew-modal-box{
        padding:20px 16px;
    }

    .ew-modal-heading h3{
        font-size:17px;
    }
}