@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --public-chrome-bg:     rgba(13, 27, 42, 0.92);
    --public-chrome-border: rgba(201, 168, 76, 0.18);
    --public-surface:       #ffffff;
    --public-surface-soft:  #faf8f3;
    --public-text:          #0d1b2a;
    --public-muted:         #5a6a7a;
    --public-primary:       #c9a84c;
    --public-primary-dark:  #a8872e;
    --public-primary-light: #dfc278;
}

.fi-topbar {
    display: none !important;
}

.fi-main {
    padding-top: 1.25rem !important;
    padding-bottom: calc(8.25rem + env(safe-area-inset-bottom, 0px)) !important;
    background:
        radial-gradient(circle at 10% -5%, rgba(201, 168, 76, 0.08), transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(13, 27, 42, 0.06), transparent 45%),
        linear-gradient(180deg, #faf8f3 0%, #f5f2eb 100%);
}

.public-shell,
.public-shell * {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}

.public-topbar {
    position: sticky;
    top: 0;
    z-index: 60;
    margin: -0.25rem 0 1rem;
    border-radius: 0.95rem;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--public-chrome-bg);
    border: 1px solid var(--public-chrome-border);
    box-shadow: 0 14px 28px -22px rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(10px);
}

.public-topbar__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #faf8f3;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.public-topbar__brand-mark {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--public-primary), var(--public-primary-dark));
}

.public-topbar__meta {
    font-size: 0.76rem;
    font-weight: 600;
    color: #e2d9c0;
    border: 1px solid rgba(201, 168, 76, 0.28);
    border-radius: 999px;
    padding: 0.24rem 0.58rem;
    background: rgba(201, 168, 76, 0.08);
}

.public-search-hero {
    border-radius: 1rem;
    padding: 1.35rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0d1b2a 0%, #132030 45%, #1e3248 100%);
    color: #f9fafb;
    border: 1px solid rgba(201, 168, 76, 0.2);
    box-shadow: 0 24px 42px -32px rgba(13, 27, 42, 0.85);
}

.public-search-hero h1 {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.public-search-hero p {
    margin: 0.35rem 0 0;
    font-size: 0.92rem;
    color: #a8c4d6;
    max-width: 40rem;
}

.public-form-card {
    border: 1px solid #e0ddd4;
    border-radius: 1rem;
    padding: 1rem;
    background: linear-gradient(180deg, var(--public-surface) 0%, var(--public-surface-soft) 100%);
    box-shadow: 0 18px 30px -28px rgba(13, 27, 42, 0.3);
}

.public-form-card__title {
    margin: 0 0 0.75rem;
    color: var(--public-text);
    font-size: 0.94rem;
    font-weight: 700;
}

.public-table-card {
    border: 1px solid #e0ddd4;
    border-radius: 1rem;
    padding: 0.65rem;
    background: var(--public-surface);
    box-shadow: 0 18px 30px -28px rgba(13, 27, 42, 0.3);
}

/* ── Search hint ── */
.search-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 7px;
    margin-top: -0.25rem;
    margin-bottom: 0.25rem;
    padding: 0.55rem 0.85rem;
    border-radius: 0.6rem;
    background: #fdf8ec;
    border: 1px solid rgba(201, 168, 76, 0.35);
    font-size: 0.78rem;
    font-weight: 500;
    color: #6b5a2e;
    line-height: 1.45;
}

.search-hint svg {
    flex-shrink: 0;
    color: #c9a84c;
}

/* ── Price Calendar ── */
.ps-card {
    margin-top: 1.5rem;
    border-radius: 0.95rem;
    padding: 1rem 1.25rem;
    background: var(--public-surface);
    border: 1px solid #e0ddd4;
    box-shadow: 0 16px 28px -24px rgba(13, 27, 42, 0.3);
}

.ps-title {
    margin: 0 0 0.9rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--public-text);
}

.ps-subtitle {
    font-weight: 500;
    font-size: 0.76rem;
    color: var(--public-muted);
}

.ps-strip {
    display: flex;
    gap: 5px;
}

.ps-cell {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    gap: 3px;
}

.ps-cell-day {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.ps-cell-num {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1;
}

.ps-cell-month {
    font-size: 0.6rem;
    line-height: 1;
}

.ps-cell-price {
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 2px;
}

.ps-cheapest {
    background: #ecfdf5;
    border: 1.5px solid #10b981;
}

.ps-cheapest .ps-cell-day   { color: #065f46; }
.ps-cheapest .ps-cell-num   { color: #064e3b; }
.ps-cheapest .ps-cell-month { color: #047857; }
.ps-cheapest .ps-cell-price { color: #059669; }

.ps-available {
    background: #faf8f3;
    border: 1.5px solid #d4cfc4;
}

.ps-available .ps-cell-day   { color: #7a7060; }
.ps-available .ps-cell-num   { color: #0d1b2a; }
.ps-available .ps-cell-month { color: #9a9080; }
.ps-available .ps-cell-price { color: var(--public-primary); }

.ps-empty {
    background: #f5f2eb;
    border: 1.5px dashed #d4cfc4;
    opacity: 0.5;
}

.ps-empty .ps-cell-day                { color: #a09888; }
.ps-empty .ps-cell-num                { color: #a09888; text-decoration: line-through; }
.ps-empty .ps-cell-month,
.ps-empty .ps-cell-price              { color: #a09888; }

.ps-today {
    outline: 2px solid var(--public-primary) !important;
    outline-offset: 2px;
    opacity: 1 !important;
}

.ps-legend {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.72rem;
    color: #7a7060;
    align-items: center;
}

.ps-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

/* ── Sticky CTA ── */
.public-order-sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    backdrop-filter: blur(8px);
    background: var(--public-chrome-bg);
    border-top: 1px solid var(--public-chrome-border);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.public-order-sticky__inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    color: #e2d9c0;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.public-order-sticky__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.65rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--public-primary) 0%, var(--public-primary-dark) 100%);
    color: #0d1b2a;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 10px 18px -14px rgba(168, 135, 46, 0.7);
    transition: box-shadow 0.25s ease;
}

.public-order-sticky__link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.public-order-sticky__link:hover::after {
    opacity: 1;
}

/* ── Filament button overrides ── */
.fi-ac-btn-action.fi-color-primary.fi-bg-color-400 {
    position: relative !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, var(--public-primary) 0%, var(--public-primary-dark) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 18px -14px rgba(168, 135, 46, 0.7);
    transition: box-shadow 0.25s ease !important;
}

.fi-ac-btn-action.fi-color-primary.fi-bg-color-400::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
    pointer-events: none;
}

.fi-ac-btn-action.fi-color-primary.fi-bg-color-400:hover::after {
    opacity: 1;
}

.fi-ac-btn-action.fi-color-primary.fi-bg-color-400:hover {
    color: #ffffff !important;
}

.public-row-ticket-link,
.public-row-ticket-link:hover,
.public-row-ticket-link:focus,
.public-row-ticket-link:visited {
    text-decoration: none !important;
}

/* Button text white even when disabled */
.fi-ac-btn-action.fi-color-primary[disabled] {
    color: rgba(255, 255, 255, 0.55) !important;
}

/* ── Filament primary color override (kills all green) ── */
:root {
    --fi-primary-50:  #fdf8ec;
    --fi-primary-100: #faefd0;
    --fi-primary-200: #f3d98a;
    --fi-primary-300: #dfc278;
    --fi-primary-400: #c9a84c;
    --fi-primary-500: #c9a84c;
    --fi-primary-600: #a8872e;
    --fi-primary-700: #8a6a10;
    --fi-primary-800: #6b5212;
    --fi-primary-900: #4a3a0d;
    --fi-primary-950: #2a2008;
}

/* Select / input focus rings */
.fi-select-input:focus,
.fi-input:focus,
.fi-fo-field-wrp:focus-within .fi-fo-field-wrp-label,
[type='text']:focus,
[type='search']:focus,
select:focus {
    --tw-ring-color: #c9a84c !important;
    border-color: #c9a84c !important;
    outline-color: #c9a84c !important;
}

/* Filament select active/selected option highlight */
.fi-select-option[data-active],
.fi-select-option:focus,
.fi-select-option[aria-selected="true"] {
    background-color: #fdf8ec !important;
    color: #0d1b2a !important;
}

/* Tailwind ring utility that Filament uses for focus */
.focus\:ring-primary-500:focus,
.focus\:border-primary-500:focus {
    --tw-ring-color: #c9a84c !important;
    border-color: #c9a84c !important;
}

/* Filament checkbox / radio active */
.fi-checkbox-input:checked,
.fi-radio-input:checked {
    background-color: #c9a84c !important;
    border-color: #c9a84c !important;
}

/* Filament badge / indicator pill (green dot on active filters) */
.fi-badge.fi-color-primary,
.fi-badge[class*="primary"] {
    background-color: #fdf8ec !important;
    color: #a8872e !important;
    border-color: #c9a84c !important;
}

@media (max-width: 768px) {
    .public-topbar {
        padding: 0.72rem 0.85rem;
    }

    .public-topbar__meta {
        display: none;
    }

    .public-search-hero h1 {
        font-size: 1.15rem;
    }

    .public-search-hero p {
        font-size: 0.85rem;
    }

    .ps-strip {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .ps-cell {
        min-width: 56px;
    }
}
