*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    min-height: 100%;
    background: #0d0d0d;
    color: #f0f0f0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

a { color: inherit; }

/* --- Blazor internals --- */

#blazor-error-ui { display: none; }

/* --- Language toggle --- */

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.5rem 0.7rem;
}

.lang-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.5rem;
    letter-spacing: 0.05rem;
    transition: color .15s;
}

.lang-btn--active { color: #fff; }
.lang-btn:hover { color: #ccc; }

.lang-sep { color: #555; font-size: 1rem; }

/* --- Header --- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid #262626;
}

.site-header-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-header .brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: .1rem;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
}

.site-header nav a {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    background: #e63946;
    color: #fff;
    padding: .6rem 1.4rem;
    border-radius: 10px;
    white-space: nowrap;
    transition: opacity .15s;
}

.site-header nav a:hover { opacity: .85; }

/* Narrow viewports don't have room for the toggle, brand and button on one line at full size —
   shrink them so the button never wraps or gets pushed off-screen. */
@media (max-width: 480px) {
    .site-header { padding: .9rem 1rem; }
    .site-header-left { gap: .6rem; }
    .site-header .brand { font-size: 1.15rem; }
    .lang-toggle { padding: .35rem .5rem; gap: .3rem; }
    .lang-btn { font-size: .9rem; padding: .25rem .3rem; }
    .lang-sep { font-size: .85rem; }
    .site-header nav a { padding: .5rem .9rem; font-size: .9rem; }
}

main { max-width: 900px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; }

/* --- Landing page --- */

.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2.8rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; color: #bbb; max-width: 560px; margin: 0 auto; }

.cta { text-align: center; padding: 2.5rem 1rem 1rem; }

/* --- Before/after theme gallery --- */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding-top: 2rem;
}

.compare-item { display: flex; flex-direction: column; gap: .6rem; }
.compare-title { font-size: 1.05rem; font-weight: 700; text-align: center; }

.compare {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #333;
}

.compare-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
}

.compare-before { z-index: 1; }

.compare-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 2;
    pointer-events: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

.compare-handle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.compare-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

.compare-range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; }
.compare-range::-moz-range-thumb { width: 32px; height: 32px; border: none; background: transparent; }

.btn-primary {
    display: inline-block;
    padding: 1rem 2.4rem;
    font-size: 1.2rem;
    font-weight: 700;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}

.btn-primary:hover { opacity: .85; }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .5; cursor: default; }

/* --- Booking flow --- */

.booking-step { margin-bottom: 2.5rem; }
.booking-step h2 { font-size: 1.4rem; margin-bottom: 1rem; }

.product-grid { display: flex; gap: 1rem; flex-wrap: wrap; }

.product-card {
    padding: 1.2rem 1.6rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 14px;
    color: #f0f0f0;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
}

.product-card.selected { border-color: #e63946; background: rgba(230, 57, 70, 0.12); }

/* --- Collage theme picker --- */

.collage-theme-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }

.collage-theme-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: .8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 14px;
    color: #f0f0f0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
}

.collage-theme-card.selected { border-color: #e63946; background: rgba(230, 57, 70, 0.12); }

.collage-none-card {
    justify-content: center;
    width: 150px;
    height: 200px;
}

.collage-theme-preview {
    width: 150px;
    height: 200px;
    object-fit: cover;
    background: #333; /* shown briefly while the real background image loads */
    border-radius: 8px;
}

.collage-layout-picker {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.collage-layout-section {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    width: 260px;
}

.collage-layout-section h3 { font-size: 1rem; }

.collage-layout-options { display: flex; flex-direction: column; gap: .4rem; }

.collage-layout-btn {
    padding: .5rem .8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #333;
    border-radius: 10px;
    color: #f0f0f0;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    text-align: left;
}

.collage-layout-btn.selected { border-color: #e63946; background: rgba(230, 57, 70, 0.12); }

/* Real server-rendered preview (real background + real layout, placeholder gray boxes where
   photos will go) — this is what actually drives "so they know how it looks like." */
.collage-preview-img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: contain;
    background: #000;
    border-radius: 8px;
    border: 1px solid #333;
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.date-nav .btn-primary { padding: .5rem 1rem; font-size: 1rem; }

.date-grid {
    display: grid;
    grid-template-columns: auto repeat(7, 1fr);
    gap: .4rem;
    max-width: 460px;
}

.week-number-header,
.week-number {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: .8rem;
    color: #777;
}

.weekday-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 600;
    color: #aaa;
    padding-bottom: .2rem;
}

.date-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    font-size: .95rem;
}

.date-cell.unavailable { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.date-cell.selected { border-color: #e63946; background: rgba(230, 57, 70, 0.25); }
.date-cell.past { visibility: hidden; }

.selected-dates {
    margin-top: 1.2rem;
    max-width: 420px;
}

.selected-dates h3 { font-size: 1.05rem; margin-bottom: .6rem; }

.selected-dates ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .8rem;
}

.selected-dates li {
    padding: .5rem .8rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    border-radius: 8px;
    font-size: .95rem;
}

.btn-secondary {
    padding: .6rem 1.2rem;
    font-size: .95rem;
    font-weight: 600;
    background: transparent;
    color: #ccc;
    border: 2px solid #444;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}

.btn-secondary:hover { border-color: #e63946; color: #fff; }

.form-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; max-width: 420px; }
.form-field label { font-size: .95rem; color: #ccc; }
.form-field input {
    padding: .7rem .9rem;
    border-radius: 8px;
    border: 1px solid #333;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 1rem;
}

.error-text { color: #ff6b6b; margin-bottom: 1rem; }

.confirmation-box {
    padding: 2rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2a2a;
}

.confirmation-box a { color: #e63946; font-weight: 700; }

/* --- Staff delivery schedule --- */

.delivery-table {
    width: 100%;
    border-collapse: collapse;
}

.delivery-table th, .delivery-table td {
    text-align: left;
    padding: .7rem .9rem;
    border-bottom: 1px solid #262626;
    font-size: .95rem;
}

.delivery-table th { color: #ccc; font-weight: 700; }

.delivery-table tr.past-booking { opacity: .4; }

.btn-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    background: #e63946;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity .15s;
}

.btn-delete svg { width: 1.1rem; height: 1.1rem; }
.btn-delete:hover { opacity: .85; }
.btn-delete:disabled { opacity: .5; cursor: default; }
