[x-cloak] { display: none !important; }

.hero-overlay {
    background-color: rgba(250, 248, 245, calc(var(--hero-overlay, 62) / 100));
}

.dark .hero-overlay {
    background-color: rgba(28, 25, 23, calc(var(--hero-overlay, 62) / 100));
}

/* Jači krem disk iza teksta — slika vidljiva po ivicama */
.hero-scrim {
    background: radial-gradient(
        ellipse 90% 75% at 50% 42%,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(250, 248, 245, 0.55) 45%,
        transparent 72%
    );
    pointer-events: none;
}

.dark .hero-scrim {
    background: radial-gradient(
        ellipse 90% 75% at 50% 42%,
        rgba(41, 37, 36, 0.9) 0%,
        rgba(28, 25, 23, 0.5) 45%,
        transparent 72%
    );
}

.hero-text-panel {
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 1.5rem;
    padding: 2rem 1.75rem;
    box-shadow: 0 12px 40px rgba(91, 74, 56, 0.12);
}

.dark .hero-text-panel {
    background: rgba(41, 37, 36, 0.82);
    border-color: rgba(255, 255, 255, 0.1);
}

.hero-text-panel .hero-title {
    color: #5c4a38;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.dark .hero-text-panel .hero-title {
    color: #e8dcc8;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.hero-text-panel .hero-eyebrow {
    color: #9a7b3c;
    letter-spacing: 0.35em;
}

.hero-text-panel .hero-subtitle {
    color: #44403c;
    font-weight: 500;
}

.dark .hero-text-panel .hero-subtitle {
    color: #d6d3d1;
}

@media (min-width: 640px) {
    .hero-text-panel {
        padding: 2.5rem 3rem;
    }
}

.pb-safe {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

.pt-safe {
    padding-top: max(0px, env(safe-area-inset-top, 0px));
}

@media (max-width: 767px) {
    footer {
        margin-bottom: 4.5rem;
    }
}

.pwa-standalone header {
    padding-top: env(safe-area-inset-top, 0px);
}

.glass {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.dark .glass {
    background: rgba(28, 25, 23, 0.75);
    border-color: rgba(255, 255, 255, 0.08);
}

.glass-admin {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e8dcc8;
}

.dark .glass-admin {
    background: rgba(41, 37, 36, 0.9);
    border-color: #44403c;
}

.btn-gold {
    background: linear-gradient(135deg, #c9a962 0%, #a89050 100%);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 169, 98, 0.35);
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-fade-up { animation: fadeUp 0.6s ease-out; }
.animate-fade-in { animation: fadeIn 0.4s ease-out; }

#calendar {
    min-height: 420px;
}

@media (min-width: 768px) {
    #calendar {
        min-height: 600px;
    }
}

img[loading="lazy"] {
    content-visibility: auto;
}

/* ——— Responsive ——— */

.toast-flash {
    left: max(1rem, env(safe-area-inset-left, 0px));
    right: max(1rem, env(safe-area-inset-right, 0px));
    top: max(4.5rem, calc(env(safe-area-inset-top, 0px) + 3.5rem));
    max-width: min(100% - 2rem, 24rem);
}

@media (min-width: 768px) {
    .toast-flash {
        left: auto;
        right: 1rem;
        max-width: 24rem;
    }
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

.table-scroll table {
    min-width: 36rem;
}

@media (max-width: 767px) {
    table.table-stack thead {
        display: none;
    }

    table.table-stack tbody tr {
        display: block;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
        border: 1px solid #e8dcc8;
        border-radius: 0.75rem;
        background: rgba(255, 255, 255, 0.5);
    }

    .dark table.table-stack tbody tr {
        border-color: #44403c;
        background: rgba(41, 37, 36, 0.5);
    }

    table.table-stack tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
        padding: 0.35rem 0;
        border: none;
        text-align: right;
    }

    table.table-stack tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        opacity: 0.65;
        text-align: left;
        flex-shrink: 0;
    }

    table.table-stack tbody td.actions-cell {
        flex-wrap: wrap;
        justify-content: flex-end;
        padding-top: 0.5rem;
        margin-top: 0.25rem;
        border-top: 1px dashed #e8dcc8;
    }

    table.table-stack tbody td.actions-cell::before {
        width: 100%;
        margin-bottom: 0.25rem;
    }
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.admin-main {
    min-width: 0;
    width: 100%;
}

.schedule-row {
    display: grid;
    grid-template-columns: 3.5rem 1fr 1fr auto;
    gap: 0.5rem;
    align-items: center;
}

@media (max-width: 479px) {
    .schedule-row {
        grid-template-columns: 1fr 1fr;
    }

    .schedule-row .schedule-day {
        grid-column: 1 / -1;
        font-weight: 600;
    }
}

.booking-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.booking-steps span {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
}

@media (min-width: 640px) {
    .booking-steps span {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
    }
}

.touch-target {
    min-height: 2.75rem;
    min-width: 2.75rem;
}
