/* ==========================================================================
   DESIGN SYSTEM & CUSTOM VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --primary: hsl(76, 14%, 54%);       /* Sage Green #8F9779 */
    --primary-dark: hsl(76, 18%, 42%);  /* Darker Sage */
    --primary-light: hsl(76, 25%, 92%); /* Very light sage background */
    --secondary: hsl(155, 25%, 23%);    /* Forest Green #2C4A3E */
    --secondary-dark: hsl(155, 30%, 15%);
    --accent: hsl(37, 57%, 57%);       /* Soft Brass/Gold #D1A153 */
    --bg-warm: hsl(60, 10%, 98%);       /* Warm Cream #FBFBF9 */
    --text-dark: hsl(135, 4%, 18%);     /* Slate #2D312E */
    --text-muted: hsl(135, 4%, 48%);
    --border: hsl(60, 5%, 91%);         /* #EAEBE6 */
    --card-bg: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 74, 62, 0.06);
    --shadow-lg: 0 16px 40px rgba(44, 74, 62, 0.12);
    
    /* Typography */
    --font-title: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --timeline-hour-height: 100px;
    
    /* Layout */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Status Colors */
    --success: #4E8752;
    --danger: #C05850;
    --warning: #D9A036;
}

/* ==========================================================================
   RESET & BASICS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-warm);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
    font: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 600;
    line-height: 1.25;
    color: var(--secondary);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   REUSABLE UTILITIES & COMPONENTS
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

/* Veřejná nabídka vychází ze stejné typografie jako úvodní stránka. */
.public-service-card .service-detail-content h3,
.configured-service-price-card h3 {
    font-family: var(--font-title);
}

.public-service-icon {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.public-service-meta {
    display: flex;
    gap: 24px;
    margin-top: 18px;
}

.public-service-meta div {
    display: grid;
    gap: 2px;
}

.public-service-meta dt {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
}

.public-service-meta dd {
    margin: 0;
    color: var(--secondary);
    font-weight: 700;
}

.configured-services-pricing {
    margin: 72px auto 0;
    max-width: 1200px;
}

.configured-services-price-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 20px;
}

.configured-service-price-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.configured-service-price-card h3 {
    font-size: 1.1rem;
    margin: 0;
}

.configured-service-price-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.configured-service-price-card > div {
    align-items: center;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
}

.configured-service-price-card span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.configured-service-price-card strong {
    color: var(--secondary);
    font-size: 1.05rem;
}

.public-services-empty {
    color: var(--text-muted);
    grid-column: 1 / -1;
    text-align: center;
}

.btn-primary {
    background-color: var(--secondary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(44, 74, 62, 0.2);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(44, 74, 62, 0.3);
}

.btn-secondary {
    background-color: var(--primary-light);
    color: var(--secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary.active {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.btn-danger {
    background-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #a0443c;
    transform: translateY(-2px);
}

.btn-white {
    background-color: #ffffff;
    color: var(--secondary);
    box-shadow: var(--shadow-sm);
}

.btn-white:hover {
    background-color: var(--bg-warm);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.85rem;
    border-radius: var(--border-radius-sm);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-md);
}

/* Sections Common */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--secondary);
    color: #ffffff;
    padding: 16px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    transform: translateY(120px);
    opacity: 0;
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.error {
    background-color: var(--danger);
}

.toast.success {
    background-color: var(--success);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: sticky;
    top: 20px;
    margin: 0 auto 30px;
    width: calc(100% - 40px);
    max-width: 1200px;
    height: 64px;
    border-radius: 50px;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-top-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px 20px 10px;
    width: 100%;
}
.logo-top-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}
.logo-top-container a:hover .logo-top-img {
    transform: scale(1.03);
}

.header-container {
    width: 100%;
    height: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-brand {
    display: none;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.logo-link:hover .logo-img {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 6px;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-left {
    justify-self: start;
}

.nav-right {
    justify-self: end;
}

.nav-mobile {
    display: none;
}

.nav-link {
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--text-dark);
    padding: 8px 14px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-link i {
    font-size: 0.9rem;
    opacity: 0.6;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary);
    background-color: var(--primary-light);
}

.nav-link:hover i, .nav-link.active i {
    opacity: 1;
    color: var(--primary);
}

.nav-cta {
    margin-left: 8px;
}

/* ==========================================================================
   TAB SPA WRAPPER
   ========================================================================== */
.main-content {
    min-height: calc(100vh - 120px - 150px);
    padding-top: 0px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    padding: 40px 0 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   TAB: DOMŮ (HOME)
   ========================================================================== */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    padding: 0 20px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge {
    background-color: var(--primary-light);
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--secondary);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-quote {
    background-color: #ffffff;
    border-left: 4px solid var(--accent);
    padding: 16px 24px;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.quote-icon {
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    left: 10px;
}

.quote-text {
    font-style: italic;
    color: var(--text-dark);
    font-weight: 500;
}

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

.hero-image-wrapper {
    display: flex;
    justify-content: center;
}

.hero-image-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background-color: var(--primary-light);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.hero-image-card:hover .hero-image {
    transform: scale(1.05);
}

.hero-floating-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--border-radius-md);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.badge-icon {
    width: 36px;
    height: 36px;
    background-color: var(--accent);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-floating-badge strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
}

.hero-floating-badge span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Features Grid */
.features-section {
    padding: 40px 20px 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    padding: 35px 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-light);
    color: var(--secondary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--secondary);
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

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

/* Quick Contact Banner */
.quick-contact-banner {
    background-color: var(--secondary);
    color: #ffffff;
    border-radius: var(--border-radius-lg);
    padding: 40px 50px;
    margin: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    box-shadow: var(--shadow-lg);
}

.quick-contact-text h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.quick-contact-text p {
    color: var(--primary-light);
    font-size: 1.05rem;
    opacity: 0.8;
}

/* ==========================================================================
   TAB: SLUŽBY & CENÍK (SERVICES & PRICING)
   ========================================================================== */
.services-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px 80px;
}

.service-detail-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: 350px 1fr;
    border: 1px solid var(--border);
}

.service-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    position: relative;
    min-height: 250px;
}

.card-large-icon {
    font-size: 4.5rem;
    opacity: 0.9;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
}

.service-detail-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-detail-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.service-detail-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.service-highlights {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.service-highlights li {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dark);
}

.text-primary {
    color: var(--primary);
}

.search-input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--bg-warm);
    transition: var(--transition);
    color: var(--text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(44, 74, 62, 0.15);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

/* ==========================================================================
   TAB: KALENDÁŘ REZERVACÍ (CALENDAR)
   ========================================================================== */
.admin-banner {
    display: none; /* Triggered via JS */
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
    color: #ffffff;
    border-radius: var(--border-radius-md);
    padding: 16px 24px;
    margin: 0 20px 30px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
    animation: slideIn 0.4s ease;
}

.admin-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.95rem;
}

.admin-banner-content i {
    font-size: 1.4rem;
    color: var(--accent);
}

.admin-banner-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-banner-actions .btn-logout {
    background-color: var(--danger);
    color: #ffffff;
}

.admin-banner-actions .btn-logout:hover {
    background-color: #a0443c;
}

.calendar-widget-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    padding: 0 20px;
}

.calendar-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow-md);
    min-width: 0;
}

.calendar-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.calendar-nav-btn {
    width: 40px;
    height: 40px;
    background-color: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--secondary);
}

.calendar-nav-btn:hover {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.calendar-month-title {
    font-size: 1.4rem;
    font-weight: 700;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.day-cell {
    aspect-ratio: 1;
    border-radius: var(--border-radius-md);
    background-color: var(--bg-warm);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
    user-select: none;
}

.day-cell:hover:not(.empty) {
    background-color: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.02);
}

.day-cell.empty {
    background-color: transparent;
    cursor: default;
}

.day-cell.free {
    background-color: #ffffff;
    border: 1px solid var(--border);
    color: var(--text-dark);
}

.day-cell.partial {
    background: linear-gradient(135deg, #fff 50%, #fff8e1 50%);
    border: 1px solid #f9a825;
    color: var(--text-dark);
}

.day-cell.partial::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f9a825;
}

.day-cell.busy {
    background-color: #f7f3ed;
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(192, 88, 80, 0.4);
}

.day-cell.busy::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--danger);
}

.day-cell.today {
    border: 2px solid var(--primary);
    font-weight: 700;
}

.day-cell.selected {
    background: var(--secondary) !important;
    color: #ffffff !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 4px 10px rgba(44, 74, 62, 0.25);
    text-decoration: none !important;
}

.day-cell.selected::after {
    background-color: var(--accent) !important;
}

/* ── Calendar Legend ─────────────────────────────────────────────────────── */
.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 16px;
    padding: 12px 16px;
    margin-top: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.legend-title {
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Dot indicators */
.legend-dot {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
}

.legend-dot.legend-free {
    background: #ffffff;
    border: 1.5px solid #d0d0d0;
}

.legend-dot.legend-partial {
    background: linear-gradient(135deg, #fff 50%, #fff8e1 50%);
    border: 1.5px solid #f9a825;
}

.legend-dot.legend-busy {
    background-color: #f7f3ed;
    border: 1.5px solid var(--danger);
    position: relative;
}

.legend-dot.legend-busy::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--danger);
}

.legend-dot.legend-today {
    background: #fff;
    border: 2px solid var(--primary);
    font-weight: 700;
}

.legend-dot.legend-selected {
    background: var(--secondary);
    border: 1.5px solid var(--secondary);
}

.legend-dot.legend-closed {
    background: repeating-linear-gradient(
        -45deg,
        rgba(0,0,0,0.08),
        rgba(0,0,0,0.08) 3px,
        transparent 3px,
        transparent 8px
    );
    border: 1.5px solid #bbb;
    opacity: 0.7;
}

/* Time Slots Column */
.time-slots-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    padding: 30px;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.time-slots-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.time-slots-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.selected-date-badge {
    background-color: var(--primary-light);
    color: var(--secondary);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    border: 1px solid var(--border);
}

.time-slots-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 300px;
}

.no-date-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    color: var(--text-muted);
    gap: 16px;
    padding: 40px 0;
}

.no-date-selected i {
    font-size: 3rem;
    opacity: 0.25;
}

/* Slot Card styling */
.time-slot-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    gap: 16px;
}

.time-slot-card.free {
    border-left: 4px solid var(--success);
}

.time-slot-card.busy {
    border-left: 4px solid var(--danger);
    background-color: var(--bg-warm);
}

.time-slot-card.blocked {
    border-left: 4px solid var(--text-muted);
    background-color: var(--bg-warm);
    opacity: 0.8;
}

.slot-time-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slot-time {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--secondary);
    min-width: 60px;
}

.slot-status {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 50px;
    display: inline-block;
}

.free .slot-status {
    background-color: #e8f5e9;
    color: var(--success);
}

.busy .slot-status {
    background-color: #ffebee;
    color: var(--danger);
}

.blocked .slot-status {
    background-color: var(--border);
    color: var(--text-muted);
}

.slot-admin-info-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.slot-admin-info-inline span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: rgba(0, 0, 0, 0.03);
    padding: 2px 6px;
    border-radius: 4px;
}

.slot-admin-info-inline span i {
    color: var(--primary);
}

/* Consecutive Slot Card Styling (#51) */
.time-slot-card.consecutive-slot {
    margin-top: 10px;
    border-top: 2px dashed #cbd5e1;
    position: relative;
}

.consecutive-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.73rem;
    font-weight: 600;
    color: #334155;
    background: #e2e8f0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 2px 8px;
    margin-left: 8px;
}

.badge-outside-hours {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 7px;
    padding: 2px 6px;
    border: 1px solid rgba(44, 74, 62, 0.35);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

.booking-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(44, 74, 62, 0.22);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    white-space: nowrap;
}

.slot-action-btn {
    cursor: pointer;
    background: none;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.time-slot-card.free .slot-action-btn:hover {
    background-color: rgba(78, 135, 82, 0.1);
    color: var(--success);
}

.time-slot-card.busy .slot-action-btn:hover,
.time-slot-card.blocked .slot-action-btn:hover {
    background-color: rgba(192, 88, 80, 0.1);
    color: var(--danger);
}

/* Floating admin login trigger style */
.admin-trigger-container {
    margin-top: 24px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   TAB: O NÁS (ABOUT US)
   ========================================================================== */
.about-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    padding: 0 20px 60px;
}

.about-text-column h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text-column p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.about-text-column strong {
    color: var(--secondary);
    font-weight: 600;
}

.about-quote {
    background-color: var(--primary-light);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    border: 1px solid var(--border);
    margin-top: 30px;
}

.about-quote h4 {
    margin-bottom: 12px;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 700;
}

.about-quote p {
    font-style: italic;
    color: var(--secondary-dark);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.about-photo-card {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.about-photo-placeholder {
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    gap: 16px;
}

.about-photo-placeholder span {
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.about-photo-caption {
    padding: 20px 30px;
}

.about-photo-caption strong {
    display: block;
    font-size: 1.05rem;
    color: var(--secondary);
}

.about-photo-caption span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.about-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 40px 20px 0;
}

.stat-box {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-box strong {
    display: block;
    font-size: 2rem;
    color: var(--secondary);
    font-family: var(--font-title);
    margin-bottom: 4px;
}

.stat-box span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* ==========================================================================
   TAB: KONTAKT (CONTACT)
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    padding: 0 20px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card-item {
    background-color: #ffffff;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    padding: 24px 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    background-color: var(--primary-light);
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-item-text h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.contact-item-text p {
    color: var(--text-dark);
    font-size: 1.05rem;
    font-weight: 600;
}

.contact-link {
    text-decoration: underline;
    text-decoration-color: var(--accent);
}

.contact-link:hover {
    color: var(--primary);
}

.location-context {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* Map Column styles */
.map-wrapper-card {
    background-color: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.contact-map-element {
    height: 420px;
    width: 100%;
    background-color: var(--border);
    z-index: 1; /* Keep map controls under modals */
}

.map-actions {
    padding: 20px 30px;
    display: flex;
    gap: 16px;
    background-color: #ffffff;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   MODAL / DIALOG COMPONENT
   ========================================================================== */
.modal-dialog {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: calc(100% - 32px);
    margin: auto;
    background-color: #ffffff;
    z-index: 10000;
    max-height: calc(100dvh - 32px);
    padding: 0;
    overflow: hidden;
}

/* Wide Modals for Admin / Edit (#49) */
@media (min-width: 768px) {
    .modal-dialog.modal-dialog-lg,
    .modal-dialog.modal-dialog-wide,
    .modal-dialog.schedule-modal,
    .modal-dialog.booking-dialog {
        max-width: min(85vw, 1100px);
        width: 80vw;
    }

    .booking-dialog .booking-form {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .booking-dialog .booking-admin-fields:not([style*="display: none"]) {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        width: 100%;
    }

    .booking-dialog .booking-admin-fields .booking-admin-duration {
        grid-column: span 1;
    }

    .booking-dialog .booking-form-columns {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        width: 100%;
        align-items: start;
    }
}

.modal-dialog::backdrop {
    background-color: rgba(44, 74, 62, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    display: flex;
    flex-direction: column;
    max-height: inherit;
}

.modal-header {
    padding: 24px 30px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px 30px 30px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.modal-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Form layout elements */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group.col {
    flex: 1;
}

.booking-admin-fields {
    margin-bottom: 20px;
    padding: 18px 20px;
    border: 1px dashed rgba(44, 74, 62, 0.26);
    border-radius: 12px;
    background: rgba(44, 74, 62, 0.035);
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
}

.booking-admin-fields .form-group {
    min-width: 0;
    margin: 0;
}

.booking-form-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.admin-booking-time-help {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--secondary);
}

.form-help-text {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.form-help-text code {
    background-color: var(--bg-warm);
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    font-family: monospace;
    font-size: 0.85rem;
}

.booking-context-info {
    background-color: var(--primary-light);
    border-radius: var(--border-radius-md);
    padding: 14px 20px;
    margin-bottom: 20px;
    border: 1px dashed var(--border);
}

.context-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.context-item i {
    font-size: 1.3rem;
    color: var(--secondary);
}

.context-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.context-item strong {
    font-size: 1.05rem;
    color: var(--secondary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: var(--secondary-dark);
    color: #ffffff;
    padding: 60px 0 40px;
    margin-top: 80px;
    border-top: 3px solid var(--accent);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
}

.footer-brand h4, .footer-brand .footer-logo {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand p {
    color: var(--primary-light);
    opacity: 0.7;
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 6px;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links a {
    color: var(--primary-light);
    opacity: 0.7;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--accent);
    padding-left: 4px;
}

.footer-copyright {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--primary-light);
    opacity: 0.5;
}

/* ==========================================================================
   PRIVACY PAGE (OSOBNÍ ÚDAJE)
   ========================================================================== */
.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.privacy-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.privacy-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.privacy-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.privacy-card h3 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.privacy-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.privacy-contact {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
}

.privacy-contact > i {
    font-size: 2rem;
    opacity: 0.85;
    flex-shrink: 0;
}

.privacy-contact > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.privacy-contact strong {
    font-size: 1rem;
    font-weight: 700;
}

.privacy-contact span {
    font-size: 0.88rem;
    opacity: 0.85;
}

.privacy-contact a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
}

.privacy-contact a:hover {
    opacity: 0.85;
}


/* ==========================================================================
   RESPONSIVENESS (MOBILE-FIRST BREAKPOINTS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.6rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .calendar-widget-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-media-column {
        order: -1;
    }
    
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    :root {
        --header-height: 60px;
    }
    
    .header {
        top: 12px;
        width: calc(100% - 24px);
        height: var(--header-height);
        border-radius: 40px;
    }
    
    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 20px;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        font-weight: 700;
        font-size: 1.1rem;
        color: var(--secondary);
        text-decoration: none;
    }

    .mobile-brand-icon {
        height: 24px;
        width: auto;
        object-fit: contain;
    }
    
    .menu-toggle {
        display: block;
        position: static;
        transform: none;
        padding: 6px;
    }
    
    .nav-desktop {
        display: none !important;
    }
    
    .nav-mobile {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 68px; /* Sits directly below the floating header capsule */
        left: 12px;
        width: calc(100% - 24px);
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: 24px;
        padding: 20px;
        gap: 12px;
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    
    .nav-mobile.open {
        display: flex;
        animation: slideIn 0.3s ease;
    }
    
    .main-content {
        padding-top: 95px;
    }
}

@media (max-width: 768px) {
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-contact-banner {
        padding: 30px;
        text-align: center;
        justify-content: center;
    }
    
    .service-detail-card {
        grid-template-columns: 1fr;
    }
    
    .service-img-placeholder {
        min-height: 180px;
    }
    
    .search-input-wrapper {
        max-width: 100%;
    }
    
    .time-slot-card {
        flex-direction: column;
        align-items: flex-start;
        position: relative;
    }
    
    .slot-action-btn {
        position: absolute;
        right: 20px;
        top: 16px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
    
    .footer-copyright {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================================================
   AUTHENTICATION UI STYLES
   ========================================================================== */
.auth-tab-btn {
    transition: var(--transition);
}
.auth-tab-btn:hover {
    color: var(--primary) !important;
}
.google-btn {
    transition: all 0.2s ease-in-out;
}
.google-btn:hover {
    background-color: #f8f9fa !important;
    border-color: #c6c6c6 !important;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15) !important;
}

/* ==========================================================================
   CONFIG HOURS & WEEKLY SCHEDULE UI STYLES
   ========================================================================== */

/* Hour chips (toggle buttons in grid) */
.config-hour-chip {
    padding: 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.12);
    background: #f8f9fa;
    color: var(--text-dark);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.88rem;
}
.config-hour-chip:hover {
    border-color: var(--primary);
    background: rgba(46, 125, 50, 0.05);
}
.config-hour-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 2px 4px rgba(46, 125, 50, 0.2);
}

/* Schedule generator tool styles */
.schedule-tools-box {
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--border-radius-md);
    padding: 14px;
    margin-bottom: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.schedule-tools-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.schedule-tools-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
}

.schedule-tools-select {
    padding: 6px 10px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.15);
    background-color: #fff;
    font-size: 0.85rem;
    color: var(--text-dark);
    outline: none;
    cursor: pointer;
}

.schedule-tools-input {
    width: 65px;
    padding: 5px 8px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 0.85rem;
    text-align: center;
}

.schedule-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.btn-tool {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    transition: all 0.2s;
}

.btn-tool:hover {
    background: #f1f3f5;
    border-color: #ced4da;
}

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

.btn-tool.btn-tool-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* Day-of-week tabs in schedule modal */
.schedule-day-tabs {
    display: flex;
    overflow-x: auto;
    border-bottom: 2px solid rgba(0,0,0,0.07);
    padding: 0 22px;
    gap: 2px;
    scrollbar-width: none;
}
.schedule-day-tabs::-webkit-scrollbar { display: none; }

.schedule-tab {
    padding: 12px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}
.schedule-tab:hover { color: var(--primary); background: rgba(46,125,50,0.05); }
.schedule-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.schedule-tab.closed-tab { color: #e57373; }
.schedule-tab.closed-tab.active { color: #c62828; border-bottom-color: #c62828; }

/* Toggle switch for "Zavřeno" */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.07);
}
.toggle-row.closed-mode {
    background: rgba(198, 40, 40, 0.05);
    border-color: rgba(198, 40, 40, 0.2);
}
.toggle-label {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
}
.toggle-label span { font-size: 0.82rem; font-weight: 400; color: var(--text-muted); display: block; }

/* HTML toggle switch */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 26px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    border-radius: 26px;
    transition: 0.3s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
input:checked + .slider { background-color: #c62828; }
input:checked + .slider:before { transform: translateX(20px); }

/* Closed day overlay in schedule panel */
.day-closed-overlay {
    text-align: center;
    padding: 28px 0 16px;
    color: #c62828;
    font-weight: 600;
    font-size: 1rem;
}
.day-closed-overlay i { font-size: 2rem; display: block; margin-bottom: 10px; opacity: 0.7; }

/* Closed days in calendar grid */
.day-cell.day-closed {
    opacity: 0.65;
    background: repeating-linear-gradient(
        -45deg,
        rgba(0,0,0,0.03),
        rgba(0,0,0,0.03) 3px,
        transparent 3px,
        transparent 8px
    );
    cursor: pointer;
}
.day-cell.day-closed:not(.day-disabled):hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Admin can add a regular reservation even on a closed day. */
.btn-admin-add-booking {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px auto 0;
    padding: 10px 20px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-admin-add-booking:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(44, 74, 62, 0.32);
}
.btn-admin-add-booking i { font-size: 1rem; }


/* Schedule modal – scrollovatelné tělo, vždy viditelné tlačítko uložit */
.schedule-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: min(90vh, 680px);
    display: grid;
    grid-template-rows: auto 1fr auto; /* header | scrollable body | actions */
}
.schedule-modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}
.schedule-modal-actions {
    padding: 16px 22px;
    border-top: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}



/* ==========================================================================
   SCHEDULE WEEK NAVIGATION BAR
   ========================================================================== */
.schedule-week-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-wrap: wrap;
}

/* Mode pills: Šablona / Konkrétní týden */
.schedule-mode-pills {
    display: flex;
    gap: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 20px;
    padding: 3px;
}
.schedule-mode-pill {
    padding: 4px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.schedule-mode-pill.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Week arrow nav */
.schedule-week-ctrl {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.schedule-week-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12);
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.2s;
    flex-shrink: 0;
    color: var(--text-dark);
}
.schedule-week-arrow:hover { background: var(--primary); color: white; border-color: var(--primary); }

.schedule-week-label {
    text-align: center;
    min-width: 160px;
}
.schedule-week-label strong { display: block; font-size: 0.88rem; color: var(--text-dark); }
.schedule-week-label span { font-size: 0.78rem; color: var(--text-muted); }

/* Override badge */
.badge-override {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(46,125,50,0.12);
    color: var(--primary);
}

/* Reset week button */
.btn-reset-week {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid rgba(198,40,40,0.3);
    background: rgba(198,40,40,0.06);
    color: #c62828;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-body);
}
.btn-reset-week:hover { background: rgba(198,40,40,0.15); }

@media (max-width: 480px) {
    .schedule-week-nav { justify-content: center; }
    .schedule-week-ctrl { width: 100%; }
}

/* ── Phone Visibility Styles ────────────────────────────────────────────── */
.header-phone {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(44, 74, 62, 0.05);
    transition: var(--transition);
}

.header-phone:hover {
    background-color: var(--primary);
    color: #ffffff;
}

@media (max-width: 991px) {
    .header-phone {
        display: none;
    }
}

/* Call Button in Hero */
.btn-call {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-call:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* Mobile Sticky Call Bar */
.mobile-call-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}

.mobile-call-btn {
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(44, 74, 62, 0.2);
    transition: transform 0.2s ease;
}

.mobile-call-btn:active {
    transform: scale(0.98);
}

/* Hide on desktop and tablet screens */
@media (min-width: 768px) {
    .mobile-call-bar {
        display: none;
    }
}

/* Add bottom spacing on mobile body so sticky bar doesn't cover content */
@media (max-width: 767px) {
    body {
        padding-bottom: 70px;
    }
}

/* Footer Phone and Email */
.footer-phone, .footer-email {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    opacity: 0.8;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 8px;
    transition: var(--transition);
}

.footer-phone:hover, .footer-email:hover {
    color: #ffffff;
    opacity: 1;
}

/* ── Expert Content and FAQ Section Styles ─────────────────────────────── */
.expert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.expert-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.expert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.expert-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(44, 74, 62, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.expert-card h3 {
    font-family: var(--font-title);
    font-size: 1.15rem;
    color: var(--text-dark);
    margin: 0;
}

.expert-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* FAQ Layout */
.faq-list {
    max-width: 800px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(44, 74, 62, 0.02);
}

.faq-question h4 {
    font-family: var(--font-title);
    font-size: 1.05rem;
    color: var(--text-dark);
    margin: 0;
}

.faq-toggle {
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 24px;
    border-top: 1px solid transparent;
}

.faq-answer p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    padding-bottom: 20px;
}

/* Active FAQ Item state */
.faq-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* enough to fit the text */
    padding-top: 20px;
    border-color: var(--border);
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

/* Media query overrides for Top Logo */
@media (max-width: 991px) {
    .logo-top-container {
        padding: 20px 15px 5px;
    }
    .logo-top-img {
        height: 52px;
    }
}

@media (max-width: 560px) {
    .public-service-meta,
    .automatic-backup-heading,
    .server-backup-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .configured-services-price-list {
        padding: 0;
    }
}

/* ==========================================================================
   ADMINISTRATION WORKSPACE STYLES (Redesign)
   ========================================================================== */

.automatic-backup-panel {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: grid;
    gap: 14px;
    margin: 22px 0;
    padding-top: 20px;
}

.automatic-backup-heading,
.automatic-backup-actions,
.server-backup-row,
.backup-toggle {
    align-items: center;
    display: flex;
}

.automatic-backup-heading,
.server-backup-row {
    justify-content: space-between;
    gap: 14px;
}

.automatic-backup-heading h4 {
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1rem;
    margin: 0 0 4px;
}

.automatic-backup-heading p {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin: 0;
}

.backup-toggle {
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    gap: 7px;
}

.backup-toggle input {
    accent-color: var(--secondary);
}

.server-backups-list {
    display: grid;
    gap: 8px;
}

.server-backup-row {
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    color: var(--text-dark);
    font-size: 0.84rem;
    padding: 9px 10px;
}

#admin-app {
    font-family: var(--font-body);
    background-color: #FAF9F6;
    color: #2C3E50;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

.admin-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.admin-sidebar {
    width: 260px;
    background-color: #1b352b; /* Deep premium forest green */
    color: #E8EFE9;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.admin-sidebar-header {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-brand-logo {
    width: min(190px, 100%);
    height: auto;
    object-fit: contain;
}

.admin-brand-title {
    font-family: var(--font-title);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 2.4px;
    color: #ffffff;
    text-align: center;
}

.admin-sidebar-menu {
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.admin-menu-item {
    background: none;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    color: #a3b899;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.admin-menu-item i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.admin-menu-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    color: #ffffff;
}

.admin-menu-item.active {
    background-color: var(--primary); /* #2C4A3E */
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.admin-sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.admin-avatar {
    width: 36px;
    height: 36px;
    background-color: #2C4A3E;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.admin-profile-info {
    display: flex;
    flex-direction: column;
}

.admin-profile-info strong {
    font-size: 0.88rem;
    color: #ffffff;
}

.admin-profile-info span {
    font-size: 0.72rem;
    color: #8F9779;
}

/* ── Main Area ──────────────────────────────────────────────────────────── */
.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.admin-desktop-header {
    background-color: #ffffff;
    padding: 16px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    box-sizing: border-box;
}

.admin-desktop-header h1 {
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #1b352b;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}

.admin-mobile-header {
    display: none; /* Desktop default */
}

.admin-content-viewport {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    box-sizing: border-box;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

/* ── Timeline (Google Calendar style) ────────────────────────────────────── */
.timeline-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.timeline-date-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-date-title {
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 10px;
    min-width: 180px;
    text-align: center;
}

.timeline-date-title:focus {
    outline: none;
}

.timeline-date-picker {
    min-height: 34px;
    border: 1px solid rgba(44, 74, 62, 0.18);
    border-radius: 7px;
    padding: 5px 8px;
    color: var(--text-dark);
    background: #fff;
    font: inherit;
    font-size: 0.82rem;
}

.timeline-date-nav button[hidden] {
    display: none;
}

.timeline-quick-options {
    display: flex;
    gap: 8px;
    align-items: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-view-menu-wrap {
    position: relative;
}

.admin-view-menu-button {
    gap: 7px;
}

.admin-view-menu-button .fa-chevron-down {
    font-size: 0.7rem;
}

.admin-view-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 260px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid rgba(27, 53, 43, 0.14);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(27, 53, 43, 0.18);
}

.admin-view-menu[hidden] {
    display: none;
}

.admin-view-menu button {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-dark);
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.admin-view-menu button:hover,
.admin-view-menu button:focus-visible {
    background: var(--primary-light);
    outline: none;
}

.admin-view-menu button > .fa-check {
    visibility: hidden;
    color: var(--secondary);
}

.admin-view-menu button[aria-checked="true"] {
    background: rgba(44, 74, 62, 0.08);
    color: var(--secondary);
}

.admin-view-menu button[aria-checked="true"] > .fa-check {
    visibility: visible;
}

.admin-view-menu kbd {
    padding: 1px 5px;
    border: 1px solid rgba(27, 53, 43, 0.16);
    border-radius: 4px;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
}

.timeline-workspace {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

.timeline-scroll-container {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 10px;
    overflow-x: auto;
}

.timeline-grid-wrapper {
    display: flex;
    min-width: 500px;
    position: relative;
}

.timeline-hours-col {
    width: 60px;
    flex-shrink: 0;
    padding-right: 15px;
    position: relative;
    user-select: none;
    box-sizing: border-box;
}

.timeline-hour-label {
    position: absolute;
    right: 15px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    line-height: 1;
    margin: 0;
    transform: translateY(-50%);
    white-space: nowrap;
}

.timeline-blocks-col {
    flex: 1;
    position: relative;
    box-sizing: border-box;
}

.timeline-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.timeline-grid-line {
    height: calc(var(--timeline-hour-height) / 2);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.timeline-grid-line.major {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.timeline-cards-container {
    position: relative;
    width: 100%;
    min-height: calc(var(--timeline-hour-height) * 10);
    cursor: crosshair;
}

/* Timeline Cards */
.timeline-card {
    position: absolute;
    box-sizing: border-box;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: grab;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    overflow: hidden;
    border: 2.5px solid #ffffff;
    border-left-width: 5px;
}

.timeline-card.is-dragging {
    cursor: grabbing;
    opacity: 0.82;
    z-index: 3;
    box-shadow: 0 6px 16px rgba(27, 53, 43, 0.24);
}

.timeline-card-compact {
    padding: 5px 8px;
}

.timeline-card-compact .timeline-card-header {
    font-size: 0.68rem;
    margin-bottom: 1px;
}

.timeline-card-compact .timeline-card-badge {
    font-size: 0.57rem;
    padding: 1px 4px;
}

.timeline-card-compact .timeline-card-client {
    font-size: 0.7rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    filter: brightness(0.98);
}

.timeline-card:focus-visible {
    outline: 3px solid #2C4A3E;
    outline-offset: 2px;
}

/* Card states */
.timeline-card.status-confirmed {
    background-color: #2C4A3E; /* Dark green primary */
    color: #ffffff;
    border-left-color: #1b352b;
}

.timeline-card.status-pending {
    background-color: #E8EFE9; /* Light sage */
    color: #2C4A3E;
    border-left-color: #8F9779;
}

.timeline-card.status-blocked {
    background-color: #f0f0f0; /* Light grey */
    color: #7f8c8d;
    border-left-color: #95a5a6;
}

/* Card internals */
.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    font-weight: 700;
    font-size: 0.78rem;
    opacity: 0.95;
    margin-bottom: 2px;
}

.timeline-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    margin: 6px 0 4px;
}

.timeline-card-client {
    font-size: 0.88rem;
    font-weight: 700;
}

.timeline-card-client-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.timeline-card-client-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.timeline-card-subline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.92;
}

.timeline-card-dot {
    opacity: 0.75;
}

.timeline-card-phone {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.14);
    color: inherit;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.timeline-card-phone:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.22);
}

.timeline-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    margin-top: auto;
}

.timeline-card-notes {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.88;
    font-size: 0.69rem;
}

.timeline-card-badge {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.65rem;
}

.status-pending .timeline-card-badge {
    background-color: rgba(44, 74, 62, 0.08);
}

.timeline-outside-hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 5px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.timeline-booking-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 1px 5px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.status-confirmed .timeline-outside-hours-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.status-confirmed .timeline-booking-source-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.status-pending .timeline-outside-hours-badge {
    background: rgba(44, 74, 62, 0.06);
    color: #2C4A3E;
}

.status-pending .timeline-booking-source-badge {
    background: rgba(44, 74, 62, 0.06);
    color: #2C4A3E;
}

/* Side Stats Panel */
.timeline-stats-panel {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    user-select: none;
}

.timeline-stats-panel h3 {
    font-family: var(--font-title);
    font-size: 1.1rem;
    margin: 0 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 10px;
    color: #1b352b;
}

.stat-item-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.stat-icon-box.blue { background-color: rgba(66, 133, 244, 0.1); color: #4285f4; }
.stat-icon-box.green { background-color: rgba(44, 74, 62, 0.1); color: #2C4A3E; }
.stat-icon-box.sage { background-color: rgba(143, 151, 121, 0.15); color: #5B7A6A; }
.stat-icon-box.orange { background-color: rgba(245, 124, 0, 0.1); color: #e65100; }
.stat-icon-box.gray { background-color: rgba(127, 140, 141, 0.12); color: #667274; }

.stat-value-info {
    display: flex;
    flex-direction: column;
}

.stat-value-info strong {
    font-size: 1.15rem;
    font-weight: 700;
}

.stat-value-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.admin-mobile-sticky-btn {
    display: none;
}

/* ── Admin reservation calendar views ─────────────────────────────────── */
.admin-calendar-multi-workspace,
.admin-calendar-month-workspace,
.admin-calendar-empty-workspace {
    width: 100%;
}

.admin-calendar-multi-card,
.admin-calendar-month-card,
.admin-calendar-empty {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
}

.admin-calendar-multi-card {
    overflow-x: auto;
    padding: 0 12px 14px;
}

.admin-calendar-scroll-hint {
    display: none;
    margin: 12px 4px 8px;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-calendar-time-grid {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-width: calc(64px + var(--admin-calendar-day-count) * 160px);
}

.admin-calendar-grid-corner {
    grid-column: 1;
    grid-row: 1;
    min-height: 70px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-calendar-days-head {
    display: grid;
    grid-column: 2;
    grid-row: 1;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-calendar-day-head {
    min-width: 0;
    padding: 13px 12px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-dark);
}

.admin-calendar-day-head strong,
.admin-calendar-day-head span {
    display: block;
}

.admin-calendar-day-head strong {
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1rem;
}

.admin-calendar-day-head span {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.admin-calendar-day-head.is-today {
    box-shadow: inset 0 3px 0 var(--primary);
    background: rgba(44, 74, 62, 0.04);
}

.admin-calendar-time-axis {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    color: var(--text-muted);
    user-select: none;
}

.admin-calendar-time-axis span {
    position: absolute;
    right: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    transform: translateY(-50%);
}

.admin-calendar-days-body {
    display: grid;
    grid-column: 2;
    grid-row: 2;
}

.admin-calendar-day-column {
    position: relative;
    min-width: 0;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    background-image: linear-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px), linear-gradient(rgba(0, 0, 0, 0.035) 1px, transparent 1px);
    background-size: 100% var(--timeline-hour-height), 100% calc(var(--timeline-hour-height) / 2);
    cursor: crosshair;
}

.admin-calendar-day-column.is-closed {
    background-color: rgba(127, 140, 141, 0.06);
    background-image: repeating-linear-gradient(-45deg, rgba(127, 140, 141, 0.08) 0 6px, transparent 6px 12px);
}

.admin-calendar-event {
    position: absolute;
    right: 4px;
    left: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 24px;
    padding: 3px 6px;
    overflow: hidden;
    border: 2px solid #ffffff;
    border-left-width: 4px;
    border-radius: 6px;
    color: inherit;
    font: inherit;
    font-size: 0.71rem;
    line-height: 1.12;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.admin-calendar-event strong,
.admin-calendar-event span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-calendar-event.status-confirmed {
    border-left-color: #1b352b;
    background: #2C4A3E;
    color: #ffffff;
}

.admin-calendar-event.status-pending {
    border-left-color: #8F9779;
    background: #E8EFE9;
    color: #2C4A3E;
}

.admin-calendar-event.status-exceptional {
    border-left-color: #f57c00;
    background: #fff3e0;
    color: #a84700;
}

.admin-calendar-event.status-blocked {
    border-left-color: #95a5a6;
    background: #f0f0f0;
    color: #667274;
}

.admin-calendar-event.is-online-booking::after {
    content: '\f0ac';
    position: absolute;
    top: 4px;
    right: 5px;
    font-family: "Font Awesome 6 Free";
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.9;
}

.admin-calendar-event.is-online-booking strong {
    padding-right: 12px;
}

.admin-calendar-event:hover,
.admin-calendar-event:focus-visible,
.admin-calendar-month-event:hover,
.admin-calendar-month-event:focus-visible {
    filter: brightness(0.96);
    outline: 3px solid rgba(44, 74, 62, 0.26);
    outline-offset: 1px;
}

.admin-calendar-month-card {
    overflow: hidden;
}

.admin-calendar-month-weekdays,
.admin-calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-calendar-month-weekdays {
    background: rgba(44, 74, 62, 0.035);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

.admin-calendar-month-weekdays span {
    padding: 10px 4px;
}

.admin-calendar-month-day {
    min-height: 128px;
    padding: 7px;
    border-right: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.admin-calendar-month-day:nth-child(7n) {
    border-right: 0;
}

.admin-calendar-month-day.is-outside-month {
    background: rgba(0, 0, 0, 0.018);
    opacity: 0.58;
}

.admin-calendar-month-day.is-closed {
    background-image: repeating-linear-gradient(-45deg, rgba(127, 140, 141, 0.055) 0 5px, transparent 5px 10px);
}

.admin-calendar-month-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(44, 74, 62, 0.55);
}

.admin-calendar-month-day-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 27px;
    min-height: 27px;
    padding: 0 6px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--secondary);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
}

.admin-calendar-month-day.is-today .admin-calendar-month-day-number {
    background: var(--primary);
    color: #ffffff;
}

.admin-calendar-month-day-number:hover,
.admin-calendar-month-day-number:focus-visible,
.admin-calendar-month-more:hover,
.admin-calendar-month-more:focus-visible {
    background: var(--primary-light);
    outline: 2px solid rgba(44, 74, 62, 0.3);
}

.admin-calendar-month-events {
    display: grid;
    gap: 3px;
    margin-top: 4px;
}

.admin-calendar-month-event,
.admin-calendar-month-more {
    display: flex;
    gap: 4px;
    min-width: 0;
    padding: 3px 5px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.66rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.admin-calendar-month-event strong,
.admin-calendar-month-event span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-calendar-month-event.status-confirmed { background: rgba(44, 74, 62, 0.15); color: #1b352b; }
.admin-calendar-month-event.status-pending { background: #E8EFE9; color: #2C4A3E; }
.admin-calendar-month-event.status-exceptional { background: #fff3e0; color: #a84700; }
.admin-calendar-month-event.status-blocked { background: #eeeeee; color: #667274; }

.admin-calendar-month-event.is-online-booking::after {
    content: '\f0ac';
    flex: 0 0 auto;
    align-self: center;
    font-family: "Font Awesome 6 Free";
    font-size: 0.6rem;
    font-weight: 900;
    line-height: 1;
}

.admin-calendar-month-more {
    color: var(--secondary);
}

.admin-calendar-year-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 20px;
}

.admin-calendar-year-month {
    min-width: 0;
    padding: 12px;
    border: 1px solid rgba(27, 53, 43, 0.1);
    border-radius: 9px;
    background: #ffffff;
}

.admin-calendar-year-month h2 {
    margin: 0 0 8px;
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1rem;
    text-transform: capitalize;
}

.admin-calendar-year-weekdays,
.admin-calendar-year-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.admin-calendar-year-weekdays {
    margin-bottom: 3px;
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 800;
    text-align: center;
}

.admin-calendar-year-day {
    position: relative;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--text-dark);
    font: inherit;
    font-size: 0.66rem;
    cursor: pointer;
}

.admin-calendar-year-day:hover,
.admin-calendar-year-day:focus-visible {
    background: var(--primary-light);
    outline: 2px solid rgba(44, 74, 62, 0.3);
    outline-offset: 0;
}

.admin-calendar-year-day.is-outside-month {
    color: rgba(44, 62, 80, 0.35);
}

.admin-calendar-year-day.is-today > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
}

.admin-calendar-year-day small {
    position: absolute;
    top: 2px;
    right: 3px;
    min-width: 10px;
    height: 10px;
    border-radius: 99px;
    background: var(--secondary);
    color: #ffffff;
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 10px;
}

.admin-calendar-agenda-card {
    display: grid;
    gap: 22px;
    max-width: 880px;
    padding: 24px;
}

.admin-calendar-agenda-day {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-calendar-agenda-day:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.admin-calendar-agenda-day h2 {
    margin: 3px 0 0;
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1rem;
    line-height: 1.25;
}

.admin-calendar-agenda-events {
    display: grid;
    gap: 8px;
}

.admin-calendar-agenda-event {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 2px solid #ffffff;
    border-left-width: 4px;
    border-radius: 8px;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-calendar-agenda-event time {
    font-weight: 800;
}

.admin-calendar-agenda-event span,
.admin-calendar-agenda-event span strong,
.admin-calendar-agenda-event span small {
    min-width: 0;
}

.admin-calendar-agenda-event span strong,
.admin-calendar-agenda-event span small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-calendar-agenda-event span small {
    margin-top: 2px;
    font-size: 0.74rem;
    opacity: 0.85;
}

.admin-calendar-agenda-event em {
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.admin-calendar-agenda-online-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin-top: 6px;
    padding: 2px 6px;
    border: 1px solid currentColor;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.9;
    white-space: nowrap;
}

.admin-calendar-agenda-event.status-confirmed { border-left-color: #1b352b; background: #2C4A3E; color: #ffffff; }
.admin-calendar-agenda-event.status-pending { border-left-color: #8F9779; background: #E8EFE9; color: #2C4A3E; }
.admin-calendar-agenda-event.status-exceptional { border-left-color: #f57c00; background: #fff3e0; color: #a84700; }
.admin-calendar-agenda-event.status-blocked { border-left-color: #95a5a6; background: #f0f0f0; color: #667274; }

.admin-calendar-empty {
    max-width: 560px;
    padding: 42px 28px;
    text-align: center;
}

.admin-calendar-empty > i {
    color: var(--primary);
    font-size: 2rem;
}

.admin-calendar-empty h2 {
    margin: 14px 0 7px;
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1.3rem;
}

.admin-calendar-empty p {
    margin: 0 0 20px;
    color: var(--text-muted);
}

/* ── Schedule Editor (Weekly / Template) ────────────────────────────────── */
.schedule-controls-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 15px;
}

.schedule-week-nav-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.schedule-week-title {
    font-family: var(--font-title);
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
}

.schedule-mode-select {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.schedule-scope-hint {
    max-width: 240px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.3;
}

.schedule-desktop-view {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(248px, 300px);
    gap: 24px;
    align-items: start;
    overflow: hidden;
}

.schedule-grid-container {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.schedule-time-header {
    padding: 12px 0;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
}

.schedule-day-header {
    padding: 12px 5px;
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    color: #1b352b;
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-day-header span.day-date {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: normal;
    margin-top: 2px;
}

.schedule-hours-axis {
    position: relative;
    height: 520px; /* 07:00 až 20:00, stejná osa jako mřížka */
}

.schedule-axis-hour {
    position: absolute;
    left: 0;
    right: 0;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    justify-content: center;
    text-align: center;
    line-height: 1;
    transform: translateY(-50%);
    pointer-events: none;
}

.schedule-grid-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-column: 2 / span 7;
    position: relative;
    height: 520px; /* 13 hours * 40px */
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

.schedule-day-column {
    position: relative;
    height: 100%;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    background-image: linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 100% 20px; /* 30-min intervals */
    overflow: visible;
}

.schedule-day-column.active-day {
    background-color: rgba(44, 74, 62, 0.05);
    box-shadow: inset 0 0 0 2px rgba(44, 74, 62, 0.45);
}

/* Sunday/Closed visual */
.schedule-day-column.closed-day {
    background-color: rgba(220, 53, 69, 0.02);
}

.closed-day-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: rotate(-15deg);
    pointer-events: none;
    opacity: 0.7;
}

/* Open slot interval block */
.schedule-interval-block {
    position: absolute;
    left: 8px;
    right: 8px;
    background-color: #E8EFE9;
    border: 1px solid rgba(44, 74, 62, 0.2);
    border-radius: 6px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2C4A3E;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: grab;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    font-family: inherit;
    appearance: none;
    padding: 0 7px 10px;
    user-select: none;
    touch-action: none;
}

.schedule-interval-block:hover {
    background-color: #dcedde;
    border-color: rgba(44, 74, 62, 0.4);
}

.schedule-interval-block.is-dragging {
    cursor: grabbing;
    opacity: 0.82;
    box-shadow: 0 4px 12px rgba(44, 74, 62, 0.22);
    z-index: 2;
}

.schedule-interval-block.selected {
    border: 2px solid var(--secondary);
    box-shadow: 0 0 0 3px rgba(44, 74, 62, 0.14);
}

.schedule-slot-preview {
    position: absolute;
    inset: 0 3px;
    pointer-events: none;
    opacity: 0.24;
    background: repeating-linear-gradient(to bottom, transparent 0 calc(var(--slot-step) - 1px), currentColor calc(var(--slot-step) - 1px) var(--slot-step));
}

.schedule-interval-label {
    pointer-events: none;
}

.schedule-interval-resize-handle {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 10px;
    cursor: ns-resize;
    border-radius: 0 0 5px 5px;
}

.schedule-interval-resize-handle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 3px;
    width: 24px;
    height: 2px;
    transform: translateX(-50%);
    border-radius: 2px;
    background: currentColor;
    opacity: 0.38;
}

.schedule-interval-block:hover .schedule-interval-resize-handle::after,
.schedule-interval-block:focus-visible .schedule-interval-resize-handle::after {
    opacity: 0.8;
}

.schedule-interval-block:focus-visible {
    outline: 3px solid rgba(44, 74, 62, 0.35);
    outline-offset: 2px;
}

.schedule-add-interval-after {
    position: absolute;
    left: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 28px;
    padding: 4px 6px;
    border: 1px dashed rgba(44, 74, 62, 0.48);
    border-radius: 6px;
    background: rgba(232, 239, 233, 0.96);
    color: var(--secondary);
    font: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.schedule-add-interval-after:focus-visible {
    outline: 3px solid rgba(44, 74, 62, 0.32);
    outline-offset: 2px;
}

.schedule-add-first-interval {
    transform: translateY(0);
}

.schedule-add-interval-after:hover {
    background: #dcedde;
}

.schedule-mobile-view {
    display: none;
}

.schedule-desktop-day-editor {
    min-width: 0;
    position: sticky;
    top: 12px;
    background: #fafcf9;
    border: 1px solid rgba(44, 74, 62, 0.12);
    border-radius: 10px;
    padding: 16px;
}

.schedule-editor-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 2px 0;
    border-top: 1px solid rgba(44, 74, 62, 0.12);
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.schedule-editor-legend > span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.schedule-copy-week-btn {
    line-height: 1.25;
    text-align: left;
}

.schedule-copy-day {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.schedule-copy-target {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
    padding: 10px 8px;
    font-size: 0.8rem;
}

.schedule-copy-day-button {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
}

.schedule-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.schedule-legend {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.legend-box {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 5px;
}

.legend-box.legend-open { background-color: #E8EFE9; border: 1px solid rgba(44, 74, 62, 0.2); }
.legend-box.legend-exception { background-color: #fff3e0; border: 1px solid rgba(245, 124, 0, 0.2); }

/* ── Clients & Tables ───────────────────────────────────────────────────── */
.clients-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

.clients-list-card, .services-list-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    padding: 12px 16px;
    font-weight: 700;
    color: var(--text-muted);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.01);
}

.admin-table td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.01);
}

.client-detail-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 24px;
    position: sticky;
    top: 30px;
}

.client-detail-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.client-detail-header h3 {
    margin: 0 0 5px;
    font-family: var(--font-title);
    font-size: 1.25rem;
    color: #1b352b;
}

.client-detail-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.client-detail-section {
    margin-bottom: 20px;
}

.client-detail-section h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.client-dogs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.client-dog-badge {
    background-color: rgba(44, 74, 62, 0.06);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(44, 74, 62, 0.12);
}

.client-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.client-history-item {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.82rem;
}

.client-history-date {
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 2px;
}

.client-history-details {
    color: var(--text-dark);
}

.client-actions,
.service-actions-inner {
    display: flex;
    gap: 6px;
}

.mobile-interval-time {
    font-weight: 700;
    color: var(--secondary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-interval-add {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.schedule-interval-add > div,
.schedule-interval-add .form-control,
.mobile-interval-row {
    min-width: 0;
}

.schedule-interval-add .form-control {
    width: 100%;
    padding: 10px 7px;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.schedule-interval-add-button {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    white-space: nowrap;
}

.admin-slot-editor {
    margin-bottom: 20px;
    padding: 14px;
    border: 1px solid rgba(44, 74, 62, 0.14);
    border-radius: 8px;
    background: rgba(44, 74, 62, 0.04);
}

.admin-slot-editor-title {
    display: block;
    margin-bottom: 4px;
    color: var(--secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.admin-slot-editor-help {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-slot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    max-height: 236px;
    overflow-y: auto;
    padding: 2px;
}

.admin-slot-toggle {
    min-height: 32px;
    padding: 5px 3px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    color: var(--text-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.admin-slot-toggle:hover {
    border-color: var(--primary);
}

.admin-slot-toggle.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.client-row-selected > td {
    background: rgba(44, 74, 62, 0.08) !important;
}

.clients-list-card .admin-table tbody tr[data-client-key] {
    cursor: pointer;
}

.modal-dialog > .toast {
    z-index: 1;
}

.admin-slot-toggle:focus-visible {
    outline: 3px solid rgba(44, 74, 62, 0.3);
    outline-offset: 1px;
}

/* ── Mobile Layouts & Overrides ────────────────────────────────────────── */
@media (max-width: 991px) {
    #admin-app {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: fixed;
        left: 0;
        top: 70px;
        bottom: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 10px 0 20px rgba(0, 0, 0, 0.15);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-sidebar-menu {
        padding: 16px;
    }

    .admin-desktop-header {
        display: none;
    }

    .admin-mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: #1b352b;
        color: #ffffff;
        padding: 0 20px;
        height: 70px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        z-index: 200;
    }

    .admin-mobile-menu-toggle {
        background: none;
        border: none;
        color: #ffffff;
        font-size: 1.4rem;
        cursor: pointer;
    }

    .admin-mobile-header h2 {
        font-family: var(--font-title);
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
        color: #ffffff;
    }

    .admin-mobile-profile {
        width: 34px;
        height: 34px;
        background-color: var(--primary);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        font-size: 0.85rem;
        border: 2px solid rgba(255, 255, 255, 0.2);
    }

    .admin-content-viewport {
        padding: 20px 20px 88px;
    }

    .timeline-workspace {
        grid-template-columns: 1fr;
    }

    .timeline-stats-panel {
        order: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 14px;
    }

    .timeline-stats-panel h3 {
        grid-column: 1 / -1;
        margin: 0;
        padding-bottom: 8px;
        font-size: 1rem;
    }

    .stat-item-row {
        gap: 8px;
    }

    .stat-icon-box {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
        font-size: 0.9rem;
    }

    .stat-value-info strong {
        font-size: 1rem;
    }

    .stat-value-info span {
        font-size: 0.7rem;
    }

    .admin-mobile-sticky-btn {
        display: block;
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 90;
    }

    .admin-mobile-sticky-btn .btn {
        width: 56px;
        height: 56px;
        min-height: 56px;
        padding: 0;
        border-radius: 50%;
        box-shadow: 0 8px 22px rgba(27, 53, 43, 0.32);
        font-size: 0;
    }

    .admin-mobile-sticky-btn .btn i {
        font-size: 1.2rem;
    }

    .timeline-scroll-container {
        padding-bottom: 80px; /* space for sticky button */
    }

    .timeline-controls-bar {
        align-items: stretch;
    }

    .timeline-date-nav,
    .timeline-quick-options {
        flex-wrap: wrap;
    }

    .timeline-date-title {
        flex: 1 1 145px;
        min-width: 0;
        margin: 0 4px;
    }

    .timeline-date-picker {
        flex: 1 1 150px;
    }

    .admin-view-menu {
        right: 0;
        left: auto;
        min-width: min(292px, calc(100vw - 48px));
    }

    .admin-calendar-multi-card {
        padding-bottom: 74px;
    }

    .admin-calendar-scroll-hint {
        display: block;
    }

    .admin-calendar-month-day {
        min-height: 82px;
        padding: 4px;
    }

    .admin-calendar-month-events {
        gap: 2px;
        margin-top: 1px;
    }

    .admin-calendar-month-event {
        width: 100%;
        justify-content: center;
        padding: 3px 2px;
    }

    .admin-calendar-month-event span {
        display: none;
    }

    .admin-calendar-month-more {
        justify-content: center;
        padding: 2px;
        font-size: 0.62rem;
    }

    .admin-calendar-year-card {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        padding: 10px;
    }

    .admin-calendar-year-month {
        padding: 8px;
    }

    .admin-calendar-year-month h2 {
        font-size: 0.88rem;
    }

    .admin-calendar-year-day {
        font-size: 0.58rem;
    }

    .admin-calendar-agenda-card {
        gap: 16px;
        padding: 16px;
    }

    .admin-calendar-agenda-day {
        grid-template-columns: 1fr;
        gap: 8px;
        padding-bottom: 16px;
    }

    .admin-calendar-agenda-event {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 9px;
    }

    .admin-calendar-agenda-event em {
        display: none;
    }

    /* Schedule Mobile View */
    .schedule-desktop-view {
        display: none;
    }

    .schedule-mobile-view {
        display: block;
        background: #ffffff;
        border-radius: 12px;
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 16px;
    }

    .schedule-mobile-days-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        margin-bottom: 15px;
    }

    .mobile-day-pill {
        background: rgba(0, 0, 0, 0.03);
        border: 1px solid rgba(0, 0, 0, 0.05);
        padding: 8px 12px;
        border-radius: 30px;
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
        color: var(--text-dark);
    }

    .mobile-day-pill.active {
        background-color: var(--primary);
        color: #ffffff;
        border-color: var(--primary);
    }

    .mobile-day-pill.closed-day {
        opacity: 0.6;
        color: #dc3545;
        border-color: rgba(220, 53, 69, 0.15);
    }

    .schedule-mobile-day-content {
        padding: 10px 5px;
    }

    .mobile-interval-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        background: rgba(0, 0, 0, 0.02);
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 8px;
        padding: 10px 15px;
        margin-bottom: 8px;
    }

.schedule-mode-select {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .schedule-scope-hint {
        flex-basis: 100%;
        max-width: none;
    }

    /* Clients & Tables Mobile */
    .clients-layout {
        grid-template-columns: 1fr;
    }

    .client-detail-card {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: 70px;
        z-index: 150;
        border-radius: 0;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
        overflow-y: auto;
    }

    .services-list-card .table-responsive {
        overflow: visible;
    }

    .services-list-card .admin-table,
    .services-list-card .admin-table tbody,
    .services-list-card .admin-table tr,
    .services-list-card .admin-table td {
        display: block;
        width: auto;
    }

    .services-list-card .admin-table thead {
        display: none;
    }

    .services-list-card .admin-table tbody {
        display: grid;
        gap: 12px;
    }

    .services-list-card .admin-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 14px;
        padding: 16px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 10px;
    }

    .services-list-card .admin-table td {
        padding: 0;
        border: 0;
    }

    .services-list-card .service-name,
    .services-list-card .service-notes,
    .services-list-card .service-actions {
        grid-column: 1 / -1;
    }

    .services-list-card .service-duration::before,
    .services-list-card .service-price::before,
    .services-list-card .service-status::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .services-list-card .service-notes {
        max-width: none !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .services-list-card .service-notes::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 3px;
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        text-transform: uppercase;
    }

    .services-list-card .service-order {
        justify-self: end;
        align-self: end;
    }

    .services-list-card .service-actions-inner {
        flex-wrap: wrap;
    }
}

/* ==========================================================================
   PUBLIC BOOKING FLOW
   ========================================================================== */
#tab-kalendar {
    max-width: 1180px;
    margin: 0 auto;
}

.booking-intro {
    max-width: 760px;
    padding: 24px 20px 32px;
}

.modal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #9b6c27;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.booking-hero-badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.booking-hero-badge > span:not(.booking-badge-divider) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.booking-badge-divider {
    width: 1px;
    height: 16px;
    background: var(--primary);
    opacity: 0.35;
}

.booking-intro h2 {
    margin: 8px 0 10px;
    font-family: var(--font-title);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: normal;
}

.booking-intro > p {
    max-width: 650px;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.booking-nearest-btn {
    margin-top: 20px;
    background: #e9f0e4;
    border: 1px solid #cbd8c3;
    color: var(--secondary);
    box-shadow: none;
}

.booking-nearest-btn:hover {
    background: #dce8d5;
    transform: translateY(-1px);
}

.booking-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 24px;
    list-style: none;
}

.booking-progress-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.booking-progress-step:not(:last-child)::after {
    content: '';
    width: 42px;
    height: 1px;
    margin: 0 13px 0 5px;
    background: #ced5cb;
}

.booking-progress-step > span,
.booking-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border: 1px solid #c8d0c4;
    border-radius: 50%;
    background: #fff;
    color: var(--secondary);
    font-size: 0.78rem;
}

.booking-progress-step.is-active,
.booking-progress-step.is-complete {
    color: var(--secondary);
}

.booking-progress-step.is-active > span,
.booking-progress-step.is-complete > span {
    border-color: var(--secondary);
    background: var(--secondary);
    color: #fff;
}

.calendar-widget-layout {
    gap: 22px;
    padding: 0 20px;
    min-width: 0;
    scroll-margin-top: 100px;
}

.calendar-card,
.time-slots-card {
    border: 1px solid #dde2d9;
    border-radius: 18px;
    box-shadow: none;
    padding: 26px;
    min-width: 0;
}

.booking-panel-heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.booking-panel-heading h3 {
    margin: 0;
    font-size: 1.28rem;
}

.booking-panel-heading p {
    margin: 2px 0 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.booking-step-number {
    flex: 0 0 auto;
    border-color: #c7d7c2;
    background: #e9f0e4;
    font-weight: 700;
}

.calendar-header-controls {
    margin: 24px 0 18px;
}

.calendar-nav-btn {
    width: 38px;
    height: 38px;
    background: transparent;
}

.calendar-nav-btn:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.calendar-nav-btn:disabled:hover {
    background: transparent;
    border-color: var(--border);
    color: var(--secondary);
}

.calendar-month-title {
    font-size: 1.18rem;
}

.calendar-weekdays {
    margin-bottom: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-days-grid {
    gap: 7px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.day-cell {
    min-height: 58px;
    padding: 5px 2px;
    border: 1px solid #e1e5df;
    border-radius: 9px;
    background: #fff;
    color: var(--secondary);
    font: inherit;
    line-height: 1.1;
    min-width: 0;
}

.day-cell:hover:not(.empty):not(:disabled) {
    background: #edf3e9;
    border-color: #9caf98;
    transform: none;
}

.day-cell .day-number {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
}

.day-cell .day-availability {
    min-height: 12px;
    margin-top: 3px;
    color: #6d806a;
    font-size: 0.61rem;
    font-weight: 600;
}

.day-cell.partial {
    background: #fffdf2;
    border-color: #f59e0b;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.25);
}

.day-cell.partial .day-availability {
    color: #b45309;
    font-weight: 600;
}

.day-cell.partial::after,
.day-cell.busy::after,
.day-cell.selected::after {
    display: none;
}

.day-cell.busy,
.day-cell.day-closed,
.day-cell.past {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    text-decoration: none;
    opacity: 1;
}

.day-cell.day-closed .day-availability,
.day-cell.busy .day-availability,
.day-cell.past .day-availability {
    color: #94a3b8;
}

.day-cell.selected {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    box-shadow: 0 5px 12px rgba(41, 75, 59, 0.2);
}

.day-cell.selected .day-availability {
    color: #d9e6d4;
}

.day-cell:focus-visible,
.time-choice:focus-visible,
.booking-continue-btn:focus-visible {
    outline: 3px solid #d4ad67;
    outline-offset: 2px;
}

.calendar-legend {
    padding: 12px 0 0;
    margin-top: 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-muted);
}

.calendar-legend i {
    color: #9b6c27;
}

.time-slots-header {
    align-items: flex-start;
    margin-bottom: 18px;
    padding-bottom: 16px;
}

.time-slots-container {
    display: block;
    min-height: 250px;
}

.time-period + .time-period {
    margin-top: 20px;
}

.time-period h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 11px;
    color: var(--secondary);
    font-size: 0.96rem;
}

.time-period h4::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e1e5df;
}

.time-choice-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 9px;
}

.time-choice {
    min-height: 54px;
    border: 1px solid #dce2d9;
    border-radius: 9px;
    background: #fff;
    color: var(--secondary);
    cursor: pointer;
    font: inherit;
    transition: var(--transition);
}

.time-choice span {
    display: block;
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
}

.time-choice small {
    display: block;
    margin-top: 2px;
    color: #6d806a;
    font-size: 0.62rem;
    font-weight: 600;
}

.time-choice:hover {
    border-color: #8fa58b;
    background: #edf3e9;
}

.time-choice.is-selected {
    border-color: var(--secondary);
    background: var(--secondary);
    box-shadow: 0 4px 10px rgba(41, 75, 59, 0.2);
    color: #fff;
}

.time-choice.is-selected small {
    color: #d9e6d4;
}

.slots-empty-state {
    display: flex;
    min-height: 230px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 25px;
    color: var(--text-muted);
    text-align: center;
}

.slots-empty-state > i {
    color: #a3b59e;
    font-size: 2.1rem;
}

.slots-empty-state strong {
    color: var(--secondary);
}

.slots-empty-state p {
    max-width: 360px;
    font-size: 0.86rem;
}

.slots-today-phone-state {
    border: 1px solid rgba(155, 108, 39, 0.22);
    border-radius: var(--border-radius-md);
    background: #fffaf1;
    padding: 24px;
}

.slots-today-phone-state > i {
    color: #9b6c27;
}

.slots-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
}

.admin-booking-duration-help {
    display: block;
    margin-top: 6px;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.slots-closed-state > i {
    color: #b88952;
}

.booking-help {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e8e3;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.booking-help i {
    color: #9b6c27;
}

.booking-help a {
    color: var(--secondary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.booking-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 22px 20px 0;
    padding: 15px 18px;
    border: 1px solid #cad8c4;
    border-radius: 14px;
    background: #edf3e9;
    scroll-margin-top: 100px;
}

.booking-selection-summary {
    display: flex;
    align-items: center;
    gap: 13px;
}

.booking-selection-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #c4d1be;
    border-radius: 50%;
    background: #f8fbf6;
    color: var(--secondary);
}

.booking-selection-label {
    display: block;
    color: var(--text-muted);
    font-size: 0.69rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.booking-selection-summary strong {
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1.4rem;
    font-weight: 500;
}

.booking-continue-btn {
    min-width: 265px;
}

.booking-continue-btn:disabled {
    cursor: not-allowed;
    background: #b9c3b5;
    box-shadow: none;
    opacity: 0.72;
}

.booking-dialog {
    max-width: 580px;
}

.booking-dialog .modal-header {
    align-items: flex-start;
    padding-bottom: 19px;
}

.booking-dialog .modal-header h2 {
    margin-top: 3px;
}

.booking-form-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e6e9e4;
}

.booking-form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--secondary);
    font-size: 0.92rem;
    font-weight: 700;
}

.booking-form-section-title i {
    color: #9b6c27;
}

.booking-form-section .form-group:last-child {
    margin-bottom: 0;
}

.booking-form-section label span {
    color: var(--text-muted);
    font-weight: 400;
}

.booking-confirmation-dialog {
    max-width: 460px;
}

.booking-confirmation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 42px 34px;
    text-align: center;
}

.booking-confirmation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #e7f0e2;
    color: var(--secondary);
    font-size: 1.5rem;
}

.booking-confirmation-content h2 {
    margin: 6px 0 8px;
    font-family: var(--font-title);
    font-size: 2.3rem;
    font-weight: 500;
}

.booking-confirmation-content > p {
    color: var(--text-muted);
}

.booking-confirmation-content > strong {
    margin-top: 18px;
    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 1.32rem;
}

.booking-confirmation-service {
    display: inline-flex;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    background: #edf3e9;
    color: #597153;
    font-size: 0.8rem;
    font-weight: 700;
}

.booking-confirmation-content .booking-confirmation-note {
    margin: 22px 0;
    font-size: 0.83rem;
}

@media (max-width: 1024px) {
    .booking-intro {
        padding-top: 12px;
    }

    .calendar-widget-layout {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    #tab-kalendar {
        padding-bottom: 110px;
    }

    .booking-intro {
        padding: 10px 20px 22px;
    }

    .booking-intro > p {
        font-size: 1rem;
    }

    .booking-progress {
        justify-content: space-between;
    }

    .booking-progress-step {
        flex-direction: column;
        gap: 4px;
        font-size: 0.7rem;
    }

    .booking-progress-step:not(:last-child)::after {
        width: clamp(30px, 12vw, 55px);
        margin: 0 7px;
        transform: translateY(-9px);
    }

    .booking-hero-badge {
        justify-content: center;
        gap: 6px;
        margin-bottom: 16px;
        text-align: center;
    }

    .booking-badge-divider {
        display: none;
    }

    .calendar-widget-layout {
        padding: 0 14px;
    }

    .calendar-card,
    .time-slots-card {
        padding: 20px 16px;
        border-radius: 15px;
    }

    .calendar-days-grid {
        gap: 5px;
    }

    .day-cell {
        min-height: 48px;
        border-radius: 8px;
    }

    .day-cell .day-number {
        font-size: 0.9rem;
    }

    .day-cell .day-availability {
        overflow: hidden;
        max-width: 100%;
        font-size: 0.52rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .selected-date-badge {
        width: 100%;
        text-align: center;
    }

    .time-slots-header {
        flex-direction: column;
    }

    .time-choice-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .time-choice {
        min-height: 50px;
        font-size: 0.88rem;
    }

    .booking-selection-bar {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 500;
        margin: 0;
        padding: 10px 12px;
        border-radius: 13px;
        box-shadow: 0 10px 28px rgba(41, 75, 59, 0.18);
    }

    .booking-selection-summary {
        min-width: 0;
        gap: 8px;
    }

    .booking-selection-icon {
        display: none;
    }

    .booking-selection-summary strong {
        display: block;
        overflow: hidden;
        font-family: var(--font-title);
        font-size: 0.86rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .booking-selection-label {
        font-size: 0.58rem;
    }

    .booking-continue-btn {
        min-width: auto;
        padding: 11px 12px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .booking-dialog .modal-body {
        padding: 20px;
    }

    .booking-dialog .modal-header {
        padding: 20px 20px 16px;
    }

    .booking-dialog .modal-header h2 {
        font-size: 1.2rem;
    }

    body:has(.booking-dialog[open]) .booking-selection-bar,
    body:has(.booking-selection-bar .booking-continue-btn:disabled) .booking-selection-bar {
        display: none;
    }

    body:has(.booking-selection-bar .booking-continue-btn:not(:disabled)) .mobile-call-bar {
        display: none;
    }
}
