/* ================================================================== */
/* Spotlink — Estilos customizados                                      */
/* Apenas o que o Tailwind não cobre nativamente.                       */
/* ================================================================== */

[x-cloak] { display: none !important; }

html { scroll-behavior: smooth; }

/* Foco acessível e sóbrio */
:focus-visible {
    outline: 2px solid #ff5b3a;
    outline-offset: 2px;
    border-radius: 6px;
}

/* Tipografia editorial nos títulos display */
.font-display {
    letter-spacing: -0.02em;
    font-feature-settings: "ss01", "ss02";
}

/* Card de spot — hover refinado */
.spot-card {
    transition: transform .25s ease, box-shadow .25s ease;
}
.spot-card:hover {
    transform: translateY(-2px);
}
.spot-card .spot-card__img {
    transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.spot-card:hover .spot-card__img {
    transform: scale(1.04);
}

/* Chip de filtro/atividade */
.chip {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .5rem .9rem;
    border-radius: 9999px;
    border: 1px solid #e6e3da;
    background: #fff;
    font-size: .875rem;
    font-weight: 500;
    color: #1e3a5f;
    transition: all .18s ease;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
.chip:hover { border-color: #1e3a5f; }
.chip--active {
    background: #0f1f3d;
    color: #fff;
    border-color: #0f1f3d;
}

/* Inputs base — herdam Tailwind, ajustamos altura/peso */
.field {
    width: 100%;
    border-radius: .75rem;
    border: 1px solid #e6e3da;
    padding: .75rem 1rem;
    background: #fff;
    color: #0f1f3d;
    font-size: 1rem;
    transition: border-color .15s, box-shadow .15s;
}
.field:focus {
    border-color: #0f1f3d;
    box-shadow: 0 0 0 3px rgba(15,31,61,.08);
    outline: none;
}
.field--error { border-color: #f43f5e; }

.label {
    display: block;
    font-size: .8125rem;
    font-weight: 600;
    color: #0f1f3d;
    margin-bottom: .35rem;
    letter-spacing: .01em;
}

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .75rem 1.25rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .9375rem;
    transition: transform .12s, box-shadow .15s, background .15s;
    cursor: pointer;
    border: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: #0f1f3d;
    color: #fff;
}
.btn--primary:hover { background: #1e3a5f; }

.btn--accent {
    background: #ff5b3a;
    color: #fff;
}
.btn--accent:hover { background: #e84d2e; }

.btn--ghost {
    background: transparent;
    color: #0f1f3d;
    border: 1px solid #e6e3da;
}
.btn--ghost:hover { background: #f6f4ee; }

/* Hero pattern sutil */
.hero-bg {
    background:
        radial-gradient(1200px 600px at 110% -10%, rgba(255,179,71,.18), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(15,31,61,.07), transparent 60%),
        #fbfaf6;
}

/* Calendário simples */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    color: #0f1f3d;
    cursor: pointer;
    transition: all .12s ease;
    border: 1px solid transparent;
}
.cal-day:hover:not(.cal-day--disabled):not(.cal-day--selected) {
    background: #f6f4ee;
}
.cal-day--muted { color: #c9c5b8; cursor: default; }
.cal-day--disabled {
    color: #c9c5b8;
    text-decoration: line-through;
    cursor: not-allowed;
}
.cal-day--today {
    border-color: #1e3a5f;
}
.cal-day--selected {
    background: #0f1f3d;
    color: #fff;
}

/* Loader simples */
.loader {
    display: inline-block;
    width: 1rem; height: 1rem;
    border: 2px solid currentColor;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Reveal on load */
.reveal {
    opacity: 0;
    transform: translateY(8px);
    animation: revealUp .6s cubic-bezier(.2,.7,.2,1) forwards;
}
.reveal--1 { animation-delay: .05s; }
.reveal--2 { animation-delay: .15s; }
.reveal--3 { animation-delay: .25s; }
.reveal--4 { animation-delay: .35s; }
@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* Print friendly */
@media print {
    header, footer, .no-print { display: none !important; }
}

/*
 * "Safelist" para classes de status compostas dinamicamente em PHP.
 * O Tailwind CDN/JIT escaneia o HTML em tempo real; estas classes
 * aparecem em owner/bookings.php, user/dashboard.php, owner/spots.php
 * etc. — listamos aqui para garantir que sempre existam no bundle.
 */
.bg-emerald-50 { background-color:#ecfdf5; } .border-emerald-200 { border-color:#a7f3d0; } .text-emerald-800 { color:#065f46; }
.bg-amber-50   { background-color:#fffbeb; } .border-amber-200   { border-color:#fde68a; } .text-amber-800   { color:#92400e; } .text-amber-900 { color:#78350f; }
.bg-rose-50    { background-color:#fff1f2; } .border-rose-200    { border-color:#fecdd3; } .text-rose-800    { color:#9f1239; }
.bg-sky-50     { background-color:#f0f9ff; } .border-sky-200     { border-color:#bae6fd; } .text-sky-800     { color:#075985; } .text-sky-900 { color:#0c4a6e; }
.bg-gray-50    { background-color:#f9fafb; } .border-gray-200    { border-color:#e5e7eb; } .text-gray-800    { color:#1f2937; }

/* ----- Scrollbar discreta no carrossel de chips ----- */
.scroll-x::-webkit-scrollbar { height: 0; }
.scroll-x { scrollbar-width: none; }
