/* ═══════════════════════════════════════════════════════════════════════
   Hotel Gardinn — Booking Widget Styles
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Fonts (matching hotelgardinn.sk) ─────────────────────────────── */

@font-face {
    font-family: 'Nikkei Maru';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-PPNikkeiMaru-Regular.woff2') format('woff2'),
         url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-PPNikkeiMaru-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Nikkei Maru';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-PPNikkeiMaru-Ultrabold.woff2') format('woff2'),
         url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-PPNikkeiMaru-Ultrabold.woff') format('woff');
}
@font-face {
    font-family: 'Neue Montreal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-NeueMontreal-Regular-1.woff2') format('woff2'),
         url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-NeueMontreal-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Neue Montreal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-NeueMontreal-Bold-1.woff2') format('woff2'),
         url('https://preview.deploy.sk/gardinn/homepage/wp-content/uploads/2025/12/subset-NeueMontreal-Bold.woff') format('woff');
}

/* ── Variables ────────────────────────────────────────────────────── */

:root {
    --gd-primary: #2c4a3e;
    --gd-primary-light: #3d6b5a;
    --gd-primary-dark: #1a3029;
    --gd-accent: #c9a96e;
    --gd-accent-light: #dfc494;
    --gd-bg: #f7f5f0;
    --gd-bg-card: #ffffff;
    --gd-text: #2a2a2a;
    --gd-text-light: #6b6b6b;
    --gd-text-muted: #999999;
    --gd-border: #e0ddd5;
    --gd-success: #2d8a4e;
    --gd-error: #c0392b;
    --gd-shadow: 0 2px 20px rgba(0,0,0,0.08);
    --gd-shadow-hover: 0 4px 30px rgba(0,0,0,0.12);
    --gd-radius: 12px;
    --gd-radius-sm: 8px;
    --gd-font: 'Neue Montreal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --gd-font-display: 'Nikkei Maru', Georgia, 'Times New Roman', serif;
    --gd-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

.booking-widget {
    font-family: var(--gd-font);
    color: var(--gd-text);
    background: var(--gd-bg);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.booking-widget.embed-mode {
    min-height: auto;
    background: transparent;
}

/* ── Container ────────────────────────────────────────────────────── */

.bw-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px;
}
.embed-mode .bw-container { padding: 24px 20px; }

/* ── Header ───────────────────────────────────────────────────────── */

.bw-header {
    text-align: center;
    margin-bottom: 32px;
}
.bw-header h1 {
    font-family: var(--gd-font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gd-primary);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}
.bw-header p {
    font-family: var(--gd-font);
    color: var(--gd-text-light);
    font-size: 0.95rem;
    font-weight: 400;
}

/* ── Steps indicator ──────────────────────────────────────────────── */

.bw-steps {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.bw-step {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 100px;
    font-family: var(--gd-font);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gd-text-muted);
    background: var(--gd-bg-card);
    border: 1px solid var(--gd-border);
    transition: all var(--gd-transition);
}
.bw-step.active {
    color: #fff;
    background: var(--gd-primary);
    border-color: var(--gd-primary);
}
.bw-step.completed {
    color: var(--gd-primary);
    background: #e8f0ec;
    border-color: var(--gd-primary-light);
}
.bw-step-number {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
}
.bw-step.active .bw-step-number { background: rgba(255,255,255,0.25); }
.bw-step.completed .bw-step-number { background: var(--gd-primary); color: #fff; }

/* ── Panels ───────────────────────────────────────────────────────── */

.bw-panel {
    background: var(--gd-bg-card);
    border-radius: var(--gd-radius);
    box-shadow: var(--gd-shadow);
    padding: 28px 32px;
    margin-bottom: 20px;
    animation: bwFadeIn 0.3s ease;
}
.bw-date-bar { padding: 16px 28px; }
.bw-date-bar p {
    font-family: var(--gd-font);
    color: var(--gd-text-light);
    font-size: 0.88rem;
    margin: 0;
    text-align: center;
}

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

.bw-panel-title {
    font-family: var(--gd-font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gd-primary);
    margin-bottom: 24px;
    text-align: left;
}

/* ── Search form ──────────────────────────────────────────────────── */

.bw-search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}
.bw-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bw-field label {
    font-family: var(--gd-font);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gd-text-light);
}
.bw-field input,
.bw-field select {
    padding: 11px 14px;
    border: 1.5px solid var(--gd-border);
    border-radius: var(--gd-radius-sm);
    font-family: var(--gd-font);
    font-size: 0.92rem;
    color: var(--gd-text);
    background: #fff;
    transition: border-color var(--gd-transition), box-shadow var(--gd-transition);
    outline: none;
    width: 100%;
}
.bw-field input:focus,
.bw-field select:focus {
    border-color: var(--gd-primary);
    box-shadow: 0 0 0 3px rgba(44,74,62,0.10);
}

/* ── Buttons ──────────────────────────────────────────────────────── */

.bw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border: none;
    border-radius: var(--gd-radius-sm);
    font-family: var(--gd-font);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--gd-transition);
    text-decoration: none;
    white-space: nowrap;
}
.bw-btn-primary { background: var(--gd-primary); color: #fff; }
.bw-btn-primary:hover { background: var(--gd-primary-light); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(44,74,62,0.3); }
.bw-btn-primary:disabled { background: var(--gd-text-muted); cursor: not-allowed; transform: none; box-shadow: none; }
.bw-btn-accent { background: var(--gd-accent); color: #fff; }
.bw-btn-accent:hover { background: #b8973f; }
.bw-btn-outline { background: transparent; color: var(--gd-primary); border: 1.5px solid var(--gd-primary); }
.bw-btn-outline:hover { background: var(--gd-primary); color: #fff; }
.bw-btn-lg { padding: 14px 32px; font-size: 1rem; }

/* ── Room cards ───────────────────────────────────────────────────── */

.bw-rooms-list { display: flex; flex-direction: column; gap: 14px; }

.bw-room-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    padding: 22px 24px;
    background: var(--gd-bg-card);
    border: 1.5px solid var(--gd-border);
    border-radius: var(--gd-radius);
    transition: all var(--gd-transition);
    cursor: pointer;
}
.bw-room-card:hover { border-color: var(--gd-primary-light); box-shadow: var(--gd-shadow-hover); transform: translateY(-2px); }
.bw-room-card.selected { border-color: var(--gd-primary); background: #f0f6f3; box-shadow: 0 0 0 3px rgba(44,74,62,0.10); }

.bw-room-info h3 {
    font-family: var(--gd-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gd-primary);
    margin-bottom: 3px;
    text-align: left;
}
.bw-room-info p {
    font-family: var(--gd-font);
    color: var(--gd-text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-align: left;
    line-height: 1.5;
}
.bw-room-meta {
    display: flex;
    gap: 14px;
    font-family: var(--gd-font);
    font-size: 0.8rem;
    color: var(--gd-text-muted);
}
.bw-room-meta span { display: flex; align-items: center; gap: 4px; }

.bw-room-pricing { text-align: right; min-width: 130px; }
.bw-room-pricing .price-per-night { font-family: var(--gd-font); font-size: 1.4rem; font-weight: 700; color: var(--gd-primary); }
.bw-room-pricing .price-per-night .currency { font-size: 0.8rem; font-weight: 500; }
.bw-room-pricing .price-label { font-family: var(--gd-font); font-size: 0.75rem; color: var(--gd-text-muted); }
.bw-room-pricing .price-total { font-family: var(--gd-font); font-size: 0.85rem; font-weight: 600; color: var(--gd-text); margin-top: 3px; }

/* ── Guest form ───────────────────────────────────────────────────── */

.bw-guest-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.bw-field-full { grid-column: 1 / -1; }

.bw-field textarea {
    padding: 11px 14px;
    border: 1.5px solid var(--gd-border);
    border-radius: var(--gd-radius-sm);
    font-family: var(--gd-font);
    font-size: 0.92rem;
    color: var(--gd-text);
    resize: vertical;
    min-height: 80px;
    outline: none;
    width: 100%;
    transition: border-color var(--gd-transition), box-shadow var(--gd-transition);
}
.bw-field textarea:focus { border-color: var(--gd-primary); box-shadow: 0 0 0 3px rgba(44,74,62,0.10); }

/* ── Booking summary ──────────────────────────────────────────────── */

.bw-summary {
    background: var(--gd-primary-dark);
    color: #fff;
    border-radius: var(--gd-radius);
    padding: 24px 28px;
    margin-bottom: 20px;
}
.bw-summary h3 {
    font-family: var(--gd-font-display);
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--gd-accent-light);
    text-align: left;
}
.bw-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-family: var(--gd-font);
    font-size: 0.88rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bw-summary-row:last-child { border-bottom: none; }
.bw-summary-row .label { opacity: 0.7; }
.bw-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 14px 0 0;
    margin-top: 10px;
    border-top: 2px solid var(--gd-accent);
    font-family: var(--gd-font);
    font-size: 1.1rem;
    font-weight: 700;
}

/* ── Stripe element ───────────────────────────────────────────────── */

.bw-stripe-element {
    padding: 13px 14px;
    border: 1.5px solid var(--gd-border);
    border-radius: var(--gd-radius-sm);
    background: #fff;
}
.bw-stripe-element.StripeElement--focus { border-color: var(--gd-primary); box-shadow: 0 0 0 3px rgba(44,74,62,0.10); }
.bw-stripe-element.StripeElement--invalid { border-color: var(--gd-error); }

.bw-payment-error { color: var(--gd-error); font-size: 0.82rem; margin-top: 6px; display: none; }

/* ── Demo card (when Stripe is not configured) ────────────────────── */

.bw-demo-card {
    background: #fafaf7;
    border: 1.5px solid var(--gd-border);
    border-radius: var(--gd-radius);
    padding: 20px;
    margin-bottom: 20px;
}
.bw-demo-card .bw-field { margin-bottom: 12px; }
.bw-demo-card .bw-field:last-of-type { margin-bottom: 0; }
.bw-demo-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.bw-demo-input {
    background: #fff !important;
    color: var(--gd-text) !important;
    font-family: 'SF Mono', 'Fira Code', monospace !important;
    letter-spacing: 0.05em;
}
.bw-demo-notice {
    font-family: var(--gd-font);
    font-size: 0.8rem;
    color: var(--gd-accent);
    font-weight: 600;
    margin-top: 14px;
    text-align: center;
}

/* ── Confirmation ─────────────────────────────────────────────────── */

.bw-confirmation { text-align: center; padding: 36px 20px; }
.bw-confirmation-icon {
    width: 68px; height: 68px; border-radius: 50%;
    background: var(--gd-success); color: #fff;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px; font-size: 1.8rem;
}
.bw-confirmation h2 {
    font-family: var(--gd-font-display);
    font-size: 1.5rem;
    color: var(--gd-primary);
    margin-bottom: 10px;
}
.bw-confirmation p {
    font-family: var(--gd-font);
    color: var(--gd-text-light);
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto 8px;
}
.bw-confirmation-number {
    font-family: var(--gd-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gd-primary);
    background: #e8f0ec;
    display: inline-block;
    padding: 8px 24px;
    border-radius: var(--gd-radius-sm);
    margin: 14px 0;
}

/* ── Loading / spinner ────────────────────────────────────────────── */

.bw-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; gap: 14px; }
.bw-spinner { width: 36px; height: 36px; border: 3px solid var(--gd-border); border-top-color: var(--gd-primary); border-radius: 50%; animation: bwSpin 0.7s linear infinite; }
@keyframes bwSpin { to { transform: rotate(360deg); } }
.bw-loading-text { font-family: var(--gd-font); color: var(--gd-text-light); font-size: 0.88rem; }

/* ── Alerts ───────────────────────────────────────────────────────── */

.bw-alert { padding: 12px 18px; border-radius: var(--gd-radius-sm); font-family: var(--gd-font); font-size: 0.88rem; margin-bottom: 14px; }
.bw-alert-error { background: #fdecea; color: var(--gd-error); border: 1px solid #f5c6cb; }
.bw-alert-info { background: #e8f0ec; color: var(--gd-primary); border: 1px solid #c3d9ce; }

/* ── Footer actions ───────────────────────────────────────────────── */

.bw-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
}

/* ── Modal overlay ────────────────────────────────────────────────── */

.bw-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 100000;
    display: flex; align-items: center; justify-content: center;
    animation: bwFadeIn 0.25s ease;
}
.bw-modal-content {
    background: var(--gd-bg);
    border-radius: var(--gd-radius);
    width: 95vw; max-width: 900px; max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.bw-modal-previo {
    width: 95vw; max-width: 780px; height: 85vh; max-height: 85vh;
    overflow: hidden;
    background: #fff;
}
.bw-modal-close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: var(--gd-primary); color: #fff;
    font-size: 1.1rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; transition: background var(--gd-transition);
}
.bw-modal-close:hover { background: var(--gd-primary-light); }

.bw-hidden { display: none !important; }

/* ── Live badge ──────────────────────────────────────────────────── */

.bw-live-badge {
    display: inline-block;
    background: #27ae60;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 8px;
    text-transform: uppercase;
}

/* ── Sold-out rooms ──────────────────────────────────────────────── */

.bw-room-card.sold-out {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.bw-room-card.sold-out:hover {
    border-color: var(--gd-border);
    box-shadow: none;
}
.sold-out-label {
    color: #c0392b;
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .bw-search-form { grid-template-columns: 1fr 1fr; }
    .bw-search-form .bw-btn { grid-column: 1 / -1; }
    .bw-room-card { grid-template-columns: 1fr; }
    .bw-room-pricing {
        text-align: left;
        display: flex; align-items: baseline; gap: 12px;
        flex-wrap: wrap;
        min-width: auto;
    }
    .bw-guest-form { grid-template-columns: 1fr; }
    .bw-step { font-size: 0.75rem; padding: 5px 10px; }
}

@media (max-width: 480px) {
    .bw-search-form { grid-template-columns: 1fr; }
    .bw-container { padding: 20px 14px; }
    .bw-panel { padding: 20px 18px; }
    .bw-header h1 { font-size: 1.4rem; }
    .bw-demo-card-row { grid-template-columns: 1fr; }
}
