/* ============================================================
   HotelShoppen – App CSS
   Compiled by Vite + Tailwind (or served directly from public/)
   ============================================================ */

/* --- Tailwind base (when using Vite + @tailwindcss/vite) --- */
/* @import "tailwindcss"; */

/* --- Custom Properties (mirroring the React design tokens) --- */
:root {
    --color-primary:    #F97316;  /* orange */
    --color-secondary:  #2563EB;  /* blue */
    --color-success:    #10B981;  /* green */
    --color-danger:     #EF4444;  /* red */
    --color-bg:         #FAFAFA;
    --color-bg-slate:   #F1F5F9;
    --color-border:     #E2E8F0;
    --color-text:       #1F2937;
    --color-text-muted: #6B7280;
}

/* --- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Scrollbar utilities --- */
.scrollbar-hide { scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

/* --- Toast notification --- */
.toast {
    pointer-events: all;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,.12), 0 4px 10px -3px rgba(0,0,0,.08);
    border-left: 4px solid var(--color-success);
    min-width: 280px;
    max-width: 420px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    animation: toast-in 0.35s ease forwards;
}

.toast.error   { border-left-color: var(--color-danger); }
.toast.warning { border-left-color: #F59E0B; }
.toast.info    { border-left-color: var(--color-secondary); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.toast-out {
    animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(-8px) scale(0.96); }
}

/* --- Alpine.js cloak --- */
[x-cloak] { display: none !important; }

/* --- Prose overrides for modal content --- */
.prose h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; color: #1F2937; }
.prose h4 { font-size: 0.95rem; font-weight: 600; margin-top: 1rem; margin-bottom: 0.25rem; color: #374151; }
.prose p  { margin-bottom: 0.75rem; line-height: 1.65; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose li { margin-bottom: 0.25rem; }

/* --- Bento grid auto-rows fix --- */
.auto-rows-bento {
    grid-auto-rows: minmax(180px, auto);
}

/* --- Hover group effects (mirroring React group-hover) --- */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }

/* --- Transition utilities --- */
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: 200ms; }
.duration-700 { transition-duration: 700ms; }

/* --- Payment method radio button alignment --- */
.payment-method-btn { cursor: pointer; }
.payment-method-btn:focus { outline: none; }

/* --- Floorplan zoom container --- */
.floorplan-container { position: relative; display: inline-block; user-select: none; }
.floorplan-container img { display: block; max-width: 100%; }

/* --- Sunbed / Table overlays --- */
.map-overlay-btn {
    position: absolute;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.map-overlay-btn:disabled { cursor: not-allowed; }

/* --- Animate in (simplified) --- */
@keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.animate-fade-in { animation: fade-in 0.4s ease forwards; }

@keyframes slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-slide-up { animation: slide-up 0.5s ease forwards; }

/* --- Gradient text utility --- */
.gradient-text {
    background: linear-gradient(135deg, #2563EB, #6366F1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Card style (replicating shadcn Card) --- */
.card {
    background: white;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

/* --- Button base styles --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0 1.25rem;
    height: 2.5rem;
    transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    font-size: 0.875rem;
    line-height: 1;
}
.btn:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.btn-primary   { background: var(--color-primary);   color: white; }
.btn-primary:hover { background: #FB923C; box-shadow: 0 4px 12px rgba(249,115,22,.35); }
.btn-secondary { background: var(--color-secondary); color: white; }
.btn-secondary:hover { background: #3B82F6; }
.btn-success   { background: var(--color-success);   color: white; }
.btn-success:hover { background: #059669; }
.btn-outline   { background: white; color: var(--color-secondary); border: 1.5px solid var(--color-border); }
.btn-outline:hover { background: #EFF6FF; }
.btn-ghost     { background: transparent; color: #6B7280; }
.btn-ghost:hover { background: #F9FAFB; color: #111827; }
.btn-danger    { background: var(--color-danger); color: white; }
.btn-danger:hover { background: #DC2626; }

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25;
}
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-orange { background: #FFEDD5; color: #9A3412; }
.badge-purple { background: #EDE9FE; color: #5B21B6; }
.badge-amber  { background: #FEF3C7; color: #92400E; }
.badge-cyan   { background: #CFFAFE; color: #155E75; }

/* --- Input base --- */
.form-input {
    display: block;
    width: 100%;
    height: 3rem;
    padding: 0 1rem;
    border: 1.5px solid var(--color-border);
    border-radius: 0.75rem;
    background: #F9FAFB;
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.form-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
    background: white;
}

/* --- Checkbox --- */
.form-checkbox {
    appearance: none;
    width: 1rem;
    height: 1rem;
    border: 1.5px solid #D1D5DB;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.form-checkbox:checked {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
}

/* --- Progress step connector --- */
.step-connector {
    height: 4px;
    width: 6rem;
    border-radius: 9999px;
}

/* --- Responsive image hero --- */
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.hero-img:hover { transform: scale(1.04); }