* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f5f5;
    color: #404040;
    font-family: Arial, Helvetica, sans-serif;
}

.booking-page {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 28px 18px 50px;
}

.page-heading {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
}

.page-intro,
.branch-status {
    margin: 0 0 24px;
    color: #666;
    font-size: 15px;
}

.branch-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border-radius: 9px;
    background: #fff;
}

.branch-status p {
    margin: 0;
}

.text-link {
    color: #214e54;
    text-decoration: none;
    font-weight: 700;
}

.branch-grid,
.appointments-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.branch-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 42px;
    padding: 24px;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.13);
    color: #3e3e3e;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.branch-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.16);
}

.branch-button strong {
    display: block;
    margin-bottom: 7px;
    font-size: 19px;
}

.branch-button span {
    color: #214e54;
    font-size: 14px;
}

.appointment-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 11px;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.13);
}

.appointment-image {
    display: block;
    width: 100%;
    height: 208px;
    object-fit: cover;
    background: #e9eeee;
}

.appointment-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 30px;
}

.appointment-title {
    margin: 0 0 10px;
    color: #3e3e3e;
    font-size: 19px;
    line-height: 1.22;
    font-weight: 700;
}

.appointment-description {
    margin: 0 0 12px;
    color: #4a4a4a;
    font-size: 13.5px;
    line-height: 1.8;
}

.appointment-duration {
    margin: 0 0 10px;
    font-size: 18px;
    color: #626262;
}

.price-row {
    min-height: 47px;
    margin-bottom: 14px;
}

.price {
    color: #214e54;
    font-size: 18px;
    font-weight: 700;
}

.select-button {
    width: 100%;
    min-height: 49px;
    margin-top: auto;
    border: 0;
    border-radius: 10px;
    background: #204f55;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.select-button:hover {
    background: #173e43;
}

.select-button:active {
    transform: scale(0.99);
}

.booking-error {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.13);
}

@media (max-width: 900px) {
    .branch-grid,
    .appointments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .booking-page {
        padding: 20px 14px 35px;
    }

    .branch-grid,
    .appointments-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .appointment-content {
        padding: 24px;
    }

    .branch-status {
        align-items: flex-start;
        flex-direction: column;
    }
}
/* ===================================
   BRANCH SELECTOR
=================================== */

.branch-toolbar {
    max-width: 1100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.branch-toolbar label {
    font-weight: 600;
}

.branch-toolbar select {
    font-family: inherit;
    font-size: 15px;
    padding: 10px 38px 10px 14px;
    border: 1px solid #d1d1d1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.location-status {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: #666;
    min-height: 20px;
}


/* GRID */

.branch-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}


/* CARD */

.branch-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 20px;

    display: flex;
    flex-direction: column;

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 8px 22px rgba(0,0,0,0.08);
}


/* LOGO */

.branch-logo {
    height: 100px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;
}

.branch-logo img {
    max-width: 180px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
}


/* NAME */

.branch-card h2 {
    font-size: 18px;
    margin: 0 0 8px;
    line-height: 1.35;
}


/* DISTANCE */

.branch-distance {
    min-height: 20px;
    font-size: 13px;
    color: #666;
    margin-bottom: 14px;
}


/* ACTION BUTTON AREA */

.branch-actions {
    margin-top: auto;

    display: flex;
    flex-direction: column;

    gap: 8px;
}


/* BOOKING BUTTON */

.branch-button {
    display: block;

    padding: 12px 15px;

    background: #222;
    color: #fff;

    border-radius: 7px;

    text-decoration: none;
    font-weight: 600;

    transition: 0.2s ease;
}

.branch-button:hover {
    opacity: 0.85;
}


/* GOOGLE MAPS BUTTON */

.maps-button {
    display: block;

    padding: 10px 15px;

    background: #f5f5f5;
    color: #333;

    border: 1px solid #ddd;
    border-radius: 7px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 500;

    transition: 0.2s ease;
}

.maps-button:hover {
    background: #ebebeb;
}


/* MOBILE */

@media (max-width: 600px) {

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

    .branch-card {
        padding: 18px;
    }

}