/* --- CSS Variables & Design Tokens --- */
:root {
    --primary: #173446;
    --primary-light: #224961;
    --primary-dark: #0f222e;
    --accent: #d4af37;
    --accent-hover: #bda030;
    --accent-rgb: 212, 175, 55;
    
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --bg-dark: #0f1c24;
    --card-dark: #162833;
    
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-color-dark: #223744;
    
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px -5px rgba(23, 52, 70, 0.1), 0 8px 10px -6px rgba(23, 52, 70, 0.1);
    --shadow-lg: 0 20px 40px -10px rgba(23, 52, 70, 0.15);
    --shadow-glow: 0 0 20px rgba(212, 175, 55, 0.35);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

body.cursor-active {
    cursor: none; /* Hide default cursor on desktop when active */
}

body.cursor-active a,
body.cursor-active button,
body.cursor-active select,
body.cursor-active input,
body.cursor-active textarea,
body.cursor-active .clickable {
    cursor: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    outline: none;
    border: none;
}

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

/* --- Custom Cursor --- */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    position: fixed;
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 10001;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-circle {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent);
    position: fixed;
    border-radius: var(--radius-full);
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.25s var(--transition-bounce), height 0.25s var(--transition-bounce), border-color 0.25s, background-color 0.25s;
}

/* Cursor Hover states */
.custom-cursor-circle.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--accent);
}

.custom-cursor-dot.hovered {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
}

/* Hide on touch devices */
@media (max-width: 1024px) {
    .custom-cursor-dot,
    .custom-cursor-circle {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--accent));
    width: 0%;
    z-index: 10002;
    transition: width 0.05s ease-out;
}

/* --- Transition Curtain (Page Transition) --- */
.transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    z-index: 9999;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
}

.transition-curtain.active {
    transform: scaleY(1);
    transform-origin: bottom;
}

/* --- Shared Layout Elements --- */

/* Header / Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(248, 250, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background-color: rgba(23, 52, 70, 0.95);
    border-bottom: 1px solid var(--border-color-dark);
    box-shadow: var(--shadow-md);
}

.header.scrolled .logo-text {
    color: var(--bg-white);
}

.header.scrolled .nav-link {
    color: var(--text-light);
}

.header.scrolled .nav-link:hover {
    color: var(--accent);
}

.header.scrolled .btn-nav {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.header.scrolled .btn-nav:hover {
    background-color: var(--bg-white);
    color: var(--primary);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 8px;
    padding: 6px;
    box-shadow: 0 4px 10px rgba(23, 52, 70, 0.15);
    transition: var(--transition-smooth);
}

.header.scrolled .logo-icon {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

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

.logo-text span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

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

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background-color: var(--primary);
    color: var(--bg-white);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-nav:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2.5px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.header.scrolled .nav-toggle span {
    background-color: var(--bg-white);
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transition: opacity 0.8s ease-out;
}

.reveal.reveal-left,
.reveal.reveal-right {
    /* Bez horizontálnych posunov na ochranu mobilného layoutu */
}

.reveal.active {
    opacity: 1;
}

/* Section Common */
.section {
    padding: 100px 24px;
    position: relative;
}

.section-dark {
    background-color: var(--primary);
    color: var(--text-light);
}

.section-dark h2 {
    color: var(--bg-white);
}

.section-dark p,
.section-dark .about-content p {
    color: #cbd5e1; /* high contrast light slate */
}

.section-dark .lead {
    color: var(--text-light);
}

.section-dark .about-content .lead {
    color: var(--accent);
    font-size: 1.3rem;
    font-style: italic;
    font-family: var(--font-heading);
    margin-bottom: 28px;
}

.section-dark .bullet-item {
    color: var(--text-light);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
}

.section-dark .section-desc {
    color: #a2b7c4;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-align: center;
    transition: var(--transition-bounce);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(23, 52, 70, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

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

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
}

.btn-outline-white {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
}

.btn-outline-white:hover {
    background-color: var(--bg-white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Card UI with Glassmorphism */
.card-glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.card-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}

.card-white {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.card-white:hover {
    transform: translateY(-5px);
    border-color: rgba(23, 52, 70, 0.15);
    box-shadow: var(--shadow-lg);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Animated Glowing Blobs */
.blob {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.blob-1 {
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background-color: var(--accent);
}

.blob-2 {
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background-color: var(--primary-light);
}

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    opacity: 0.4;
    z-index: 2;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.8rem;
    font-weight: 800;
    color: var(--bg-white);
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--accent);
    background: linear-gradient(120deg, var(--accent), #f3c74d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: #a2b7c4;
    margin-bottom: 40px;
    max-width: 540px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 32px;
}

.stat-item h3 {
    font-size: 2.2rem;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #a2b7c4;
    margin-bottom: 0;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-border {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 28, 36, 0.8), transparent);
    z-index: 2;
}

.hero-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(23, 52, 70, 0.85);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    box-shadow: var(--shadow-glow);
}

.hero-badge-icon {
    color: var(--accent);
    background: rgba(212, 175, 55, 0.15);
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-badge-text h4 {
    color: var(--bg-white);
    font-size: 1rem;
    font-family: var(--font-heading);
}

.hero-badge-text p {
    color: var(--accent);
    font-size: 0.75rem;
    margin-bottom: 0;
    font-weight: 600;
}

/* --- Services Grid --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-icon-box {
    width: 56px;
    height: 56px;
    background-color: rgba(23, 52, 70, 0.05);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: var(--transition-bounce);
}

.service-card:hover .service-icon-box {
    background-color: var(--accent);
    color: var(--primary-dark);
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

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

.service-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-price span {
    color: var(--accent);
    font-size: 1rem;
}

/* --- About Team Section --- */
.about-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about-content .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 20px;
}

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

.about-bullets {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 480px;
    width: 100%;
    margin: 20px auto 0 auto;
    text-align: left;
}

.bullet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
}

.bullet-icon {
    color: var(--accent);
    flex-shrink: 0;
}

/* --- Gallery Section --- */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 20px;
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
    background-color: var(--primary);
    color: var(--bg-white);
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(23, 52, 70, 0.9), transparent);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    transition: var(--transition-smooth);
}

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

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

.gallery-overlay h4 {
    color: var(--bg-white);
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* --- Form Styles & Layouts (Login/Register/Booking) --- */
.split-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-top: 80px;
}

.split-image {
    background-color: var(--primary-dark);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.split-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.split-image-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 500px;
    color: var(--text-light);
}

.split-image-content h2 {
    font-size: 2.5rem;
    color: var(--bg-white);
    margin-bottom: 20px;
}

.split-image-content p {
    color: #a2b7c4;
}

.split-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background-color: var(--bg-light);
}

.auth-card {
    width: 100%;
    max-width: 440px;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 32px;
}

.auth-tab {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-muted);
    background: none;
    transition: var(--transition-smooth);
}

.auth-tab.active {
    color: var(--primary);
    border-bottom: 3px solid var(--accent);
    margin-bottom: -2.5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    color: var(--text-dark);
    font-family: var(--font-body);
    transition: var(--transition-smooth);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(23, 52, 70, 0.1);
}

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

.alert-message {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
}

.alert-danger {
    background-color: #fee2e2;
    color: var(--danger);
    border: 1px solid #fca5a5;
}

.alert-success {
    background-color: #d1fae5;
    color: var(--success);
    border: 1px solid #6ee7b7;
}

/* Booking Layout */
.booking-section {
    padding-top: 130px;
    max-width: 1000px;
    margin: 0 auto;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
}

.booking-services-select {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

.service-select-card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    background-color: var(--bg-white);
    transition: var(--transition-bounce);
}

.service-select-card.active {
    border-color: var(--primary);
    background-color: rgba(23, 52, 70, 0.03);
    box-shadow: 0 0 0 2px var(--primary);
}

.service-select-card .icon-box {
    margin: 0 auto 12px auto;
    width: 44px;
    height: 44px;
    background-color: rgba(23, 52, 70, 0.05);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-select-card.active .icon-box {
    background-color: var(--accent);
    color: var(--primary-dark);
}

.service-select-card h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.service-select-card span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Summary Card */
.summary-card {
    position: sticky;
    top: 120px;
}

.summary-title {
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-item .label {
    color: var(--text-muted);
}

.summary-item .val {
    font-weight: 600;
}

.summary-total {
    border-top: 1px dashed var(--border-color);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--primary);
}

.summary-total span {
    color: var(--accent);
}

/* --- Dashboard Styles (Admin & Client Profile) --- */
.dashboard-layout {
    min-height: 100vh;
    padding-top: 80px;
    display: flex;
}

.dashboard-sidebar {
    width: 280px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 32px 24px;
    border-right: 1px solid var(--border-color-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.sidebar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: #a2b7c4;
    transition: var(--transition-smooth);
}

.sidebar-link.active, .sidebar-link:hover {
    color: var(--bg-white);
    background-color: var(--primary-light);
}

.sidebar-link.active {
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding-left: 13px;
}

.sidebar-user {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    margin-top: auto;
}

.sidebar-user h5 {
    color: var(--bg-white);
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.sidebar-user p {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.dashboard-content {
    flex-grow: 1;
    padding: 40px;
    background-color: var(--bg-light);
    overflow-y: auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.stat-card-header .icon {
    color: var(--primary);
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

/* Tables & Badges */
.table-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

.table-responsive {
    overflow-x: auto;
}

.svstav-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.svstav-table th {
    background-color: rgba(23, 52, 70, 0.02);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--primary);
}

.svstav-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-dark);
}

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

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-waiting {
    background-color: #fef3c7;
    color: var(--warning);
}

.badge-approved {
    background-color: #dbeafe;
    color: var(--info);
}

.badge-completed {
    background-color: #d1fae5;
    color: var(--success);
}

.badge-rejected {
    background-color: #fee2e2;
    color: var(--danger);
}

/* Email Archive view */
.email-archive-item {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.email-archive-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.email-archive-subject {
    font-weight: 600;
    color: var(--primary);
}

.email-archive-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.email-archive-body {
    font-size: 0.9rem;
    color: var(--text-dark);
    padding: 10px;
    background-color: #fafbfc;
    border-radius: var(--radius-sm);
    border: 1px solid #f1f5f9;
}

/* Action button icons */
.action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-white);
    transition: var(--transition-bounce);
}

.action-btn-approve {
    background-color: var(--success);
}

.action-btn-approve:hover {
    background-color: #059669;
}

.action-btn-reject {
    background-color: var(--danger);
}

.action-btn-reject:hover {
    background-color: #dc2626;
}

.action-btn-complete {
    background-color: var(--primary);
}

.action-btn-complete:hover {
    background-color: var(--accent);
}

/* --- Footer --- */
.footer {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 80px 24px 40px 24px;
    border-top: 1.5px solid var(--border-color-dark);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr repeat(2, 1fr);
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: #a2b7c4;
    max-width: 300px;
    font-size: 0.95rem;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--bg-white);
    margin-bottom: 24px;
    position: relative;
}

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

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

.footer-link {
    color: #a2b7c4;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a2b7c4;
    font-size: 0.95rem;
}

.contact-icon {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* --- Responsiveness Media Queries --- */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image-wrapper {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .split-layout {
        grid-template-columns: 1fr;
    }
    
    .split-image {
        display: none;
    }
}

@media (max-width: 768px) {
    /* Mobile header & menu fix */
    .nav-container {
        padding: 12px 20px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    /* Dynamic link colors in mobile menu overlay - forced readability */
    .nav-menu .nav-link,
    .header.scrolled .nav-menu .nav-link {
        color: var(--primary) !important;
        font-size: 1.1rem;
        padding: 10px 0;
        width: 100%;
        border-bottom: 1px solid #f1f5f9;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .nav-menu .btn-nav,
    .header.scrolled .nav-menu .btn-nav {
        width: 100%;
        text-align: center;
        justify-content: center;
        background-color: var(--primary) !important;
        color: var(--bg-white) !important;
        margin-top: 8px;
        padding: 12px;
        border-radius: 8px;
    }

    .nav-toggle {
        display: flex;
    }

    /* Spacing & Layout Shifting fixes */
    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        margin-top: 32px;
    }

    .hero-image-wrapper {
        margin-top: 20px;
        width: 100%;
    }

    .hero-badge {
        padding: 10px 14px;
        bottom: 12px;
        left: 12px;
    }

    /* Section tweaks */
    .section {
        padding: 60px 20px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .team-card img {
        height: 220px;
    }

    /* Mobile Swipe Gallery */
    .gallery-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px !important;
        padding: 12px 4px 24px 4px !important;
        scrollbar-width: none; /* Hide standard scrollbar */
        -webkit-overflow-scrolling: touch;
    }

    .gallery-grid::-webkit-scrollbar {
        display: none; /* Hide Chrome scrollbar */
    }

    .gallery-item {
        flex: 0 0 280px !important;
        scroll-snap-align: center !important;
        aspect-ratio: 4/3;
        box-shadow: var(--shadow-md);
    }
    
    .gallery-overlay {
        opacity: 1; /* Always visible on mobile touch */
        background: linear-gradient(to top, rgba(23, 52, 70, 0.95) 40%, transparent);
    }

    /* Split layout & forms */
    .split-layout {
        grid-template-columns: 1fr;
        padding-top: 60px;
    }

    .split-form-container {
        padding: 32px 16px;
    }

    .booking-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking-services-select {
        grid-template-columns: 1fr;
    }

    .booking-services-select .service-select-card {
        grid-column: span 1 !important;
    }

    /* Admin & Profile Mobile Optimizations */
    .dashboard-layout {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        padding: 16px 20px;
        border-bottom: 1px solid var(--border-color-dark);
    }

    .sidebar-brand {
        margin-bottom: 16px;
        font-size: 1.15rem;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 8px;
        gap: 8px;
        scrollbar-width: none;
    }

    .sidebar-menu::-webkit-scrollbar {
        display: none;
    }

    .sidebar-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .sidebar-link.active {
        border-left: none;
        border-bottom: 2px solid var(--accent);
        border-radius: var(--radius-sm);
        padding-left: 12px;
        padding-bottom: 6px;
    }

    .sidebar-user {
        display: none; /* Hide bottom profile in mobile sidebar to save space */
    }

    .dashboard-content {
        padding: 24px 16px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }

    .dashboard-header .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Responsive Tables as Cards on Mobile */
    .svstav-table, .svstav-table thead, .svstav-table tbody, .svstav-table th, .svstav-table td, .svstav-table tr {
        display: block;
    }

    .svstav-table thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .svstav-table tr {
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-bottom: 16px;
        background-color: var(--bg-white);
        box-shadow: var(--shadow-sm);
        padding: 16px;
    }

    .svstav-table td {
        border: none;
        border-bottom: 1px solid #f1f5f9;
        position: relative;
        padding: 10px 0 10px 45%;
        text-align: right;
        font-size: 0.9rem;
    }

    .svstav-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .svstav-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 40%;
        text-align: left;
        font-weight: 700;
        color: var(--primary);
        font-size: 0.85rem;
        text-transform: uppercase;
    }

    .svstav-table td select.admin-select {
        width: 100%;
        max-width: 180px;
    }

    /* Mobile Form Row Stacking */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Mobile Footer Container Stacking */
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
        padding: 0 16px;
    }
    
    .footer-logo {
        display: inline-flex;
        justify-content: center;
        margin-bottom: 12px;
    }
    
    .footer-desc {
        margin: 0 auto;
        font-size: 0.9rem;
        line-height: 1.6;
        color: #94a3b8;
    }

    .footer-title::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
    }

    .footer-links {
        align-items: center;
        gap: 16px;
    }

    .footer-contact {
        align-items: center;
        gap: 14px;
    }

    .contact-item {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        border-top: 1px solid rgba(255,255,255,0.08);
        padding-top: 32px;
        margin-top: 20px;
    }

    /* Mobile Gallery Tabs Swipeable Scroll */
    .gallery-tabs {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding: 4px 20px 12px 28px !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
        scroll-snap-type: x mandatory !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
    }
    
    .gallery-tabs::-webkit-scrollbar {
        display: none !important;
    }
    
    .gallery-tabs .tab-btn {
        flex-shrink: 0 !important;
        scroll-snap-align: start !important;
    }

    /* Mobile Header & Booking section spacing */
    .booking-section {
        padding-top: 170px !important;
    }
}

/* Custom Inline Calendar styles */
.calendar-wrapper {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 10px;
    font-family: var(--font-body);
}

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

.calendar-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.calendar-nav-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background-color: rgba(23, 52, 70, 0.05);
    border-color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
}

.calendar-day-name {
    font-weight: 600;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-bottom: 8px;
    text-transform: uppercase;
}

.calendar-day-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 0;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.2s;
    outline: none;
}

.calendar-day-btn:hover:not(.disabled):not(.booked):not(.booked-range):not(.unavailable) {
    background-color: rgba(23, 52, 70, 0.05);
}

.calendar-day-btn.selected {
    background-color: var(--accent) !important;
    color: var(--primary-dark) !important;
    font-weight: 600;
}

.calendar-day-btn.disabled {
    color: #cbd5e1;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day-btn.booked {
    background-color: #fee2e2;
    color: #ef4444;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day-btn.unavailable {
    color: #94a3b8;
    opacity: 0.45;
    cursor: not-allowed;
}

.calendar-day-btn.booked-range {
    background-color: #fee2e2;
    color: #ef4444;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day-btn.today {
    border-color: var(--primary);
    font-weight: 600;
}

.calendar-legend {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    font-size: 0.8rem;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

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

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.legend-color.free {
    border: 1px solid var(--border-color);
}

.legend-color.booked {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
}

.legend-color.selected {
    background-color: var(--accent);
}
