:root {
    --bg: #f5f7f6;
    --surface: #ffffff;
    --surface-soft: #eef3f1;
    --ink: #12221d;
    --ink-muted: #4f615b;
    --primary: #0d7c66;
    --primary-strong: #095c4c;
    --accent: #f2c14f;
    --danger: #b13e2f;
    --ok: #11815a;
    --shadow: 0 18px 40px rgba(7, 25, 20, 0.08);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    max-width: 100%;
}

html {
    overflow-x: hidden;
}

body {
    font-family: Manrope, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 10% 0%, #e8f5ee 0, transparent 45%),
        radial-gradient(circle at 95% 15%, #fff2d6 0, transparent 35%),
        var(--bg);
    line-height: 1.5;
    /* clip (nie hidden) zabráni horizontálnemu posuvníku bez rozbitia sticky hlavičky. */
    overflow-x: clip;
}

h1,
h2,
h3,
strong,
.brand {
    font-family: Sora, Manrope, sans-serif;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.bg-glow {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.22;
    pointer-events: none;
    z-index: -1;
}

.bg-glow-a {
    background: #52d4b4;
    top: -140px;
    left: -120px;
}

.bg-glow-b {
    background: #ffc86f;
    right: -140px;
    bottom: -120px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(8px);
    background: rgba(245, 247, 246, 0.78);
    border-bottom: 1px solid rgba(18, 34, 29, 0.08);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.brand-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #1f9f83);
    box-shadow: 0 0 0 8px rgba(13, 124, 102, 0.14);
    animation: brandDotPulse 2.4s ease-in-out infinite;
}

@keyframes brandDotPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 124, 102, 0.35), 0 0 0 8px rgba(13, 124, 102, 0.14);
    }
    50% {
        transform: scale(1.18);
        box-shadow: 0 0 0 10px rgba(13, 124, 102, 0), 0 0 0 8px rgba(13, 124, 102, 0.14);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 124, 102, 0), 0 0 0 8px rgba(13, 124, 102, 0.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-dot {
        animation: none;
    }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--ink-muted);
    font-weight: 600;
}

.nav-links a {
    transition: color 0.25s ease;
}

.nav-links a:hover {
    color: var(--ink);
}

.btn-link {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(18, 34, 29, 0.16);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(18, 34, 29, 0.16);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 0 auto;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 26px;
    padding: 64px 0 32px;
}

.hero-copy,
.hero-panel,
.section,
.calendar-card,
.reservation-form {
    animation: rise 0.65s ease both;
}

.hero-copy {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 34px;
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
    color: var(--ink-muted);
    font-weight: 700;
}

.hero-copy h1 {
    margin: 12px 0;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

.hero-subtext {
    margin: 0;
    color: var(--ink-muted);
    font-size: 18px;
    max-width: 60ch;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.price-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding: 12px 22px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(242, 193, 79, 0.16), rgba(13, 124, 102, 0.10));
    border: 1px solid rgba(242, 193, 79, 0.45);
    box-shadow: 0 10px 30px rgba(242, 193, 79, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    overflow: hidden;
    isolation: isolate;
    animation: priceBadgeGlow 3.2s ease-in-out infinite;
}

.price-badge-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.6) 48%, transparent 66%);
    transform: translateX(-120%);
    animation: priceBadgeShine 4.5s ease-in-out infinite;
    pointer-events: none;
}

.price-badge-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.price-badge-amount {
    font-family: Sora, Manrope, sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-strong);
    white-space: nowrap;
}

.price-badge-unit {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-muted);
    margin-left: 2px;
}

.price-badge-note {
    flex: none;
    font-size: 12px;
    color: var(--ink-muted);
    padding-left: 10px;
    border-left: 1px solid rgba(18, 34, 29, 0.15);
    white-space: nowrap;
}

@keyframes priceBadgeGlow {
    0%,
    100% {
        box-shadow: 0 10px 30px rgba(242, 193, 79, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    }
    50% {
        box-shadow: 0 12px 36px rgba(242, 193, 79, 0.32), inset 0 0 0 1px rgba(255, 255, 255, 0.55);
    }
}

@keyframes priceBadgeShine {
    0% {
        transform: translateX(-120%);
    }
    35% {
        transform: translateX(160%);
    }
    100% {
        transform: translateX(160%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .price-badge {
        animation: none;
    }

    .price-badge-shine {
        display: none;
    }
}

.hero-panel {
    padding: 28px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(18, 34, 29, 0.08);
    background: linear-gradient(160deg, #0f6f5d 0%, #0f5a4d 55%, #0e3f37 100%);
    color: #f6fcf9;
    box-shadow: var(--shadow);
}

.hero-panel p {
    margin: 0;
    opacity: 0.85;
}

.hero-panel h2 {
    margin: 10px 0 14px;
    font-size: 42px;
}

.hero-panel ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
}

.section {
    margin-top: 54px;
}

.section-head {
    margin-bottom: 22px;
}

.section-head h2 {
    margin: 10px 0;
    font-size: clamp(28px, 4vw, 38px);
}

.section-head p {
    margin: 0;
    color: var(--ink-muted);
}

.section-head-inline {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

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

.gallery-item {
    border: 0;
    padding: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    background: var(--surface);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 44px rgba(7, 25, 20, 0.12);
}

.gallery-carousel {
    position: relative;
}

.gallery-viewport {
    overflow: hidden;
    border-radius: var(--radius-md);
    aspect-ratio: var(--gallery-ratio, 16 / 9);
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.gallery-carousel .gallery-item {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
    position: relative;
    overflow: hidden;
    background: #0b1a15;
}

.gallery-carousel .gallery-item:hover {
    transform: none;
    box-shadow: none;
}

.gallery-carousel .gallery-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.85);
    transform: scale(1.15);
    z-index: 0;
    pointer-events: none;
}

.gallery-carousel .gallery-item img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    z-index: 1;
}

.gallery-empty {
    flex: 0 0 100%;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    color: var(--muted, #5a6b64);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.06);
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(18, 34, 29, 0.2);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gallery-dot.active {
    background: var(--primary);
    transform: scale(1.25);
}

.gallery-carousel.is-single .gallery-nav,
.gallery-carousel.is-single .gallery-dots {
    display: none;
}

.calendar-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.calendar-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cal-nav-ico {
    display: none;
    font-size: 20px;
    line-height: 1;
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.legend span {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-available {
    background: #dfe7e4;
}

.dot-occupied {
    background: var(--danger);
}

.dot-today {
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.22);
}

.dot-past {
    background: #c3ccc8;
}

.calendar-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow);
}

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

.calendar-weekdays span {
    text-align: center;
    font-weight: 700;
    color: var(--ink-muted);
    padding: 6px;
}

.calendar-day {
    min-height: 68px;
    border-radius: 12px;
    border: 1px solid rgba(18, 34, 29, 0.07);
    background: var(--surface-soft);
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--ink);
    transition: transform 0.2s ease, background 0.2s ease;
}

.calendar-message {
    margin: 12px 2px 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.calendar-day.is-occupied {
    background: rgba(177, 62, 47, 0.12);
    color: #8a2c22;
    border-color: rgba(177, 62, 47, 0.3);
}

.calendar-day.is-empty {
    background: transparent;
    border-style: dashed;
    opacity: 0.4;
}

.calendar-day.is-past {
    background: #eceeed;
    color: #a2aca8;
    border-color: rgba(18, 34, 29, 0.05);
}

.calendar-day.is-past.is-occupied {
    background: rgba(177, 62, 47, 0.06);
    color: #bd8e88;
    border-color: rgba(177, 62, 47, 0.14);
}

.calendar-day.is-today {
    border: 2px solid var(--primary);
    color: var(--primary-strong);
    box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.14);
}

.calendar-day.is-today.is-occupied {
    background: rgba(177, 62, 47, 0.14);
    color: #8a2c22;
}

.calendar-day.is-selectable {
    cursor: pointer;
}

.calendar-day.is-selectable:hover {
    background: rgba(13, 124, 102, 0.12);
    border-color: rgba(13, 124, 102, 0.35);
    transform: translateY(-1px);
}

.calendar-day.is-selectable:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.calendar-day.is-in-range {
    background: rgba(13, 124, 102, 0.16);
    border-color: rgba(13, 124, 102, 0.3);
    color: var(--primary-strong);
}

.calendar-day.is-selected {
    background: var(--primary);
    border-color: var(--primary-strong);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(13, 124, 102, 0.32);
}

.calendar-day.is-selected:hover {
    background: var(--primary-strong);
    color: #ffffff;
}

.calendar-selection-info {
    margin: 12px 2px 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-strong);
    min-height: 18px;
}

.calendar-selection-info.is-error {
    color: #b13e2f;
}

@keyframes calSlideFromRight {
    from {
        opacity: 0;
        transform: translateX(36px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes calSlideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-36px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.calendar-grid.slide-from-right {
    animation: calSlideFromRight 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}

.calendar-grid.slide-from-left {
    animation: calSlideFromLeft 1s cubic-bezier(0.65, 0, 0.35, 1) both;
}

#monthLabel {
    transition: opacity 0.2s ease;
    min-width: 150px;
    text-align: center;
}

.reservation-form {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    gap: 16px;
}

.reservation-form-redesign {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px;
    gap: 10px;
    background: linear-gradient(170deg, #ffffff, #f8fcfa);
    border: 1px solid rgba(18, 34, 29, 0.08);
}

.reservation-track {
    display: grid;
    gap: 9px;
}

.reservation-group {
    border: 1px solid rgba(18, 34, 29, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.84);
    padding: 10px;
}

.group-title {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #366259;
}

.group-hint {
    margin: -4px 0 10px;
    font-size: 12.5px;
    color: var(--ink-muted);
}

.reservation-grid {
    display: grid;
    gap: 9px 10px;
}

.reservation-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.reservation-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reservation-form-redesign .field {
    gap: 6px;
}

.reservation-form-redesign label {
    font-size: 13px;
}

.reservation-form-redesign input {
    padding: 9px 10px;
    font-size: 14px;
}

.reservation-form-redesign input.field-invalid,
.reservation-form-redesign input.field-invalid:focus {
    border-color: rgba(196, 66, 51, 0.65);
    background: rgba(196, 66, 51, 0.06);
    box-shadow: 0 0 0 3px rgba(196, 66, 51, 0.12);
}

.field-span-2 {
    grid-column: span 2;
}

.captcha-note {
    margin: 2px 0 0;
    font-size: 12px;
    color: #366259;
    font-weight: 700;
}

.reservation-form-redesign .form-note {
    font-size: 13px;
    margin-top: 0;
}

.reservation-form-redesign .btn-full {
    width: auto;
    justify-self: start;
    min-width: 220px;
}

.bot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.field {
    display: grid;
    gap: 8px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

label {
    font-weight: 700;
    font-size: 14px;
}

input {
    width: 100%;
    border: 1px solid rgba(18, 34, 29, 0.16);
    border-radius: var(--radius-sm);
    padding: 12px 13px;
    font-size: 15px;
    color: var(--ink);
    background: #fcfefd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.18);
}

.form-note {
    margin: -2px 0 0;
    color: var(--ink-muted);
    font-size: 14px;
}

.form-message {
    min-height: 24px;
    margin: 0;
    font-weight: 700;
}

.form-message.success {
    color: var(--ok);
}

.form-message.error {
    color: var(--danger);
}

.btn {
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    padding: 11px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0b6a57 100%);
    color: white;
    box-shadow: 0 12px 20px rgba(13, 124, 102, 0.24);
}

.btn-secondary {
    background: var(--surface-soft);
    color: var(--ink);
    border: 1px solid rgba(18, 34, 29, 0.08);
}

.btn-full {
    width: 100%;
}

.admin-layout {
    display: grid;
    grid-template-columns: minmax(300px, 360px) 1fr;
    gap: 16px;
    align-items: start;
}

.admin-panel {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 18px;
}

.admin-panel + .admin-panel {
    margin-top: 24px;
}

.admin-login-view {
    display: flex;
    justify-content: center;
}

/* Atrib\u00fat [hidden] mus\u00ed spo\u013eahlivo skry\u0165 poh\u013ead aj ke\u010f m\u00e1 trieda display:flex. */
.admin-login-view[hidden],
.admin-panel-view[hidden] {
    display: none;
}

.admin-login-form {
    width: min(420px, 100%);
}

.admin-panel-log {
    margin-top: 22px;
}

.admin-panel-actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.admin-panel-head h3 {
    margin: 0;
    font-size: 20px;
}

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

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

.admin-table th,
.admin-table td {
    padding: 10px;
    border-bottom: 1px solid rgba(18, 34, 29, 0.08);
    text-align: left;
    vertical-align: middle;
    font-size: 14px;
}

.admin-table th {
    color: var(--ink-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.status-pending {
    background: rgba(242, 193, 79, 0.24);
    color: #755500;
}

.status-confirmed {
    background: rgba(17, 129, 90, 0.16);
    color: #0b6f4c;
}

.status-cancelled {
    background: rgba(177, 62, 47, 0.14);
    color: #8f2f23;
}

.table-actions {
    display: inline-flex;
    gap: 8px;
}

.btn-small {
    padding: 7px 11px;
    font-size: 12px;
}

/* Mazanie záznamov v admin tabuľkách (režim editovania) */
.col-delete {
    display: none;
    text-align: center;
    white-space: nowrap;
}

.admin-table.edit-mode .col-delete {
    display: table-cell;
}

.btn-icon-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #d68b81;
    background: #fff0ee;
    color: #b13e2f;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn-icon-x:hover {
    background: #b13e2f;
    color: #ffffff;
    border-color: #8f2f23;
}

.btn-icon-x:active {
    transform: scale(0.92);
}

.admin-email-log-table {
    min-width: 900px;
}

.email-body-details summary {
    cursor: pointer;
    color: var(--primary-strong);
    font-weight: 700;
    font-size: 13px;
}

.email-body-pre {
    margin: 8px 0 0;
    max-width: 360px;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--ink-muted);
    background: var(--surface-soft);
    border-radius: 8px;
    padding: 8px 10px;
}

.email-composer {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 16px;
    overflow-y: auto;
}

.email-composer.open {
    display: flex;
}

.email-composer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 22, 18, 0.55);
    backdrop-filter: blur(2px);
}

.email-composer-dialog {
    position: relative;
    z-index: 1;
    width: min(640px, 100%);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
}

.email-composer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.email-composer-head h3 {
    margin: 0;
    font-size: 20px;
}

.email-composer-close {
    border: none;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink-muted);
}

.email-composer-form {
    display: grid;
    gap: 14px;
}

.email-composer-form textarea {
    width: 100%;
    border: 1px solid rgba(18, 34, 29, 0.16);
    border-radius: var(--radius-sm);
    padding: 12px 13px;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    color: var(--ink);
    background: #fcfefd;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-composer-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(13, 124, 102, 0.18);
}

.email-composer-form input[readonly] {
    background: var(--surface-soft);
    color: var(--ink-muted);
}

.composer-attach {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.composer-attach input {
    width: auto;
}

.email-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.db-table-tabs {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.db-tab {
    border: 1px solid rgba(18, 34, 29, 0.16);
    background: var(--surface-soft);
    color: var(--ink);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.db-tab:hover {
    border-color: var(--primary);
}

.db-tab.is-active {
    background: var(--primary);
    border-color: var(--primary-strong);
    color: #ffffff;
}

.db-table td {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.db-editor-fields {
    display: grid;
    gap: 12px;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 4px;
}

.db-editor-actions-spacer {
    flex: 1 1 auto;
}

.btn-danger {
    background: #b13e2f;
    color: #ffffff;
    border: 1px solid #8f2f23;
}

.btn-danger:hover {
    background: #8f2f23;
}

.site-footer {
    margin: 68px 0 20px;
}

.footer-wrap {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(18, 34, 29, 0.1);
    color: var(--ink-muted);
    text-align: center;
}

.contact-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
}

.contact-item {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: var(--surface-soft);
    border: 1px solid rgba(18, 34, 29, 0.06);
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    color: #366259;
}

.contact-value {
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    word-break: break-word;
}

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

.contact-item-full {
    grid-column: 1 / -1;
}

.contact-map-thumb {
    display: block;
    margin-top: 12px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(18, 34, 29, 0.1);
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 6;
    position: relative;
}

.contact-map-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
}

@media (max-width: 600px) {
    .contact-map-thumb {
        aspect-ratio: 4 / 3;
    }
}

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, #0b6a57 100%);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(13, 124, 102, 0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
    z-index: 35;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-3px);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(7, 15, 13, 0.86);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 40;
    padding: 22px;
}

.lightbox.open {
    display: flex;
    animation: fadeIn 0.24s ease;
}

.lightbox img {
    max-width: min(980px, 100%);
    max-height: 88vh;
    border-radius: var(--radius-md);
    box-shadow: 0 25px 44px rgba(0, 0, 0, 0.42);
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 20px;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 600px) {
    .price-badge {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 12px;
        padding: 10px 18px;
    }

    .price-badge-note {
        padding-left: 0;
        border-left: 0;
        flex-basis: 100%;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

    .section-head-inline {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .nav-toggle {
        display: flex;
    }

    .nav-wrap {
        position: relative;
        flex-wrap: wrap;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 10px;
        border-radius: var(--radius-md);
        background: var(--surface);
        box-shadow: var(--shadow);
        border: 1px solid rgba(18, 34, 29, 0.08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
        z-index: 30;
    }

    .nav-links.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        padding: 12px 14px;
        border-radius: var(--radius-sm);
    }

    .nav-links a:hover {
        background: var(--surface-soft);
    }

    .btn-link {
        text-align: center;
        border-color: var(--primary);
        color: var(--primary-strong);
    }
}

@media (max-width: 720px) {
    .container {
        width: min(1120px, calc(100% - 26px));
    }

    .hero-copy,
    .hero-panel,
    .calendar-card,
    .reservation-form {
        padding: 18px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .reservation-grid.two-col,
    .reservation-grid.three-col {
        grid-template-columns: 1fr;
    }

    .field-span-2 {
        grid-column: span 1;
    }

    .reservation-form-redesign .btn-full {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .calendar-controls {
        display: flex;
        width: 100%;
        gap: 8px;
        justify-content: space-between;
    }

    .cal-nav-label {
        display: none;
    }

    .cal-nav-ico {
        display: inline-block;
    }

    .calendar-nav-btn {
        flex: 0 0 auto;
        min-width: 44px;
        justify-content: center;
        padding: 8px 12px;
    }

    #monthLabel {
        min-width: 0;
        flex: 1 1 auto;
        text-align: center;
        font-size: 15px;
    }

    .calendar-weekdays span {
        font-size: 12px;
        padding: 4px 2px;
    }

    .calendar-weekdays,
    .calendar-grid {
        gap: 5px;
    }

    .calendar-day {
        min-height: 46px;
        font-size: 14px;
        border-radius: 10px;
    }

    .gallery-nav {
        width: 38px;
        height: 38px;
        font-size: 22px;
    }

    .scroll-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* --- Admin: nastavenia + správa súborov --------------------------------- */

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.settings-fieldset {
    border: 1px solid rgba(18, 34, 29, 0.14);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.settings-fieldset legend {
    padding: 0 8px;
    font-weight: 600;
    color: var(--ink);
}

.settings-hint {
    font-size: 12px;
    color: var(--muted, #5a6b64);
    margin: 4px 0 0;
    font-weight: 400;
}

.settings-note {
    color: var(--muted, #5a6b64);
    margin: 0 0 12px;
}

.file-upload-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.file-upload-label {
    font-weight: 600;
    color: var(--ink);
}

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

.file-card {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.file-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius-sm, 8px);
    display: block;
    background: #0b1a15;
}

.file-card figcaption {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
}

.file-card-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
}

.file-card-meta {
    color: var(--muted, #5a6b64);
    flex: none;
}

.file-card-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.file-card-move-btn {
    flex: none;
    width: 28px;
    height: 28px;
    line-height: 1;
    border-radius: 999px;
    border: 1px solid rgba(18, 34, 29, 0.15);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    font-size: 14px;
}

.file-card-move-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.file-card-move-btn:not(:disabled):hover {
    background: rgba(18, 34, 29, 0.06);
}

