/* Booking-only styles. Existing page layout and shared styles remain unchanged. */
:root {
    --clinic-a: #ee4b1f;
    --clinic-a-soft: #fff1ec;
    --clinic-a-border: #f4b7a6;
    --clinic-b: #07939c;
    --clinic-b-soft: #eaf7f7;
    --clinic-b-border: #a7dfe1;
    --clinic-neutral: #95ab63;
    --clinic-neutral-border: #c3d19c;
}

.booking-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(35, 37, 38, .55);
    z-index: 10000;
}

.BookingModal.booking-selector {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(760px, calc(100vw - 24px));
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 30px;
    transform: translate(-50%, -50%);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 0 14px rgba(0, 0, 0, .35);
    z-index: 10001;
}

.BookingModal.booking-selector h2 {
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e3e8e5;
    color: #232323;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

.booking-modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: #b7bdc6;
    cursor: pointer;
    font-size: 32px;
    line-height: 28px;
}

.booking-modal-close:hover,
.booking-modal-close:focus {
    color: #95ab63;
}

.booking-options {
    display: grid;
    gap: 14px;
}

.booking-option {
    display: flex;
    align-items: stretch;
    min-height: 148px;
    box-sizing: border-box;
    gap: 22px;
    padding: 20px 16px;
    border-radius: 4px;
    background: #f7f7f7;
    transition: box-shadow .2s ease, transform .2s ease;
}

.booking-option.booking-card-a {
    border: 1px solid var(--clinic-a-border);
    border-left: 4px solid var(--clinic-a);
    background: var(--clinic-a-soft);
}

.booking-option.booking-card-b {
    border: 1px solid var(--clinic-b-border);
    border-left: 4px solid var(--clinic-b);
    background: var(--clinic-b-soft);
}

.booking-option:hover {
    box-shadow: 0 6px 16px rgba(61, 74, 46, .12);
    transform: translateY(-1px);
}

.booking-option-image {
    display: block;
    flex: 0 0 230px;
    height: 140px;
    overflow: hidden;
}

.booking-option-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.booking-option:hover .booking-option-image img {
    transform: scale(1.05);
}

.booking-option-content {
    width: 100%;
}

.booking-option h3 {
    margin: 0 0 7px;
    color: #343b45;
    font-size: 22px;
    line-height: 1.25;
}

.booking-option p {
    margin: 3px 0;
    color: #767c7e;
    font-size: 14px;
    line-height: 1.45;
}

.booking-select {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 160px;
    height: 44px;
    box-sizing: border-box;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 24px;
    color: #fff !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 3px 5px rgba(31, 44, 44, .13);
    transition: filter .2s ease, transform .2s ease;
}

.booking-select span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #fff;
    color: #354043;
    font-size: 24px;
    font-weight: 400;
    line-height: 20px;
}

.booking-select:hover,
.booking-select:focus {
    color: #fff !important;
    filter: brightness(.95);
    transform: translateY(-1px);
}

/* These colors match the official Healthengine floating images. */
.booking-select-clinic-a {
    background: var(--clinic-a);
}

.booking-select-clinic-b {
    background: var(--clinic-b);
}

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

/* Compact adaptation of the supplied Healthengine clinic selector. */
.booking-float-panel {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    width: min(240px, calc(100vw - 24px));
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(25, 38, 39, .28);
}

.booking-float-panel.is-hidden {
    display: none;
}

.booking-float-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid #e8ebea;
}

.booking-float-heading h3 {
    margin: 0;
    color: #171b1d;
    font-size: 16px;
    line-height: 1.1;
}

.booking-float-close {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #3f4b4d;
    cursor: pointer;
    font-size: 23px;
    line-height: 21px;
}

.booking-float-options {
    display: grid;
    gap: 7px;
    padding: 10px;
}

.booking-float-select {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 39px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(31, 44, 44, .16);
}

.booking-float-select span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    color: #354043;
    font-size: 19px;
    font-weight: 400;
    line-height: 22px;
}

.booking-float-select:hover,
.booking-float-select:focus {
    color: #fff !important;
    filter: brightness(.95);
}

.booking-float-select.booking-select-clinic-a {
    background: var(--clinic-a);
}

.booking-float-select.booking-select-clinic-b {
    background: var(--clinic-b);
}

.booking-float-footer {
    padding: 10px 12px 11px;
    border-top: 1px solid #e8ebea;
    color: #566164;
    text-align: center;
}

.booking-float-footer p {
    margin: 0;
    font-size: 12px;
}

.booking-float-footer strong {
    color: #287a80;
}

.booking-float-legal {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.booking-float-legal a {
    color: #3f4b4d;
    font-size: 11px;
    text-decoration: none;
}

/* Clinic A/B accents for existing contact and practitioner content. */
.tab_hd ul {
    display: flex;
}

.tab_hd li {
    flex: 1;
    width: auto;
    box-sizing: border-box;
}

.tab_hd li.clinic-tab-a {
    background: var(--clinic-a-soft);
    color: var(--clinic-a);
}

.tab_hd li.clinic-tab-b {
    background: var(--clinic-b-soft);
    color: var(--clinic-b);
}

.tab_hd li.clinic-tab-a.active {
    background: var(--clinic-a);
    color: #fff;
}

.tab_hd li.clinic-tab-b.active {
    background: var(--clinic-b);
    color: #fff;
}

.tab_bd li.clinic-content-a > .contactUs_box,
.tab_bd li.clinic-content-a > .IContactUS {
    border-left: 4px solid var(--clinic-a);
    background: var(--clinic-a-soft);
	padding:10px;
}

.tab_bd li.clinic-content-b > .contactUs_box,
.tab_bd li.clinic-content-b > .IContactUS {
    border-left: 4px solid var(--clinic-b);
    background: var(--clinic-b-soft);
	padding:10px;
}

/* Contact details use the official neutral palette in both clinic tabs. */
.tab_bd .ContactInformation .address,
.tab_bd .ContactInformation .phonenumber,
.tab_bd .ContactInformation .hours .time {
    color: #767c7e;
}

.tab_bd .ContactInformation .email a {
    color: #1c5a8a;
}

.tab_bd .ContactInformation .hours > span:first-child,
.tab_bd .ContactInformation .hours ul li span.week {
    color: #708a36;
}

.tab_bd .ContactInformation .hours .holidayHours {
    color: #999;
}

/* Match the official Contact page slider: fixed 650x334 image area with
   bottom-right numbered controls. */
.contactUs_box .RightMap .slideBox {
    box-sizing: border-box;
    position: relative;
    width: 650px;
    height: 334px;
    overflow: hidden;
    border: 1px solid #ddd;
    background: #f5f5f5;
}

.contactUs_box .RightMap .slideBox .hd {
    position: absolute;
    right: 5px;
    bottom: 5px;
    z-index: 3;
    height: 15px;
    overflow: hidden;
}

.contactUs_box .RightMap .slideBox .hd ul {
    display: flex;
    width: auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.contactUs_box .RightMap .slideBox .hd ul li {
    box-sizing: border-box;
    flex: none;
    width: 15px;
    height: 15px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    background: #fff;
    color: #343948;
    cursor: pointer;
    font-size: 14px;
    line-height: 15px;
    text-align: center;
}

.contactUs_box .RightMap .slideBox .hd ul li.on {
    background: var(--clinic-neutral);
    color: #fff;
}

.contactUs_box .RightMap .slideBox .bd {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.contactUs_box .RightMap .slideBox .bd ul,
.contactUs_box .RightMap .slideBox .bd li {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.contactUs_box .RightMap .slideBox .bd img {
    display: block;
    width: 650px;
    height: 334px;
    object-fit: cover;
}

.contactUs_box .RightMap .slideBox .prev,
.contactUs_box .RightMap .slideBox .next {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: block;
    width: 30px;
    height: 50px;
    margin-top: -25px;
    background: rgba(0, 0, 0, .18);
    opacity: 0;
    transition: opacity .2s ease;
}

.contactUs_box .RightMap .slideBox:hover .prev,
.contactUs_box .RightMap .slideBox:hover .next,
.contactUs_box .RightMap .slideBox:focus-within .prev,
.contactUs_box .RightMap .slideBox:focus-within .next {
    opacity: 1;
}

.contactUs_box .RightMap .slideBox .prev {
    left: 0;
}

.contactUs_box .RightMap .slideBox .next {
    right: 0;
}

/* Each tab keeps its own wayfinding content and clinic colour. */
.clinic-wayfinding {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid rgba(117, 133, 96, .2);
}

.clinic-wayfinding h2 {
    margin-bottom: 4px;
    font-size: 24px;
}

.clinic-wayfinding-a h2 {
    color: var(--clinic-a);
}

.clinic-wayfinding-b h2 {
    color: var(--clinic-b);
}

.ClinicLocation.clinic-location-a {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 0 18px 16px;
    border: 1px solid var(--clinic-a-border);
    border-left: 4px solid var(--clinic-a);
    border-radius: 8px;
    background: transparent;
}

.ClinicLocation.clinic-location-b {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding: 0 18px 16px;
    border: 1px solid var(--clinic-b-border);
    border-left: 4px solid var(--clinic-b);
    border-radius: 8px;
    background: transparent;
}

.ClinicLocation dt {
    grid-column: 1 / -1;
    width: auto;
    margin: 0;
    border-left-width:0;
    padding: 10px 0px;
    line-height: 30px;
}

.ClinicLocation dd {
    float: none;
    width: auto;
    height: auto;
    min-height: 35px;
    margin: 0;
    padding-left: 38px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 6px;
    background-position: 0 center;
    background-color: rgba(255, 255, 255, .78);
    display: flex;
    align-items: center;
}

.ClinicLocation.clinic-location-a dd {
    border-color: var(--clinic-a-border);
    background-color: var(--clinic-a-soft);
}

.ClinicLocation.clinic-location-b dd {
    border-color: var(--clinic-b-border);
    background-color: var(--clinic-b-soft);
}

.ClinicLocation.clinic-location-a dt {
    border-left-color: var(--clinic-a);
    background: transparent;
    color: var(--clinic-a);
}

.ClinicLocation.clinic-location-b dt {
    border-left-color: var(--clinic-b);
    background: transparent;
    color: var(--clinic-b);
}

/* The outer facility frame stays in the site's neutral green system. */
.ClinicLocation.clinic-location-a,
.ClinicLocation.clinic-location-b {
    border-color: var(--clinic-neutral-border);
    border-left-color: var(--clinic-neutral);
    background: transparent;
}

.ClinicLocation.clinic-location-a dt,
.ClinicLocation.clinic-location-b dt {
    border-left-color: var(--clinic-neutral);
    color: var(--clinic-neutral);
}

/* The two inner panels represent the two separate clinics. */
.ClinicLocation dd:nth-of-type(1) {
    border-color: var(--clinic-a);
    background-color: var(--clinic-a-soft);
}

.ClinicLocation dd:nth-of-type(2) {
    border-color: var(--clinic-b);
    background-color: var(--clinic-b-soft);
}

.ClinicLocation dd .facility-name,
.ClinicLocation dd .facility-days {
    display: block;
}

.ClinicLocation dd {
    flex-wrap: wrap;
    align-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.ClinicLocation dd .facility-name {
    width: 100%;
    color: #343948;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.ClinicLocation dd .facility-days {
    width: 100%;
    margin-top: 3px;
    color: #687177;
    font-size: 13px;
    line-height: 1.35;
}

.OurClinic_Environment {
    box-sizing: border-box;
    padding: 0 18px 18px;
    border-left: 4px solid transparent;
    border-radius: 0 4px 4px 0;
}

.OurClinic_Environment.clinic-environment-a {
    border-left-color: var(--clinic-a);
    background: var(--clinic-a-soft);
}

.OurClinic_Environment.clinic-environment-a .OurClinic_tit h3 {
    color: var(--clinic-a);
}

.OurClinic_Environment.clinic-environment-a .OurClinic_tit h3 span.line {
    background: var(--clinic-a);
}

.OurClinic_Environment.clinic-environment-b {
    border-left-color: var(--clinic-b);
    background: var(--clinic-b-soft);
}

.OurClinic_Environment.clinic-environment-b .OurClinic_tit h3 {
    color: var(--clinic-b);
}

.OurClinic_Environment.clinic-environment-b .OurClinic_tit h3 span.line {
    background: var(--clinic-b);
}

.clinic-address {
    margin: 3px 0 0;
    color: #687177;
    font-size: 15px;
}

.clinic-gallery {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
    height: clamp(420px, 42vw, 600px);
    overflow: hidden;
}

.clinic-gallery .Environment_pic {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
}

.clinic-gallery .Environment_pic.row1 {
    flex: 1.75 1 0;
}

.clinic-gallery .Environment_pic.row2 {
    flex: 1 1 0;
}

.clinic-gallery .Environment_pic.row3 {
    flex: .7 1 0;
}

.clinic-gallery .Environment_pic .item {
    position: relative;
    min-height: 0;
    flex: 1 1 0;
    overflow: hidden;
}

.clinic-gallery .Environment_pic .item + .item {
    margin-top: 10px;
}

.clinic-gallery .Environment_pic .item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.clinic-gallery .Environment_pic .item:hover img {
    transform: scale(1.1);
}

.clinic-gallery .Environment_pic_tit {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
}

.clinic-gallery .row1 .Environment_pic_tit {
    padding: 15px;
    font-size: 20px;
}

.clinic-gallery .row2 .Environment_pic_tit {
    font-size: 18px;
}

.clinic-gallery .row3 .Environment_pic_tit {
    font-size: 16px;
}

.clinic-privacy {
    margin-top: 24px;
    padding: 32px 40px 38px;
}

.clinic-privacy h2 {
    margin: 22px 0 14px;
    color: #343948;
    font-size: 22px;
}

.clinic-privacy h3 {
    margin: 22px 0 6px;
    color: #6f8d3f;
    font-size: 18px;
}

.clinic-privacy p {
    margin: 0 0 12px;
    color: #687177;
    font-size: 15px;
    line-height: 1.8;
}

.doctor-treats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.doctor-treats li {
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 12px 9px 29px;
    border: 1px solid #d5dfbd;
    border-radius: 7px;
    background: #f6f8f1;
    color: #4c5960;
    font-size: 14px;
    line-height: 1.35;
    position: relative;
}

.doctor-treats li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 16px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clinic-a);
}

.doctor-qualification {
    margin-top: 24px;
    padding: 17px 20px;
    border-left: 4px solid var(--clinic-b);
    border-radius: 0 8px 8px 0;
    background: var(--clinic-b-soft);
}

.doctor-qualification h3 {
    margin: 0 0 8px;
    color: var(--clinic-b);
    font-size: 20px;
}

.doctor-qualification ul {
    margin: 0;
    padding-left: 20px;
    color: #687177;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .IContactUS {
        flex-wrap: wrap;
    }

    .IContactUS .ContactUSInfo,
    .IContactUS .ContactInformation,
    .IContactUS .Imap {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .IContactUS .Imap {
        flex-basis: 100%;
    }

    .ClinicLocation.clinic-location-a,
    .ClinicLocation.clinic-location-b {
        grid-template-columns: 1fr;
    }

    .clinic-gallery {
        height: 520px;
    }

    .clinic-gallery .Environment_pic.row1 {
        flex: 1.25 1 0;
    }

    .clinic-gallery .Environment_pic.row2 {
        flex: 1 1 0;
    }

    .clinic-gallery .Environment_pic.row3 {
        display: none;
    }

    .clinic-gallery .Environment_pic .item {
        min-height: 0;
    }

    .clinic-privacy {
        padding: 24px 20px 28px;
    }

    .doctor-treats {
        grid-template-columns: 1fr;
    }

    .BookingModal.booking-selector {
        width: min(560px, calc(100vw - 20px));
        padding: 22px 16px;
    }

    .contactUs_box .RightMap .slideBox,
    .contactUs_box .RightMap .slideBox .bd img {
        width: 100%;
        height: auto;
        aspect-ratio: 650 / 334;
    }

    .BookingModal.booking-selector h2 {
        font-size: 24px;
    }

    .booking-option {
        display: block;
        min-height: 0;
        padding: 14px;
    }

    .booking-option-image {
        width: 100%;
        height: 126px;
    }

    .booking-option-content {
        padding-top: 12px;
    }

    .booking-option h3 {
        font-size: 19px;
    }

    .booking-select {
        height: 42px;
        min-width: 145px;
        font-size: 17px;
    }

    .booking-modal-close {
        top: 12px;
        right: 12px;
        font-size: 30px;
    }

    .booking-float-panel {
        right: 10px;
        bottom: 10px;
        width: min(240px, calc(100vw - 20px));
    }

    .booking-float-select {
        min-height: 38px;
        font-size: 14px;
    }
}
