/* ============================================================
   ARMSTRONG & NORTH - BOOKING STYLES
   Shared styling for all branches for now.
   ============================================================ */

:root {
    --an-primary: #008bd0;
    --an-primary-hover: #005fa3;
    --an-primary-soft: #eef7fc;
    --an-page-bg: #f5f8fa;
    --an-card-bg: #ffffff;
    --an-text: #444444;
    --an-text-strong: #333333;
    --an-text-muted: #666666;
    --an-border: #e1e7eb;
    --an-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    --an-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--an-page-bg);
    color: var(--an-text);
    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;
    color: var(--an-text-strong);
    font-size: 28px;
    line-height: 1.2;
}

.page-intro,
.branch-status {
    margin: 0 0 24px;
    color: var(--an-text-muted);
    font-size: 15px;
}

.branch-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 16px;
    border: 1px solid var(--an-border);
    border-radius: 9px;
    background: var(--an-card-bg);
}

.branch-status p {
    margin: 0;
}

.text-link {
    color: var(--an-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--an-primary-hover);
    text-decoration: underline;
}

/* ============================================================
   APPOINTMENT CARDS
   ============================================================ */

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

.appointment-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--an-card-bg);
    border: 1px solid var(--an-border);
    border-radius: 11px;
    box-shadow: var(--an-shadow);
}

.appointment-image {
    display: block;
    width: 100%;
    height: 208px;
    object-fit: cover;
    background: var(--an-primary-soft);
}

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

.appointment-title {
    margin: 0 0 10px;
    color: var(--an-text-strong);
    font-size: 19px;
    line-height: 1.22;
    font-weight: 700;
}

.appointment-description {
    margin: 0 0 12px;
    color: var(--an-text);
    font-size: 13.5px;
    line-height: 1.8;
}

.appointment-duration {
    margin: 0 0 10px;
    color: var(--an-text-muted);
    font-size: 18px;
}

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

.price {
    color: var(--an-primary);
    font-size: 18px;
    font-weight: 700;
}

.select-button {
    width: 100%;
    min-height: 49px;
    margin-top: auto;
    border: 0;
    border-radius: 9px;
    background: var(--an-primary) !important;
    color: #ffffff !important;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.select-button:hover,
.select-button:focus-visible {
    background: var(--an-primary-hover) !important;
    color: #ffffff !important;
}

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

.select-button:focus-visible,
.branch-button:focus-visible,
.maps-button:focus-visible,
.branch-toolbar select:focus-visible {
    outline: 3px solid rgba(0, 139, 208, 0.25);
    outline-offset: 2px;
}

.booking-error {
    max-width: 700px;
    margin: 30px auto;
    padding: 20px;
    border: 1px solid var(--an-border);
    border-radius: 10px;
    background: var(--an-card-bg);
    box-shadow: var(--an-shadow);
}

/* ============================================================
   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 {
    color: var(--an-text-strong);
    font-weight: 600;
}

.branch-toolbar select {
    font-family: inherit;
    font-size: 15px;
    padding: 10px 38px 10px 14px;
    border: 1px solid #cfd8de;
    border-radius: 8px;
    background: #ffffff;
    color: var(--an-text);
    cursor: pointer;
}

.branch-toolbar select:hover {
    border-color: var(--an-primary);
}

.location-status {
    width: 100%;
    min-height: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--an-text-muted);
}

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

.branch-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: var(--an-card-bg);
    border: 1px solid var(--an-border);
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.branch-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 139, 208, 0.35);
    box-shadow: var(--an-shadow-hover);
}

.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;
}

.branch-card h2 {
    margin: 0 0 8px;
    color: var(--an-text-strong);
    font-size: 18px;
    line-height: 1.35;
}

.branch-distance {
    min-height: 20px;
    margin-bottom: 14px;
    color: var(--an-text-muted);
    font-size: 13px;
}

.branch-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Primary branch booking button.
   !important prevents a WordPress/branch theme hover colour taking over. */
.branch-button {
    display: block;
    padding: 12px 15px;
    border: 1px solid var(--an-primary) !important;
    border-radius: 8px;
    background: var(--an-primary) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.branch-button:hover,
.branch-button:focus-visible {
    border-color: var(--an-primary-hover) !important;
    background: var(--an-primary-hover) !important;
    color: #ffffff !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

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

/* Secondary Google Maps button */
.maps-button {
    display: block;
    padding: 10px 15px;
    border: 1px solid #b9cbd6 !important;
    border-radius: 8px;
    background: #ffffff !important;
    color: var(--an-primary) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.maps-button:hover,
.maps-button:focus-visible {
    border-color: var(--an-primary) !important;
    background: var(--an-primary-soft) !important;
    color: var(--an-primary-hover) !important;
    text-decoration: none !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

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

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

    .appointment-content {
        padding: 24px;
    }

    .branch-status {
        align-items: flex-start;
        flex-direction: column;
    }

    .branch-card {
        padding: 18px;
    }
}
