:root {
    --art-ink: #182337;
    --art-muted: #68758a;
    --art-paper: #f4f5f8;
    --art-surface: #fff;
    --art-border: #e5e8ed;
    --art-accent: #0869c7;
    --art-accent-hover: #0759aa;
}

html { scroll-behavior: smooth; }

body {
    min-width: 320px;
    color: var(--art-ink);
    background: radial-gradient(circle at 90% 0%, #e4effa 0, transparent 34rem), var(--art-paper);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.04rem;
}

h1, h2, h3, h4, h5, .navbar-brand {
    color: var(--art-ink);
    line-height: 1.16;
}

h1, h2, .navbar-brand { letter-spacing: -.04em; font-weight: 760; }

h1 { font-size: clamp(2rem, 4vw, 3.3rem); }

a { color: var(--art-accent); }
a:hover { color: var(--art-accent-hover); }

:focus-visible {
    outline: 3px solid #0869c7;
    outline-offset: 3px;
}

.site-navbar {
    background: rgba(255, 255, 255, .88);
    border-bottom: 1px solid var(--art-border);
    box-shadow: 0 4px 22px rgba(26, 48, 78, .04);
}

.site-navbar .container { min-height: 4.25rem; }
.site-navbar .navbar-brand { font-size: 1.65rem; letter-spacing: -.045em; }
.site-navbar .navbar-brand { display: flex; align-items: center; gap: .35rem; }
.brand-dot { color: var(--art-accent); }
.site-navbar .nav-link { color: var(--art-ink); font-weight: 600; }
.site-navbar .nav-link:hover { color: var(--art-accent); }
.site-navbar .navbar-toggler { border-color: var(--art-border); padding: .55rem .8rem; }
.site-navbar form .nav-link { text-decoration: none; }

.site-main { min-height: 58vh; margin-block: clamp(1.5rem, 4vw, 3.5rem); }
.site-main > .container { padding-inline: 0; }
.site-main img, .site-main video { max-width: 100%; }
.site-main .card {
    border: 1px solid var(--art-border);
    border-radius: 1rem;
    background: var(--art-surface);
    box-shadow: 0 12px 36px rgba(26, 48, 78, .06);
    overflow: hidden;
}
.site-main .card-header { background: #e8f2ff; border-color: var(--art-border); font-weight: 700; }
.site-main .card-body { padding: 1.25rem; }
.site-main .form-control, .site-main .form-select {
    min-height: 2.75rem;
    border-color: #c9d4df;
    border-radius: .55rem;
}
.site-main .btn, .site-navbar .btn { min-height: 2.75rem; border-radius: .55rem; font-weight: 700; }
.site-main .btn-sm { min-height: 2.5rem; padding: .5rem .8rem; font-size: .95rem; }
.site-main .btn-primary {
    background: var(--art-accent);
    border-color: var(--art-accent);
}
.site-main .btn-primary:hover, .site-main .btn-primary:focus {
    background: var(--art-accent-hover);
    border-color: var(--art-accent-hover);
}
.site-main .btn-outline-secondary { color: var(--art-ink); border-color: #9ba5b5; }
.site-main .btn-outline-secondary:hover { background: var(--art-ink); color: white; }
.site-main .table { --bs-table-bg: transparent; }
.site-main .pagination { flex-wrap: wrap; gap: .25rem; }
.site-main .pagination .page-link { min-width: 2.5rem; min-height: 2.5rem; text-align: center; }

.eyebrow {
    color: var(--art-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .5rem;
}

.schedule-intro {
    max-width: 47rem;
    margin-bottom: 1.5rem;
}
.schedule-intro > p:last-child { color: var(--art-muted); font-size: 1.12rem; }
.schedule-title { margin-bottom: .55rem; }
.pricing-info {
    border: 1px solid var(--art-border);
    border-left: 5px solid var(--art-accent);
    border-radius: .8rem;
    background: var(--art-surface);
    padding: 1rem 1.25rem;
}
.pricing-info p { margin: .3rem 0 0; }
.schedule-range { color: var(--art-muted); font-weight: 700; }
.schedule-row { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
.day-column { min-width: 0; }
.day-header {
    display: flex;
    align-items: baseline;
    gap: .6rem;
    padding: .8rem 1rem;
    margin: 0 0 .75rem;
    border-radius: .65rem;
    background: #e8f2ff;
    font-size: 1.12rem;
}
.day-header small { font-size: .85rem; color: var(--art-muted); }
.day-empty { padding: .7rem 1rem; color: var(--art-muted); }
.schedule-card { margin-bottom: .8rem; }
.schedule-card .card-header { padding: .75rem 1rem; font-size: 1.08rem; }
.schedule-card .card-body { display: flex; flex-direction: column; gap: .8rem; }
.schedule-card .card-body p { margin-bottom: .35rem; }
.schedule-card .card-body p.d-flex { flex-wrap: wrap; gap: .35rem; }
.schedule-card .action-buttons { display: grid; gap: .45rem; margin-top: auto; }
.schedule-card .action-buttons > * { margin-bottom: 0 !important; }
.schedule-card .action-buttons form { margin-bottom: 0; }
.schedule-card .action-buttons .btn { width: 100%; }

.purchase-row {
    padding: .5rem 0;
    border-bottom: 1px solid var(--art-border);
}
.purchase-row:last-of-type { border-bottom: 0; }
.price-form { margin-left: .6rem; }
.gift-card-heading { flex-wrap: wrap; gap: .75rem; }
.site-footer { background: #182337; }
.admin-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2rem; }
.admin-actions .btn { margin: 0 !important; }
.admin-list-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-list-header h2 { margin: 0; }
.admin-list-header p { color: var(--art-muted); margin: .2rem 0 0; }
.admin-view-switch { display: flex; gap: .5rem; }
.pagination-links { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin: 1.5rem 0; }
.home-section { margin-inline: 0; padding: clamp(1rem, 2.5vw, 2rem); border: 1px solid var(--art-border); border-radius: 1.25rem; background: var(--art-surface); box-shadow: 0 12px 36px rgba(26, 48, 78, .05); }
.home-section > [class*="col-"] { min-width: 0; }
.home-section img { display: block; width: 100%; max-height: 560px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 1rem; }
.home-intro h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.home-intro p { color: var(--art-muted); line-height: 1.55; }
.home-details { border-top: 1px solid var(--art-border); padding-top: .8rem; margin-top: 1rem; }
.home-details summary { color: var(--art-accent); font-weight: 700; cursor: pointer; }
.home-details h3 { margin-top: 1rem; }
.home-gallery .adventure-item { display: inline-block; vertical-align: top; width: min(100%, 340px); margin-right: 1rem; padding: .75rem; border: 1px solid var(--art-border); border-radius: 1rem; }
.home-gallery .adventure-item img, .home-gallery .adventure-item video { aspect-ratio: 16 / 10; max-height: none; }
.web-balance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.web-balance-card { display: flex; flex-direction: column; min-height: 145px; padding: 1.2rem; border-radius: 1rem; background: linear-gradient(140deg, #0e6bc5, #034c9d); box-shadow: 0 12px 24px rgba(5, 81, 168, .17); color: white; }
.web-balance-card:nth-child(2) { background: linear-gradient(140deg, #1c96ba, #0b6d88); }
.web-balance-card span { font-size: .68rem; font-weight: 750; letter-spacing: .1em; }
.web-balance-card strong { font-size: 2.6rem; line-height: 1.15; margin: .45rem 0; }
.web-balance-card small { margin-top: auto; opacity: .83; }
.web-account-identity { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; color: var(--art-muted); font-size: .86rem; }

@media (min-width: 700px) {
    .schedule-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .schedule-row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
}

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse { padding-block: .8rem 1rem; }
    .site-navbar .nav-item { border-bottom: 1px solid var(--art-border); }
    .site-navbar .nav-link { display: block; padding: .7rem .25rem; }
    .site-navbar .nav-item.ms-3 { margin-left: 0 !important; border-bottom: 0; padding-top: .75rem; }
    .site-navbar form .nav-link { text-align: left; width: 100%; }
}

@media (max-width: 575.98px) {
    .home-section { padding: 1rem; }
    .home-section > [class*="col-"] { margin-bottom: 0 !important; }
    .home-section img { margin-bottom: 1rem; max-height: 340px; }
    .web-balance-card { min-height: 125px; padding: .9rem; }
    .web-balance-card strong { font-size: 2.2rem; }
    .site-main { margin-block: 1.25rem 2rem; }
    .site-main h1 { margin-bottom: 1.25rem; }
    .site-main .card-body { padding: 1rem; }
    .site-main .modal-dialog { margin: .5rem; }
    .site-main .btn, .site-main .form-control, .site-main .form-select { font-size: 1rem; }
    .site-main .row.align-items-center.mb-5 > [class*="col-md-"] { margin-bottom: 1rem; }
    .site-main .row.align-items-center.mb-5 img { width: 100%; border-radius: .9rem; }
    .pricing-info { padding: .85rem 1rem; }
    .purchase-row { gap: .5rem; }
    .purchase-row > .col { flex: 0 0 100%; text-align: left !important; }
    .purchase-row .price-form { display: block !important; margin-left: 0; }
    .purchase-row .pay-button { width: 100%; }
    .credit-history-table, .credit-history-table tbody, .credit-history-table tr, .credit-history-table td { display: block; width: 100%; }
    .credit-history-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .credit-history-table tr { margin-bottom: .8rem; padding: .65rem; border: 1px solid var(--art-border); border-radius: .65rem; }
    .credit-history-table td { display: flex; justify-content: space-between; gap: .75rem; border: 0; padding: .3rem; overflow-wrap: anywhere; }
    .credit-history-table td::before { content: attr(data-label); font-weight: 700; flex: 0 0 36%; }
    .credit-history-table td[colspan] { display: block; text-align: center; }
    .credit-history-table td[colspan]::before { content: none; }
    .credit-history-table td .btn { min-width: 6rem; }
    .site-main .pagination .page-item:not(:first-child):not(:last-child) { display: none; }
}

@media (max-width: 359.98px) {
    .g-recaptcha { transform: scale(.9); transform-origin: top left; width: 90%; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
