/*
 * Bookuro UI — shared design system for the public site.
 * Black-and-white interface with indigo as the accent. Loaded after style.css and pages.css.
 */

:root {
    --ink: #0d1117;
    --ink-hover: #2b2f36;
    --muted: #6b7280;
    --line: #e7e7ea;
    --surface: #f4f4f6;
    --tint: #f1efff;
    --accent: #6366f1;
    --accent-dark: #4f46e5;
    --radius: 14px;
    --radius-lg: 20px;
}

body {
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ink);
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-dark);
}

/* ---------- Buttons: black pills site-wide ---------- */
.btn {
    border-radius: 999px;
    font-weight: 600;
}

.btn-primary,
.btn-primary:focus {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
    background: var(--ink-hover) !important;
    border-color: var(--ink-hover) !important;
    color: #fff !important;
    transform: none;
}

.btn-outline-primary {
    color: var(--ink);
    border-color: var(--line);
    background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:active {
    color: var(--ink) !important;
    background: var(--surface) !important;
    border-color: var(--line) !important;
}

.btn-light {
    background: #fff;
    border-color: #fff;
    color: var(--ink);
}

.bk-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.bk-btn-pill:hover {
    background: var(--surface);
    color: var(--ink);
}

.bk-btn-dark {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.bk-btn-dark:hover {
    background: var(--ink-hover);
    color: #fff;
}

/* ---------- Header ---------- */
.bk-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.bk-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 72px;
}

.bk-logo img {
    height: 36px;
    width: auto;
}

.bk-nav {
    display: flex;
    gap: 0.25rem;
    margin: 0 auto 0 1rem;
    padding: 0;
    list-style: none;
}

.bk-nav a {
    display: block;
    padding: 0.5rem 0.875rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}

.bk-nav a:hover,
.bk-nav a.active {
    background: var(--surface);
}

.bk-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

.bk-header-link {
    padding: 0.5rem 0.75rem;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.bk-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.bk-menu .offcanvas-body a {
    display: block;
    padding: 0.75rem 0;
    color: var(--ink);
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}

@media (max-width: 991.98px) {
    .bk-nav,
    .bk-header-actions .bk-hide-mobile {
        display: none;
    }
}

/* ---------- Hero with pill search ---------- */
.bk-hero {
    background: var(--tint);
    padding: 5rem 0 4rem;
    text-align: center;
}

.bk-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.bk-hero-lead {
    max-width: 640px;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    color: #3f3f46;
}

.bk-hero-stat {
    margin-top: 1.5rem;
    color: var(--ink);
}

.bk-search {
    display: flex;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(13, 17, 23, 0.08);
    text-align: left;
}

.bk-search-field {
    position: relative;
    flex: 1 1 0;
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 1rem;
}

.bk-search-field + .bk-search-field {
    border-left: 1px solid var(--line);
}

.bk-search-field i {
    color: var(--muted);
    margin-right: 0.625rem;
}

.bk-search-field input,
.bk-search-field select {
    width: 100%;
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 0.9375rem;
    appearance: none;
    text-overflow: ellipsis;
}

.bk-search-field input::placeholder {
    color: var(--muted);
}

.bk-search-btn {
    flex-shrink: 0;
    height: 48px;
    padding: 0 1.75rem;
    border: 0;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}

.bk-search-btn:hover {
    background: var(--ink-hover);
}

.bk-search-locate {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 0 0.25rem;
}

@media (max-width: 767.98px) {
    .bk-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: var(--radius-lg);
        padding: 0.75rem;
    }

    .bk-search-field {
        padding: 0 0.5rem;
    }

    .bk-search-field + .bk-search-field {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .bk-search-btn {
        margin-top: 0.5rem;
    }
}

/* ---------- Sections and rails ---------- */
.bk-section {
    padding: 3.5rem 0;
}

.bk-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.bk-section-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
}

.bk-rail-controls {
    display: flex;
    gap: 0.5rem;
}

.bk-rail-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
}

.bk-rail-btn:hover {
    background: var(--surface);
}

.bk-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 3 * 1.5rem) / 4);
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
}

.bk-rail::-webkit-scrollbar {
    display: none;
}

.bk-rail > * {
    scroll-snap-align: start;
}

@media (max-width: 991.98px) {
    .bk-rail {
        grid-auto-columns: 42%;
    }
}

@media (max-width: 575.98px) {
    .bk-rail {
        grid-auto-columns: 80%;
    }
}

.bk-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
}

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

@media (max-width: 575.98px) {
    .bk-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Venue / service card ---------- */
.bk-card {
    display: block;
    color: var(--ink);
    text-decoration: none;
}

.bk-card:hover {
    color: var(--ink);
}

.bk-card-media {
    position: relative;
    aspect-ratio: 3 / 2;
    margin-bottom: 0.75rem;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.bk-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bk-card:hover .bk-card-media img {
    transform: scale(1.03);
}

.bk-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #c4c4cc;
    font-size: 2rem;
}

.bk-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.75rem;
    font-weight: 600;
}

.bk-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}

.bk-card-title h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.bk-rating {
    flex-shrink: 0;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.bk-rating i {
    color: #f5b301;
    margin-right: 0.15rem;
}

.bk-card-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.5;
}

.bk-card-price {
    margin-top: 0.375rem;
    font-weight: 600;
}

.bk-dot::before {
    content: "·";
    margin: 0 0.35rem;
}

/* ---------- Category tiles ---------- */
.bk-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
}

.bk-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    background: #fff;
}

.bk-tile:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.bk-tile img,
.bk-tile .bk-tile-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.bk-tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--tint);
    color: var(--accent-dark);
}

.bk-tile strong {
    font-weight: 600;
    line-height: 1.3;
}

.bk-tile small {
    color: var(--muted);
}

/* ---------- Reviews ---------- */
.bk-review {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.bk-review-stars {
    color: #f5b301;
    margin-bottom: 1rem;
}

.bk-review blockquote {
    flex-grow: 1;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.bk-review-person {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bk-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ink);
    color: #fff;
    font-weight: 600;
}

/* ---------- Stats, split sections, CTA ---------- */
.bk-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 5rem;
    text-align: center;
}

.bk-stat strong {
    display: block;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.bk-stat span {
    color: var(--muted);
    font-size: 1.0625rem;
}

.bk-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.bk-split h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.bk-split p {
    font-size: 1.125rem;
    color: #3f3f46;
    margin-bottom: 1.75rem;
}

.bk-panel {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--tint);
}

@media (max-width: 991.98px) {
    .bk-split {
        grid-template-columns: 1fr;
    }
}

/* ---------- Inner page header ---------- */
.bk-page-hero {
    padding: 2.5rem 0 1.5rem;
}

.bk-page-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
}

.bk-page-hero p {
    margin: 0;
    max-width: 680px;
    color: var(--muted);
    font-size: 1.0625rem;
}

.bk-page-hero .breadcrumb {
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.bk-page-hero .breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

/* ---------- Empty state ---------- */
.bk-empty {
    padding: 4rem 1rem;
    text-align: center;
    color: var(--muted);
}

.bk-empty i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #c4c4cc;
}

/* ---------- Tweaks to shared components in the new style ---------- */
.filter-bar {
    border-radius: 999px;
    padding: 0.5rem;
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: 999px;
}

@media (max-width: 991.98px) {
    .filter-bar {
        border-radius: var(--radius-lg);
    }
}

.filter-chip {
    background: var(--surface);
    color: var(--ink);
}

.filter-chip:hover {
    background: var(--line);
    color: var(--ink);
}

.footer-fresha {
    background: var(--ink);
}

.cookie-bar .btn-primary {
    background: var(--ink);
}

.bk-tiles-lg {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ---------- Venue page (provider and service detail) ---------- */
.bk-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
    height: 420px;
    margin-bottom: 2rem;
}

.bk-gallery > * {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.bk-gallery > :first-child {
    grid-row: span 2;
}

.bk-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bk-gallery-single {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    height: 360px;
}

.bk-gallery-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    background: var(--tint);
    color: var(--accent-dark);
    font-size: 4rem;
    font-weight: 800;
}

@media (max-width: 767.98px) {
    .bk-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: 260px;
    }

    .bk-gallery > :not(:first-child) {
        display: none;
    }
}

.bk-venue-head h1 {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.bk-venue-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0;
    color: var(--muted);
}

.bk-venue-meta strong {
    color: var(--ink);
}

.bk-open {
    color: #15803d;
    font-weight: 600;
}

.bk-closed {
    color: #b91c1c;
    font-weight: 600;
}

.bk-venue-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991.98px) {
    .bk-venue-layout {
        grid-template-columns: 1fr;
    }
}

.bk-aside {
    position: sticky;
    top: 96px;
    padding: 1.75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
}

.bk-aside h2 {
    font-size: 1.5rem;
    font-weight: 800;
}

.bk-block {
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.bk-block:last-child {
    border-bottom: 0;
}

.bk-block > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.bk-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.bk-service-row + .bk-service-row {
    margin-top: 0.75rem;
}

.bk-service-row h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.bk-service-row p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.bk-hours {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 2rem;
    margin: 0;
}

.bk-hours dt {
    font-weight: 500;
}

.bk-hours dd {
    margin: 0;
    color: var(--muted);
}

.bk-hours .is-today {
    color: var(--ink);
    font-weight: 700;
}

.bk-team {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.bk-team img,
.bk-team .bk-initial {
    width: 88px;
    height: 88px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    object-fit: cover;
    font-size: 1.75rem;
}

.bk-map {
    height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
}

.bk-avatar-lg {
    width: 56px;
    height: 56px;
}

/* ======================================================================
 * Legacy building blocks (booking, checkout, payment and account pages)
 * restyled to the same system, so they match without rewriting their logic.
 * ====================================================================== */

/* Indigo hero bands become calm tinted page headers */
.main-content section.bg-primary,
.main-content .hero-section {
    background: var(--tint) !important;
    color: var(--ink) !important;
}

.main-content section.bg-primary :is(h1, h2, h3, h4, h5, h6, p, .lead, span, small),
.main-content .hero-section :is(h1, h2, h3, h4, h5, h6, p, .lead) {
    color: inherit !important;
}

.main-content section.bg-primary :is(.text-white-50, .opacity-75),
.main-content .hero-section :is(.text-white-50, .opacity-75) {
    color: var(--muted) !important;
    opacity: 1 !important;
}

.main-content section.bg-primary .btn-light,
.main-content .hero-section .btn-light {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Cards: flat with a hairline border instead of drop shadows */
.main-content .card {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius);
    box-shadow: none !important;
}

.main-content .card-header,
.main-content .card-footer {
    background: transparent;
    border-color: var(--line);
}

.main-content .card-header.bg-primary {
    background: var(--surface) !important;
    color: var(--ink) !important;
}

.main-content .card-header.bg-primary :is(h1, h2, h3, h4, h5, h6, i) {
    color: inherit !important;
}

/* Forms */
.main-content .form-control,
.main-content .form-select {
    min-height: 46px;
    border-color: var(--line);
    border-radius: 10px;
}

.main-content .form-control:focus,
.main-content .form-select:focus {
    border-color: var(--ink);
    box-shadow: 0 0 0 3px rgba(13, 17, 23, 0.08);
}

.main-content .form-check-input:checked {
    background-color: var(--ink);
    border-color: var(--ink);
}

.main-content .form-label {
    font-weight: 600;
    font-size: 0.875rem;
}

/* Tables */
.main-content .table {
    --bs-table-bg: transparent;
    vertical-align: middle;
}

.main-content .table thead th {
    color: var(--muted);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom-color: var(--line);
}

.main-content .table td {
    border-color: var(--line);
}

/* Tabs, pills and pagination */
.main-content .nav-tabs {
    border-bottom-color: var(--line);
}

.main-content .nav-tabs .nav-link {
    border: 0;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    font-weight: 600;
}

.main-content .nav-tabs .nav-link.active {
    color: var(--ink);
    border-bottom-color: var(--ink);
    background: transparent;
}

.main-content .nav-pills .nav-link {
    border-radius: 999px;
    color: var(--ink);
}

.main-content .nav-pills .nav-link.active {
    background: var(--ink);
    color: #fff;
}

.main-content .pagination {
    gap: 0.375rem;
}

.main-content .page-link {
    border: 1px solid var(--line);
    border-radius: 999px !important;
    color: var(--ink);
    min-width: 40px;
    text-align: center;
}

.main-content .page-item.active .page-link {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

/* Alerts and badges */
.main-content .alert {
    border: 0;
    border-radius: var(--radius);
}

.main-content .badge {
    font-weight: 600;
    border-radius: 999px;
}

/* Progress steps used by the booking and checkout flows */
.main-content .progress {
    border-radius: 999px;
    background: var(--surface);
}

.main-content .progress-bar {
    background: var(--ink);
}

/* ---------- Long-form content (policies, help, blog bodies) ---------- */
.bk-prose {
    max-width: 760px;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.bk-prose :is(h1, h2, h3, h4) {
    margin: 2rem 0 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.bk-prose h1 { font-size: 1.75rem; }
.bk-prose h2 { font-size: 1.5rem; }
.bk-prose h3 { font-size: 1.25rem; }

.bk-prose :is(p, ul, ol) {
    margin-bottom: 1rem;
}

.bk-prose img {
    max-width: 100%;
    height: auto;
}

/* Pasted rich text often carries its own fonts and colours; keep it on-brand */
.bk-prose * {
    font-family: inherit !important;
    color: inherit !important;
    background: transparent !important;
}

/* ---------- Account dropdown ---------- */
.bk-account-menu {
    width: 300px;
    padding: 0.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 40px rgba(13, 17, 23, 0.12);
}

.bk-account-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}

.bk-account-head .bk-avatar-lg {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.min-w-0 {
    min-width: 0;
}

.bk-wallet {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0.25rem 0.5rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    background: var(--tint);
}

.bk-wallet-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    color: var(--accent-dark);
}

.bk-wallet-amount {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.bk-account-links {
    display: grid;
    padding: 0.25rem 0;
}

.bk-account-links a,
.bk-account-foot button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--ink);
    font-weight: 500;
    text-align: left;
    text-decoration: none;
}

.bk-account-links a i,
.bk-account-foot button i {
    width: 18px;
    color: var(--muted);
    text-align: center;
}

.bk-account-links a:hover,
.bk-account-links a:focus-visible,
.bk-account-foot button:hover,
.bk-account-foot button:focus-visible {
    background: var(--surface);
}

.bk-account-foot {
    margin-top: 0.25rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--line);
}

.bk-account-foot button,
.bk-account-foot button i {
    color: #b91c1c;
}
