:root {
    --primary: #c4818f;
    --primary-dark: #a96a78;
    --secondary: #6f9ab8;
    --accent: #b8934f;
    --bg: #faf5ef;
    --card-bg: #ffffff;
    --text: #33282b;
    --muted: #8a7d78;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(51, 40, 43, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo-text {
    font-family: 'Fraunces', serif;
    line-height: 1.2;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}
.container--wide {
    max-width: 1480px;
}

/* Header */
.site-header {
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #efe5db;
    view-transition-name: site-header;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.logo-bubble {
    font-size: 1.6rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 6px 2px;
    border-bottom: 3px solid transparent;
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: var(--text);
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 120;
    background: var(--card-bg, #fff);
    border-top: 1px solid #efe5db;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.admin-dropdown-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
    padding: 14px 0;
}

.admin-dropdown-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 2px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.admin-dropdown-nav a:hover,
.admin-dropdown-nav a.active {
    color: var(--primary-dark);
    border-bottom-color: var(--primary);
}

.admin-dropdown-nav .chat-badge {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    background: #e34d67;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    vertical-align: middle;
}

@media (max-width: 860px) {
    .admin-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }
    .admin-dropdown-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .admin-dropdown-nav a {
        white-space: normal;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(196, 129, 143, 0.35);
}

.btn-primary:hover {
    background: #8e5260;
    box-shadow: 0 2px 8px rgba(169, 106, 120, 0.4);
}

.btn-outline {
    background: var(--card-bg);
    border-color: var(--primary);
    color: var(--primary-dark);
}

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

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #f7e7d6 0%, #e0eef2 100%);
    padding: 72px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 16px;
}

.accent {
    color: var(--primary-dark);
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-art {
    text-align: center;
}

.emoji-paw {
    font-size: 9rem;
    display: inline-block;
    animation: bounce 2.5s infinite ease-in-out;
    filter: drop-shadow(0 12px 20px rgba(51, 40, 43, 0.15));
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}

/* Sections */
.section {
    padding: 64px 0;
}

.section-tint {
    background: #fff;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.center {
    text-align: center;
    margin-top: 32px;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-icon {
    font-size: 2.4rem;
    display: inline-block;
    margin-bottom: 12px;
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.card p {
    color: var(--muted);
    font-size: 0.95rem;
}

.price {
    font-weight: 700;
    color: var(--primary-dark) !important;
    font-size: 1.1rem !important;
    margin-top: 12px;
}

/* Page hero */
.page-hero {
    background: linear-gradient(135deg, #f7e7d6 0%, #e0eef2 100%);
    padding: 56px 0;
    text-align: center;
}

.page-hero-plain {
    background: none;
}

.page-hero h1 {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.page-hero p {
    color: var(--muted);
    font-size: 1.05rem;
}

.page-hero-actions {
    margin-top: 20px;
    margin-bottom: -100px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
}

.about-card h2 {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.testimonial-content {
    font-style: italic;
    line-height: 1.6;
}

.testimonial-author {
    margin-top: 12px;
    font-weight: 700;
    color: var(--primary-dark);
}

.values-list {
    list-style: none;
}

.values-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #efe5db;
}

.about-subhead {
    margin-top: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: 'Manrope', sans-serif;
}

.about-story {
    position: relative;
    overflow: hidden;
}

.about-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
}

.value-chips {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.value-chips li {
    background: #f7ece6;
    border: 1px solid #eeddd2;
    color: var(--primary-dark);
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.92rem;
}

/* Forms */
.form {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 620px;
}

.form-wide {
    max-width: 760px;
    margin: 0 auto;
}

.form h2 {
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.form label {
    display: block;
    font-weight: 700;
    margin: 14px 0 6px;
    font-size: 0.9rem;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #efe5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s ease;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.form .btn {
    margin-top: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.svc-tier-list {
    display: grid;
    gap: 10px;
}

.svc-tier-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.svc-tier-cell label {
    width: 32px;
    flex-shrink: 0;
    font-weight: 700;
}

.svc-tier-inputs {
    display: flex;
    gap: 8px;
    flex: 1;
}

.svc-tier-inputs input {
    flex: 1;
    min-width: 0;
    padding-left: 8px;
    padding-right: 4px;
}

.form-status {
    margin-top: 14px;
    font-weight: 700;
}

.form-status.success { color: #2e9e5b; }
.form-status.error { color: #d64545; }
.form-status.info { color: #5b7a99; }

.form input.field-error,
.form select.field-error,
.form textarea.field-error {
    border-color: #d64545;
    box-shadow: 0 0 0 2px rgba(214, 69, 69, 0.18);
}

.field-error-msg {
    display: block;
    margin-top: 4px;
    color: #d64545;
    font-size: 0.85em;
    font-weight: 600;
}

/* Ghost placeholder overlay: required fields get a red * on their placeholder */
.ghost-field {
    position: relative;
    display: block;
    font-size: 0.95rem;
    line-height: normal;
}

.ghost-field input,
.ghost-field textarea {
    font: inherit;
}

.ghost-field input::placeholder,
.ghost-field textarea::placeholder {
    color: transparent;
}

.ghost-field .ghost-overlay {
    display: none;
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--muted);
    font: inherit;
    white-space: pre;
}

.ghost-field textarea ~ .ghost-overlay {
    top: 14px;
    transform: none;
}

.ghost-field:has(input:placeholder-shown) .ghost-overlay,
.ghost-field:has(textarea:placeholder-shown) .ghost-overlay {
    display: block;
}

.chat-input .ghost-field {
    flex: 1;
    min-width: 0;
}

.ghost-star {
    color: #d64545;
}

/* Booking page layout */
.book-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.book-layout .form {
    max-width: none;
    margin: 0;
}

.book-toggle-col {
    display: flex;
    align-items: flex-end;
}

.book-toggle-col .btn {
    width: 100%;
    margin-top: 0;
    white-space: nowrap;
}

.book-summary {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    position: sticky;
    top: 90px;
}

.book-summary h3 {
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.summary-rows {
    margin: 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px dashed #efe5db;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row dt {
    font-weight: 700;
    font-size: 0.9rem;
}

.summary-row dd {
    margin: 0;
    color: var(--muted);
    font-weight: 600;
    text-align: right;
}

.summary-note {
    margin-top: 14px;
    font-size: 0.85rem;
    color: var(--muted);
}

.booking-details {
    background: #fbf6f0;
    border: 2px dashed #efe5db;
    border-radius: 8px;
    padding: 16px 20px;
    margin: 16px 0;
}

.booking-details p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.booking-details p strong {
    color: var(--primary-dark);
    margin-right: 6px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
}

/* Admin */
.admin-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-link-right {
    margin-left: auto;
}

.admin-table-wrap {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th {
    text-align: left;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    padding: 14px 16px;
    border-bottom: 2px solid #efe5db;
    white-space: nowrap;
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1e9e1;
    font-size: 0.92rem;
    vertical-align: top;
}

.admin-table tbody tr:hover {
    background: #fbf6f0;
}

.admin-muted {
    color: var(--muted);
}

.admin-empty {
    text-align: center;
    color: var(--muted);
    padding: 32px !important;
}

.admin-actions {
    white-space: nowrap;
}

.admin-actions .btn {
    margin-right: 6px;
    margin-bottom: 4px;
}

.btn-danger {
    background: transparent;
    border-color: #d64545;
    color: #d64545;
}

.btn-danger:hover {
    background: #d64545;
    color: #fff;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-pending { background: #fff3d6; color: #a87a00; }
.status-confirmed { background: #e0f4e8; color: #2e9e5b; }
.status-cancelled { background: #fbe1e1; color: #d64545; }
.status-completed { background: #e3e9ff; color: #4f46e5; }

/* Admin zone */
.admin-content {
    min-width: 0;
}

.deposit-paid { color: #2e9e5b; font-weight: 700; }
.deposit-unpaid { color: #d64545; font-weight: 700; }
.deposit-refunded { color: var(--muted); font-weight: 700; }

.new-customer-mark {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #fff3d6;
    color: #a87a00;
    vertical-align: middle;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-nav h2 {
    margin: 0;
    color: var(--primary-dark);
}

.calendar-grid {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.calendar-weekdays,
.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-weekdays {
    background: #f7ece6;
    border-bottom: 2px solid #efe5db;
}

.calendar-weekday {
    padding: 12px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.calendar-week {
    border-bottom: 1px solid #f1e9e1;
}

.calendar-week:last-child {
    border-bottom: none;
}

.cal-day {
    min-height: 120px;
    padding: 8px;
    border-right: 1px solid #f1e9e1;
    font-size: 0.82rem;
}

.cal-day:nth-child(7) {
    border-right: none;
}

.cal-day-out {
    background: #ffffff;
}

.cal-day-today .cal-day-num {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    width: 22px;
    text-align: center;
}

.cal-day-num {
    font-weight: 700;
    margin-bottom: 6px;
}

.cal-book {
    padding: 2px 6px;
    margin-bottom: 4px;
    background: #faf5ef;
    border-left: 3px solid var(--secondary);
    border-radius: 4px;
    line-height: 1.4;
    font-size: 0.8rem;
}

.cal-book .cal-book-time {
    font-weight: 700;
}

.cal-book .status-badge {
    font-size: 0.68rem;
    padding: 2px 8px;
    margin-top: 2px;
}

.cal-book-short {
    background: #e0eef2;
    border-left-color: #0e7490;
}

.cal-book-chip {
    display: inline-block;
    background: #0e7490;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 6px;
    margin-left: 4px;
    vertical-align: middle;
}

.cal-more {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

/* ===== Gallery focal point picker ===== */
.focal-picker {
    position: relative;
    width: 100%;
    height: 260px;
    border-radius: 8px;
    overflow: hidden;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    background: #222;
}
.focal-picker.is-dragging { cursor: grabbing; }
.focal-picker img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}
.focal-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255,255,255,.95);
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0,0,0,.45), 0 0 8px rgba(0,0,0,.55);
    pointer-events: none;
}
.focal-center::before,
.focal-center::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,.95);
    box-shadow: 0 0 3px rgba(0,0,0,.5);
}
.focal-center::before { left: 50%; top: -8px; width: 2px; height: 36px; transform: translateX(-50%); }
.focal-center::after { top: 50%; left: -8px; height: 2px; width: 36px; transform: translateY(-50%); }
.focal-hint { margin-top: 6px; font-size: 0.78rem; }
.focal-open-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.focal-open-btn svg {
    width: 14px;
    height: 14px;
}
/* ===== Gallery crop widget ===== */
.crop-box {
    position: relative;
    overflow: hidden;
    background: #222;
    border-radius: 8px;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.crop-box.is-dragging { cursor: grabbing; }
.crop-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
}
.crop-window {
    position: absolute;
    border: 2px solid #fff;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, .55);
    cursor: move;
    border-radius: 2px;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}
.crop-window.is-dragging { cursor: grabbing; }
.crop-aspects {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.upload-dims { margin-top: 6px; }
.upload-warn { color: var(--warn, #b8860b); font-weight: 600; }
.edit-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.edit-mode { min-height: 200px; }
.gallery-advanced {
    border: 1px solid #efe5db;
    border-radius: 8px;
    padding: 8px 10px;
}
.gallery-advanced summary {
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    user-select: none;
    list-style: none;
}
.gallery-advanced summary::-webkit-details-marker {
    display: none;
}
.gallery-advanced summary::before {
    content: '▸ ';
    color: var(--accent);
}
.gallery-advanced[open] summary::before {
    content: '▾ ';
}
.gallery-advanced .gallery-controls {
    margin-top: 10px;
}
.gallery-meta > .gallery-advanced {
    margin-top: 10px;
}
.gallery-advanced .gallery-pair-row {
    border-top: none;
    margin-top: 8px;
    padding-top: 0;
}
.focal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.gallery-card-actions .pair-open-btn {
    align-self: flex-start;
}

.gallery-meta {
    padding: 12px 16px;
}

.gallery-meta p {
    font-size: 0.9rem;
}

.featured-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    background: var(--accent);
    color: #4d3a00;
    font-size: 0.72rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.gallery-item {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .gallery-item img {
        height: auto;
        aspect-ratio: 3 / 4;
    }
}

.gallery-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 16px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

.gallery-empty {
    text-align: center;
    color: var(--muted);
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

/* ===== Team section ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.team-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s ease;
}

.team-card:hover {
    transform: translateY(-2px);
}

.team-card h3 {
    font-size: 1.15rem;
    margin: 12px 0 4px;
    color: var(--primary-dark);
}

.team-role {
    color: var(--muted);
    font-weight: 700;
    margin-bottom: 6px;
}

.team-photo {
    width: 100%;
    max-width: 170px;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: calc(var(--radius) - 4px);
    display: block;
}

.team-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: var(--bg);
    border: 2px dashed #efe5db;
    color: var(--muted);
}

@media (max-width: 640px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.about-home {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-home .values-list {
    display: inline-block;
    text-align: left;
}

.about-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}

.about-grid-3 .about-home {
    max-width: none;
    margin: 0;
}

.about-grid-3 .about-card h2 {
    text-align: center;
}

.mini-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.mini-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.mini-gallery-empty {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 0.95rem;
    text-align: center;
}

.map-card {
    display: flex;
    flex-direction: column;
}

.map-address {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.map-embed {
    margin-top: 12px;
    border-radius: 8px;
    overflow: hidden;
    line-height: 0;
    flex: 1;
    min-height: 240px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 240px;
    border: 0;
}

.map-directions {
    margin-top: 16px;
}

.customer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 20px;
}

.temp-password {
    background: #fff3d6;
    border: 2px dashed #e6c25a;
    border-radius: var(--radius);
    padding: 20px;
    max-width: 620px;
}

.temp-password code {
    font-weight: 800;
    color: var(--primary-dark);
}

.settings-hub-head {
    margin-bottom: 24px;
}

.settings-hub-head h1 {
    margin: 0 0 4px;
    color: var(--primary-dark);
}

.settings-hub {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.settings-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 20px;
    text-align: left;
    font: inherit;
    color: inherit;
    background: var(--card-bg);
    border: 1px solid #efe5db;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(51, 40, 43, .12);
}

.settings-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.settings-card-icon {
    color: var(--primary);
    margin-bottom: 6px;
}

.settings-card-icon svg {
    display: block;
    width: 26px;
    height: 26px;
}

.settings-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.settings-card-desc {
    font-size: .88rem;
    line-height: 1.4;
    color: var(--muted);
}

.settings-card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    min-width: 24px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    text-align: center;
}

.modal--wide {
    max-width: 880px;
}

.modal-divider {
    border: none;
    border-top: 1px solid #efe5db;
    margin: 20px 0;
}

.settings-subtitle {
    margin: 0 0 12px;
    font-size: 1.05rem;
    color: var(--primary-dark);
}

.modal-body input[type="time"] {
    width: auto;
    min-width: 110px;
}

.admin-actions form {
    display: inline-block;
}

.admin-actions form .btn {
    margin-right: 6px;
    margin-bottom: 4px;
}

.profile-inline-form {
    display: inline-block;
}

/* Profile tabs */
.profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

.profile-tabs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-tab {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-tab summary {
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.profile-tab summary::-webkit-details-marker {
    display: none;
}

.profile-tab summary:hover {
    background: #fbf6f0;
}

.profile-tab-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-tab-title .card-icon {
    margin: 0;
}

.profile-tab-title h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.profile-tab[open] summary {
    border-bottom: 2px solid #efe5db;
}

.profile-tab-chevron {
    margin-left: auto;
    width: 10px;
    height: 10px;
    border-right: 2.5px solid var(--muted);
    border-bottom: 2.5px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.profile-tab[open] .profile-tab-chevron {
    transform: rotate(225deg);
}

.profile-tab summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.profile-tab-body {
    padding: 24px;
}

.profile-tab-body .form {
    max-width: none;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    padding: 0;
}

@media (max-width: 860px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.reschedule-form input[type="date"],
.reschedule-form select {
    width: auto;
    padding: 8px 10px;
    margin-right: 6px;
    border: 2px solid #efe5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

/* Chat */
.chat-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    max-height: 460px;
    overflow-y: auto;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-empty {
    margin: 0;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 72%;
}

.chat-msg.customer {
    align-self: flex-start;
}

.chat-msg.staff {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-bubble {
    padding: 10px 16px;
    border-radius: 8px;
    background: #f3e6de;
    color: var(--text);
    word-wrap: break-word;
    white-space: pre-wrap;
}

.chat-msg.staff .chat-bubble {
    background: var(--primary-dark);
    color: #fff;
}

.chat-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 4px;
}

.chat-input-form {
    max-width: none;
}

.chat-input {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.chat-input textarea {
    flex: 1;
}

.chat-input .btn {
    margin-top: 0;
    white-space: nowrap;
}

.chat-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 6px;
    background: #d64545;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
}

@media (max-width: 860px) {
    .chat-input {
        flex-direction: column;
    }

    .chat-input textarea {
        width: 100%;
    }

    .chat-input .btn {
        align-self: flex-end;
    }
}

/* Footer */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 300;
    background: var(--primary-dark);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

.cal-day:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: -3px;
}

/* Responsive */
@media (max-width: 860px) {
    .hero-grid,
    .about-grid,
    .about-grid-3 {
        grid-template-columns: 1fr;
    }

    .book-layout {
        grid-template-columns: 1fr;
    }

    .book-summary {
        position: static;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 20px;
        box-shadow: var(--shadow);
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }
}

/* ===== Hero photo ===== */
.hero-photo-wrap {
    text-align: center;
}

.hero-photo {
    max-width: 100%;
    max-height: 360px;
    width: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: inline-block;
    animation: floaty 3s ease-in-out infinite alternate;
}

@keyframes floaty {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* ===== Placement badge ===== */
.placement-badge {
    display: inline-block;
    background: #e0eef2;
    color: #10395a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.placement-badge.placement-homepage {
    background: var(--accent);
    color: #4d3a00;
}

.placement-badge.placement-shop {
    background: #e8f5e9;
    color: #14461a;
}

.placement-badge.placement-recent {
    background: #fff3e0;
    color: #5c3a00;
}

.placement-badge.placement-hidden {
    background: #eeeeee;
    color: #2c2c2c;
}

/* ===== Gallery homepage buttons ===== */
.gallery-meta form {
    display: inline-block;
    margin: 4px 6px 4px 0;
}

.gallery-card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

/* ===== Admin gallery ===== */
.admin-gallery .gallery-upload-card {
    margin-bottom: 36px;
}

.admin-gallery .gallery-upload-card .form-wide {
    max-width: 880px;
}

.admin-gallery .gallery-upload-card h3 {
    margin-bottom: 16px;
}

.admin-gallery .card .form {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.upload-grid {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: start;
}

.upload-drop {
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
    background: #fbf6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    text-align: center;
    padding: 16px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.upload-drop:hover,
.upload-drop:focus,
.upload-drop.is-dragging {
    background: #f7ece6;
    border-color: var(--primary-dark);
    outline: none;
}

.upload-drop-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 8px;
}

.upload-drop p {
    margin: 4px 0;
    font-weight: 700;
    color: var(--primary-dark);
}

.upload-preview {
    max-width: 100%;
    max-height: 220px;
    border-radius: calc(var(--radius) - 4px);
    object-fit: cover;
}

.upload-fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-options {
    border: none;
    padding: 0;
    margin: 4px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.upload-options legend {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.upload-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fbf6f0;
    border: 1px solid #efe5db;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.upload-option:hover {
    border-color: var(--primary);
}

.upload-option:has(input:checked) {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

.upload-hint {
    font-size: 0.85rem;
    margin-top: 4px;
}

.gallery-card[hidden] {
    display: none;
}

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

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(51, 40, 43, 0.5);
    backdrop-filter: blur(2px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay[hidden],
.ctx-menu[hidden],
.week-view[hidden] {
    display: none !important;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 32px rgba(51, 40, 43, 0.18);
    max-width: 640px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #efe5db;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.modal-body {
    padding: 8px 20px 20px;
    overflow-y: auto;
}

.day-booking-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px dashed #efe5db;
}

.day-booking-row:last-child {
    border-bottom: none;
}

.day-booking-time {
    font-weight: 700;
    min-width: 84px;
}

.day-booking-info {
    flex: 1;
    font-size: 0.9rem;
}

.day-booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.day-booking-actions .btn {
    margin: 0;
}

.modal-empty {
    text-align: center;
    color: var(--muted);
    padding: 24px;
}

.dog-photo-lg { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.booking-detail-header { display: flex; align-items: center; gap: 14px; padding: 4px 0 14px; }
.booking-detail-name { margin: 0; color: var(--primary-dark); }
.booking-detail-sub { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; padding: 12px 0; border-top: 1px solid #efe5db; border-bottom: 1px solid #efe5db; font-size: 0.92rem; }
.detail-label { color: var(--muted); }
.detail-value { font-weight: 600; }
.detail-notes, .detail-deposits { margin-top: 14px; }
.detail-section-title { font-weight: 700; color: var(--primary-dark); margin-bottom: 6px; }
.detail-notes p { margin: 0; white-space: pre-wrap; font-size: 0.92rem; }
.detail-deposits ul { margin: 0; padding-left: 18px; font-size: 0.92rem; }

/* ===== Context menu ===== */
.ctx-menu {
    position: fixed;
    z-index: 300;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(51, 40, 43, 0.16);
    padding: 6px;
    min-width: 180px;
}

.ctx-menu-item {
    display: block;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.ctx-menu-item:hover {
    background: #f7ece6;
}

/* ===== Calendar closed / drag states ===== */
.cal-day-closed {
    background: repeating-linear-gradient(45deg, rgba(196, 129, 143, 0.06) 0 10px, transparent 10px 20px);
}

.cal-closed-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 6px;
    background: #fbe1e1;
    color: #d64545;
    font-size: 0.68rem;
    font-weight: 700;
}

.cal-day-drop {
    outline: 3px dashed var(--primary);
    outline-offset: -3px;
    background: #f7ece6;
}

.cal-book-dragging {
    opacity: 0.4;
}

/* ===== Calendar booking status colors ===== */
.cal-book-pending {
    border-left-color: #f0b429;
    background: #fff9e8;
}

.cal-book-confirmed {
    border-left-color: #2e9e5b;
    background: #eefaf2;
}

.cal-book-cancelled {
    border-left-color: #d64545;
    background: #fdf0f0;
}

.cal-book-completed {
    border-left-color: #4f46e5;
    background: #f0f1fe;
}

.cal-day {
    cursor: pointer;
}

/* ===== Week view ===== */
.week-view {
    margin-top: 20px;
}

.week-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    overflow-x: auto;
    min-width: 720px;
}

.week-day {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    min-height: 160px;
}

.week-day-head {
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--primary-dark);
    margin-bottom: 10px;
    border-bottom: 2px solid #efe5db;
    padding-bottom: 6px;
}

.week-book {
    font-size: 0.8rem;
    padding: 4px 6px;
    margin-bottom: 6px;
    background: #faf5ef;
    border-left: 3px solid var(--secondary);
    border-radius: 4px;
}

.week-book a {
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.week-nav {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.calendar-nav-group {
    display: flex;
    gap: 8px;
    align-items: center;
}

.week-day-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.cal-more {
    cursor: pointer;
}

/* ===== Calendar hint ===== */
.calendar-hint {
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* ===== Admin booking form ===== */
.admin-toolbar h2 {
    margin: 0;
}

/* ===== Size table ===== */
.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin: -24px 0 32px;
    font-size: 1.05rem;
}

.table-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    overflow-x: auto;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
}

.size-table thead th {
    font-family: 'Fraunces', serif;
    font-size: 1.05rem;
    color: var(--primary-dark);
    padding: 14px 12px;
    border-bottom: 2px solid var(--primary);
}

.size-table tbody td {
    padding: 16px 12px;
    border-bottom: 1px dashed #efe5db;
    color: var(--text);
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

.size-table tbody tr:hover {
    background: var(--bg);
}

.size-label {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    color: var(--primary-dark);
}

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

.size-note {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 20px;
}

.size-reference {
    max-width: 860px;
    margin: 16px auto 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.size-reference p {
    margin: 0;
}

/* ===== Service manager (settings) ===== */
.settings-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.settings-section-head h3 {
    margin-bottom: 2px;
}

.settings-section-head p {
    margin: 0;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.svc-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.svc-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.svc-card-head h3 {
    flex: 1;
    margin: 0;
    font-size: 1.1rem;
}

.svc-card-head .status-badge {
    white-space: nowrap;
}

.svc-desc {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

.svc-prices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.svc-price {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    background: #f7ece6;
    border: 1px solid #efe5db;
    border-radius: 6px;
    padding: 4px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.svc-price b {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
}

.svc-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.svc-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.svc-actions form {
    margin: 0;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--primary);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--primary-dark);
    font-size: 1rem;
    line-height: 1;
}

.btn-icon:disabled,
.btn-icon:disabled:hover {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.svc-card-inactive {
    opacity: 0.7;
}

/* Service modals */
.modal-body .form {
    max-width: none;
    padding: 0;
    box-shadow: none;
    background: transparent;
}

.form-hint {
    font-size: 0.82rem;
    margin-top: 2px;
}

.modal-footer {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.modal-footer .btn {
    margin: 0;
}

.modal > .modal-footer {
    flex-shrink: 0;
    margin-top: 0;
    padding: 14px 20px;
    border-top: 1px solid #efe5db;
    justify-content: flex-end;
    background: #fff;
}

.form-checkbox {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    padding-top: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
}

.form-checkbox input {
    width: auto;
}

/* ===== Admin responsive ===== */
@media (max-width: 860px) {
    .svc-grid {
        grid-template-columns: 1fr;
    }

    .form-row-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .week-grid {
        min-width: 720px;
    }

    .day-booking-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .modal {
        max-height: 90vh;
    }
}

/* ===== Admin gallery AI editor ===== */
.ai-modal .modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ai-original img {
    width: 100%;
    max-height: 260px;
    object-fit: contain;
    border-radius: var(--radius);
    background: repeating-conic-gradient(#f0f0f0 0% 25%, #ffffff 0% 50%) 50% / 20px 20px;
}

.ai-original p {
    margin: 6px 0 0;
    text-align: center;
}

.ai-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-replace {
    border-top: 1px dashed #efe5db;
    padding-top: 14px;
}

.ai-replace h4 {
    margin: 0 0 10px;
    color: var(--primary-dark);
}

.ai-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    align-items: center;
}

.ai-prompt-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
}

.ai-prompt-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid #efe5db;
    border-radius: var(--radius);
    background: #fff;
}

.ai-prompt-meta {
    flex: 1;
    min-width: 0;
}

.ai-prompt-meta strong {
    display: block;
    margin-bottom: 2px;
    color: var(--primary-dark);
}

.ai-prompt-meta span {
    display: block;
    color: #8a8178;
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ai-replace textarea {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.ai-status {
    border-top: 1px dashed #efe5db;
    padding-top: 14px;
}

.ai-result img {
    width: 100%;
    max-height: 360px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid #efe5db;
}

.ai-result-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

/* ===== Before/After gallery ===== */
.gallery-item.is-before img {
    transform: none;
}

.gallery-item {
    position: relative;
}

.ba-before-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: inline-block;
    background: var(--accent);
    color: #7a5a00;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    pointer-events: none;
}

.placement-badge.placement-before {
    background: #e0eef2;
    color: #0e3a61;
}

.placement-badge.placement-after {
    background: var(--accent);
    color: #4d3a00;
}

.pair-thumb {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 4px;
    object-fit: cover;
}

.ba-modal-body {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}

.ba-modal-body .ba-figure {
    flex: 1 1 260px;
    min-width: 0;
    margin: 0;
    text-align: center;
}

.ba-modal-body .ba-figure img {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid #efe5db;
}

.ba-modal-body .ba-before-badge,
.ba-modal-body .ba-after-badge {
    position: static;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 6px;
}

.ba-modal-body .ba-before-badge {
    background: #e0eef2;
    color: #1565c0;
}

.ba-modal-body .ba-after-badge {
    background: var(--accent);
    color: #7a5a00;
}

/* ===== Admin gallery card ===== */
.upload-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.gallery-card-media {
    position: relative;
}

.gallery-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    pointer-events: none;
    z-index: 1;
}

.gallery-card-badges .placement-badge,
.gallery-card-badges .featured-badge {
    margin-bottom: 0;
}

.gallery-card-hover-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 1;
}

.gallery-card:hover .gallery-card-hover-actions,
.gallery-card:focus-within .gallery-card-hover-actions {
    opacity: 1;
}

@media (hover: none) {
    .gallery-card-hover-actions {
        opacity: 1;
    }
}

.gallery-card-hover-actions .btn-danger {
    background: #d64545;
    color: #fff;
}

.inline-form {
    display: inline-block;
}

.gallery-card-title {
    margin-bottom: 2px;
}

.gallery-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
}

.gallery-control-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.gallery-meta .gallery-control-form {
    display: flex;
}

.gallery-control-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.gallery-select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #efe5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.9rem;
    color: var(--text);
    cursor: pointer;
}

.gallery-select:focus {
    outline: none;
    border-color: var(--primary);
}

.gallery-pair-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid #f1e9e1;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.gallery-pair-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pair-name {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pair-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.pair-pick {
    width: 48px;
    height: 48px;
    padding: 2px;
    border: 2px solid #efe5db;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pair-pick img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}

.pair-pick:hover {
    border-color: var(--accent);
}

.pair-pick.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(51, 40, 43, 0.25);
}

/* ===== Month mini time-grid ===== */
.cal-day { position: relative; height: 132px; overflow: hidden; padding: 0; }
.cal-day-num { position: absolute; top: 4px; left: 8px; z-index: 2; margin: 0; }
.cal-day-body { position: absolute; top: 26px; left: 4px; right: 4px; bottom: 4px; overflow: hidden; }
.cal-tblock {
    position: absolute; box-sizing: border-box;
    border-left: 3px solid var(--secondary);
    border-radius: 3px; padding: 1px 4px;
    font-size: 0.68rem; line-height: 1.25;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    cursor: pointer;
}
.cal-tblock.cal-book-pending { background: #fff9e8; border-left-color: #f0b429; }
.cal-tblock.cal-book-confirmed { background: #eefaf2; border-left-color: #2e9e5b; }
.cal-tblock.cal-book-cancelled { background: #fdf0f0; border-left-color: #d64545; }
.cal-tblock.cal-book-completed { background: #f0f1fe; border-left-color: #4f46e5; }
.cal-tblock.cal-book-short { background: #e0eef2; border-left-color: #0e7490; }
.cal-tblock-text { display: block; }
.cal-more {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
    background: #fff; padding: 1px 6px; font-size: 0.7rem;
    color: var(--muted); font-weight: 700; cursor: pointer;
    border-top: 1px solid #f1e9e1;
}
.cal-day-off-row { position: absolute; top: 2px; right: 4px; z-index: 2; display: flex; gap: 2px; pointer-events: none; }
.cal-day-off-chip {
    display: inline-block; background: #fbe1e1; color: #d64545;
    border-radius: 6px; padding: 0 6px; font-size: 0.6rem; font-weight: 700;
}
.week-day-off { display: block; margin-top: 4px; font-size: 0.68rem; color: #d64545; font-weight: 700; }

/* ===== Day view ===== */
.day-view { margin-top: 20px; }
.day-nav { display: flex; gap: 12px; justify-content: center; align-items: center; margin-bottom: 16px; }
.day-nav h3 { margin: 0; }
.day-banner { text-align: center; padding: 40px; background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--muted); font-weight: 700; }
.day-off-line { margin-top: 8px; }
.day-sched-wrap { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.day-grid { display: flex; background: var(--card-bg); border-radius: 0; box-shadow: none; overflow: auto; max-height: calc(100vh - 280px); padding-top: 12px; }
.day-view.day-view-fill .day-grid { height: calc(100vh - 280px); min-height: 320px; }
.day-time-axis { width: 64px; position: relative; border-right: 1px solid #f1e9e1; }
.day-hour-label {
    position: absolute; right: 8px; transform: translateY(-50%);
    font-size: 0.68rem; font-weight: 700; color: var(--muted);
    white-space: nowrap;
}
.day-lanes { position: relative; flex: 1; min-width: 0; }
.day-lane { position: absolute; top: 0; height: 100%; }
.day-lane + .day-lane { border-left: 1px dashed #f1e9e1; }
.day-head-row { display: flex; background: var(--card-bg); border-bottom: 2px solid #efe5db; height: 28px; }
.day-head-spacer { width: 64px; flex: none; }
.day-head-lanes { position: relative; flex: 1; min-width: 0; }
.day-head-cell {
    position: absolute; top: 0; bottom: 0; box-sizing: border-box;
    padding: 0 8px; font-size: 0.72rem; font-weight: 700; text-align: center;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    line-height: 26px;
}
.day-head-cell + .day-head-cell { border-left: 1px dashed #f1e9e1; }
.day-gridlines {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: repeating-linear-gradient(to bottom, transparent 0 calc(48px - 1px), #f1e9e1 calc(48px - 1px) 48px);
}
.day-block {
    position: absolute; box-sizing: border-box; border-left: 3px solid var(--secondary);
    border-radius: 4px; padding: 2px 6px; font-size: 0.72rem; line-height: 1.3;
    overflow: hidden; cursor: pointer;
    z-index: 2;
}
.day-block.cal-book-pending { background: #fff9e8; border-left-color: #f0b429; }
.day-block.cal-book-confirmed { background: #eefaf2; border-left-color: #2e9e5b; }
.day-block.cal-book-cancelled { background: #fdf0f0; border-left-color: #d64545; }
.day-block.cal-book-completed { background: #f0f1fe; border-left-color: #4f46e5; }

/* ===== Context menu day-off picker ===== */
.ctx-menu-back { color: var(--muted); font-size: 0.78rem; }
.ctx-menu-picker-list { max-height: 260px; overflow-y: auto; }
.ctx-menu-item.ctx-menu-day-off-on { color: #d64545; }

.gallery-control-check {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 2px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
}

.gallery-control-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ===== Calendar side panel layout ===== */
.calendar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
}

.calendar-main {
    min-width: 0;
}

.calendar-side {
    position: sticky;
    top: 88px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.calendar-side-title {
    margin: 0;
    color: var(--primary-dark);
    font-size: 1.3rem;
    line-height: 1.2;
}

.calendar-side .calendar-nav-group {
    width: 100%;
}

.calendar-side .calendar-nav-group .btn,
.calendar-side .view-switch .btn {
    flex: 1;
    justify-content: center;
    text-align: center;
}

.calendar-side .view-switch {
    width: 100%;
}

.calendar-side .btn-primary {
    width: 100%;
    text-align: center;
}

.calendar-side .calendar-groomer-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-side .calendar-groomer-filter select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e7d8cc;
    border-radius: 8px;
    font: inherit;
    background: #fff;
}

.calendar-side .calendar-groomer-filter .btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1100px) {
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    .calendar-side {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .calendar-side-title {
        flex: 1 1 100%;
    }
    .calendar-side .calendar-nav-group,
    .calendar-side .view-switch,
    .calendar-side .calendar-groomer-filter {
        flex: 1 1 auto;
        width: auto;
    }
    .calendar-side .btn-primary {
        width: auto;
    }
}

/* ===== Segmented control (admin gallery) ===== */
.seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 3px;
    background: #f3e6de;
    border-radius: 6px;
}

.seg-btn {
    border: none;
    background: transparent;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: #fff; color: var(--primary-dark); box-shadow: 0 1px 3px rgba(51, 40, 43, 0.15); }

.seg-upload { width: 100%; }
.seg-upload .seg-btn { flex: 1; text-align: center; }

/* ===== Featured toggle (admin gallery) ===== */
.featured-toggle {
    padding: 4px 8px;
    border: 1px solid #efe5db;
    border-radius: 8px;
    background: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--muted);
    cursor: pointer;
    align-self: flex-start;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.featured-toggle:hover { border-color: var(--accent); }
.featured-toggle.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #4d3a00;
}

/* ===== Toasts ===== */
.toast-stack {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
}

.toast {
    padding: 12px 16px;
    border-radius: 6px;
    background: #33282b;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    animation: toast-in 0.2s ease;
}

.toast-error { background: #d64545; }
.toast-success { background: #2e9e5b; }
.toast.is-leaving { opacity: 0; transform: translateY(-6px); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Network status banner ===== */
.net-status {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    max-width: 320px;
    padding: 12px 16px;
    border-radius: 6px;
    background: #33282b;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transform: translateX(120%);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.net-status:not([hidden]) { transform: translateX(0); }
.net-status.is-offline { background: #d64545; }
.net-status.is-online { background: #2e9e5b; }
.net-status.is-leaving { opacity: 0; transform: translateX(120%); }

/* ===== Pair block (admin gallery) ===== */
.pair-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.pair-link-btn { align-self: flex-start; }

/* ===== Calendar drag & now-line ===== */
.week-day-drop {
    outline: 3px dashed var(--primary);
    outline-offset: -3px;
    background: #f7ece6;
}

.day-lane-drop {
    background: #f7ece6;
}

.day-now-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0245e;
    z-index: 1;
    pointer-events: none;
}

.day-now-line::after {
    content: '';
    position: absolute;
    left: -4px;
    top: -4px;
    width: 9px;
    height: 9px;
    background: #e0245e;
    border-radius: 50%;
}

/* ===== Upload wizard ===== */
.wizard-question {
    font-weight: 700;
    font-size: 1.05rem;
    margin: 0 0 14px;
}

.wizard-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wizard-choice {
    min-width: 110px;
}

.wizard-steps {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 18px;
}

.wizard-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #efe5db;
    transition: background 0.15s ease;
}

.wizard-dot.is-active {
    background: var(--primary);
}

.wizard-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.wizard-error {
    margin-top: 10px;
    color: #d64545;
    font-weight: 700;
}

.wizard-link-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

#wizardLinkPicker {
    display: block;
}

.dog-photo-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }

/* Upload wizard fade + modal animations */
.upload-fade {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.upload-fade.is-visible {
    opacity: 1;
}

@keyframes wizard-in {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes wizard-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to { opacity: 0; transform: translateY(28px) scale(0.96); }
}

#upload_wizard_modal.modal-overlay {
    background: transparent;
    backdrop-filter: none;
}

#upload_wizard_modal .modal {
    animation: wizard-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}

#upload_wizard_modal.is-closing {
    pointer-events: none;
}

#upload_wizard_modal.is-closing .modal {
    animation: wizard-out 0.28s ease both;
}

/* Wizard step transitions */
.wizard-step {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.wizard-step.is-fading-out {
    opacity: 0;
    transform: translateY(12px);
}

@keyframes step-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.wizard-step.is-fading-in {
    animation: step-in 0.3s ease both;
}

/* ===== Booking wizard (customer) ===== */
#booking_wizard_modal.modal-overlay {
    background: transparent;
    backdrop-filter: none;
}

#booking_wizard_modal .modal {
    animation: wizard-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}

#booking_wizard_modal.is-closing {
    pointer-events: none;
}

#booking_wizard_modal.is-closing .modal {
    animation: wizard-out 0.28s ease both;
}

/* ===== Before/After viewer modal ===== */
#baModal.modal-overlay {
    background: transparent;
    backdrop-filter: none;
}

#baModal .modal {
    animation: wizard-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}

#baModal.is-closing {
    pointer-events: none;
}

#baModal.is-closing .modal {
    animation: wizard-out 0.28s ease both;
}

/* ===== Generic white-fade modal (site-wide) ===== */
.modal-overlay.fade-modal {
    background: transparent;
    backdrop-filter: none;
}
.fade-modal .modal {
    animation: wizard-in 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
    will-change: transform, opacity;
}
.fade-modal.is-closing {
    pointer-events: none;
}
.fade-modal.is-closing .modal {
    animation: wizard-out 0.28s ease both;
}

#booking_wizard_modal .form {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: none;
}

#booking_wizard_modal .wizard-footer {
    justify-content: flex-end;
}

.book-trigger-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}

.book-trigger-card h2 {
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.book-trigger-card p {
    margin: 0 0 22px;
    color: var(--muted);
}

.btn-lg {
    font-size: 1.05rem;
    padding: 14px 34px;
}

.bk-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.bk-cal-head h4 {
    margin: 0;
    color: var(--primary-dark);
}

.bk-cal-nav-btn {
    background: #f7ece6;
    border: 1px solid #efe5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text);
}

.bk-cal-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bk-cal-weekdays,
.bk-cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.bk-cal-weekdays {
    background: #f7ece6;
    border-bottom: 2px solid #efe5db;
}

.bk-cal-weekday {
    padding: 10px;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.bk-cal-days {
    border: 1px solid #f1e9e1;
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
}

.bk-cal-day {
    position: relative;
    min-height: 56px;
    padding: 8px 6px;
    border-right: 1px solid #f1e9e1;
    border-bottom: 1px solid #f1e9e1;
    text-align: center;
    font-size: 0.85rem;
    cursor: pointer;
}

.bk-cal-day:nth-child(7n) {
    border-right: none;
}

.bk-cal-day-out {
    background: #faf7f4;
    cursor: default;
}

.bk-cal-day-num {
    display: inline-block;
    min-width: 24px;
    padding: 2px 0;
    font-weight: 700;
}

.bk-cal-today .bk-cal-day-num {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 50%;
}

.bk-cal-day.is-available:hover,
.bk-cal-day.is-available:focus-visible {
    background: #fdf3ea;
    outline: none;
}

.bk-cal-day.is-available:hover .bk-cal-day-num,
.bk-cal-day.is-available:focus-visible .bk-cal-day-num {
    color: var(--primary-dark);
    font-weight: 800;
}

.bk-cal-day.is-selected {
    background: var(--primary);
}

.bk-cal-day.is-selected .bk-cal-day-num {
    color: #fff;
    font-weight: 800;
}

.bk-cal-day.is-unavailable {
    background: #faf7f4;
    color: #c9beb6;
    cursor: not-allowed;
}

.bk-cal-day.is-unavailable.reason-full {
    background: #fdf3ea;
    color: #b39483;
}

.bk-cal-day.is-unavailable .bk-cal-day-num {
    opacity: 0.6;
}

.bk-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--muted);
}

.bk-cal-legend span::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    margin-right: 5px;
}

.bk-cal-legend .lg-avail::before {
    background: var(--primary);
}

.bk-cal-legend .lg-closed::before {
    background: #c9beb6;
}

.bk-cal-legend .lg-full::before {
    background: #f0d9c9;
}

.bk-time-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.bk-time-chip {
    padding: 8px 14px;
    border: 2px solid #efe5db;
    border-radius: 20px;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.bk-time-chip:hover {
    border-color: var(--primary);
}

.bk-time-chip.is-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

[hidden] {
    display: none !important;
}

/* ===== Cross-document page transitions ===== */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: page-out 0.35s ease-out both;
}

::view-transition-new(root) {
    animation: page-in 0.35s ease-out both;
}

@keyframes page-out {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(-30px); }
}

@keyframes page-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

::view-transition-old(site-header),
::view-transition-new(site-header) {
    animation: none;
}

/* ===== Scroll reveal ===== */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.in-view {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation-duration: 0.01ms;
    }

    .js .reveal,
    .js .reveal.in-view {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

html.js.js-swap .reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

.logo-bubble svg {
    width: 26px;
    height: 26px;
}

.card-icon svg,
.emoji-paw svg,
.team-photo-placeholder svg,
.upload-drop-icon svg {
    width: 1em;
    height: 1em;
}

.btn svg,
.contact-icon,
.svc-duration-line svg,
.svc-meta svg,
.nav-toggle svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

.logo-bubble svg,
.nav-toggle svg,
.card-icon svg,
.emoji-paw svg,
.team-photo-placeholder svg,
.contact-icon,
.upload-drop-icon svg,
.svc-meta svg,
.svc-duration-line svg {
    color: var(--text);
}
