/* -------------
-   Variables
---------------- */
:root {
    /* colors */
    --bg: #0b0b10;
    --bg2: #0f0f16;
    --ink: #eae6f7;
    --muted: #b7a8d8;
    --accent: #8e66d9;
    --danger: #ff6b6b;
    --ok: #63e6be;
    /* fonts */
    --font-main: "Ducky-Black";
    --gtl-bg: #000;
    --gtl-purple: #9b5de5;
    --gtl-card: #0b0b0b;
    --gtl-ink: #ffffff;
    --gtl-ink-dim: rgba(255, 255, 255, .75);
    --gtl-border: rgba(255, 255, 255, .12);
    /* Bootstrap theme colors */
    --bs-primary: var(--accent);
    --bs-secondary: var(--muted);
    --bs-success: var(--ok);
    --bs-danger: var(--danger);
    --bs-info: #4da3ff;
    --bs-warning: #facc15;

    --bs-body-bg: var(--bg);
    --bs-body-color: var(--ink);

    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);

    --bs-link-color: var(--accent);

    --bs-border-color: rgba(177, 156, 217, .25);
    --bs-border-radius: 12px;
}

/* -------------
-   Fonts
---------------- */
@font-face {
    font-family: "Ducky-Black";
    src: url("fonts/ducky-black/DuckyBlack-Regular.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Salium";
    src: url("fonts/salium/Salium (1).ttf") format("truetype");
    font-display: swap;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-main);
    line-height: 1.5;
    background: radial-gradient(1200px 800px at 10% 0%, #1a1231 0%, transparent 40%),
    radial-gradient(900px 700px at 90% 10%, #1a0f2d 0%, transparent 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}

.frame {
    max-width: 1100px;
    margin: 0 auto;
    padding: min(5vw, 40px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    text-align: center;
    margin: 5px 5px;
}

.subtitle {
    color: var(--muted);
}

main {
    padding: 0 18px 40px;
}

p {
    margin: 0 0 10px;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid.cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.field {
    margin: 12px 0;
}

.field label {
    display: block;
    margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(177, 156, 217, .35);
    background: #0e0e13;
    color: var(--ink);
}

.row {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.left-row {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}

.btn {
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 10px;
    border: 0.5px solid var(--accent);
    background: linear-gradient(180deg, rgba(142, 102, 217, .2), rgba(142, 102, 217, .1));
    color: var(--ink);
    font-weight: 600;
    font-family: var(--font-main);
}

.notice {
    background: rgba(142, 102, 217, .1);
    border: 1px dashed rgba(142, 102, 217, .35);
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
}

.error {
    color: var(--danger);
}

.ok {
    color: var(--ok);
}

.ornate {
    position: relative;
    border: 26px solid transparent;
    border-radius: 22px;
    background: #0f0f13;
    color: var(--ink);
    border-image-source: url('data:image/svg+xml;utf8,\
    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 120">\
      <defs>\
        <linearGradient id="g" x1="0" y1="0" x2="1" y2="1">\
          <stop offset="0" stop-color="%238e66d9"/>\
          <stop offset="1" stop-color="%236036b1"/>\
        </linearGradient>\
        <filter id="glow" filterUnits="objectBoundingBox">\
          <feGaussianBlur stdDeviation="1.6" result="b"/>\
          <feMerge><feMergeNode in="b"/><feMergeNode in="SourceGraphic"/></feMerge>\
        </filter>\
      </defs>\
      <path d="M5,80 C40,70 45,35 25,25 C45,35 70,10 80,5" fill="none" stroke="url(%23g)" stroke-width="4" filter="url(%23glow)"/>\
      <path d="M115,40 C80,50 75,85 95,95 C75,85 50,110 40,115" fill="none" stroke="url(%23g)" stroke-width="4" filter="url(%23glow)"/>\
    </svg>');
    border-image-slice: 60 fill;
    border-image-repeat: round;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .65);
}

.ornate h3 {
    font-family: var(--font-main);
}

.menu-board {
    padding: clamp(18px, 3vw, 28px);
    border-radius: 18px;
    background: radial-gradient(120% 150% at 50% -10%, rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(0, 0, 0, .08)),
    #0f0f13;
    border: 1px solid rgba(177, 156, 217, .25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 50px rgba(142, 102, 217, .05);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: normal;
    border: 0;
}

.course {
    margin: 14px 0 28px;
}

.course-title {
    font-family: var(--font-main);
    font-size: clamp(22px, 3.2vw, 32px);
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
}

.course-title::before,
.course-title::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(177, 156, 217, .35), transparent);
}

.menu-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-card {
    display: block;
    position: relative;
    padding: 14px 16px 12px;
    border: 1px solid rgba(177, 156, 217, .25);
    border-radius: 14px;
    background: rgba(20, 16, 28, .6);
    transition: border .2s ease, box-shadow .2s ease, transform .05s ease;
}

.menu-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset, 0 8px 24px rgba(142, 102, 217, .25);
}

.menu-card:active {
    transform: translateY(1px);
}

.menu-card .row1 {
    display: flex;
    gap: 12px;
    align-items: baseline;
}

.menu-card .dish {
    font-weight: 700;
    letter-spacing: .01em;
    font-size: clamp(17px, 2.4vw, 20px);
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 40%;
}

.menu-card .dots {
    flex: 1;
    height: 1px;
    background: radial-gradient(currentColor 1px, transparent 1px) center/6px 1px repeat-x;
    opacity: .35;
    translate: 0 -6px;
}

.menu-card .tags {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.tag {
    font-size: 12px;
    padding: 3px 8px;
    border: 1px solid rgba(177, 156, 217, .35);
    border-radius: 999px;
    color: var(--muted);
}

.menu-card .desc {
    color: var(--muted);
    margin-top: 6px;
}

.menu-card .check {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid rgba(177, 156, 217, .35);
    display: grid;
    place-items: center;
    font-size: 16px;
}

.menu-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent) inset, 0 6px 18px rgba(142, 102, 217, .25);
}

.menu-card.is-selected .check {
    border-color: var(--accent);
}

.menu-card.is-selected .check::after {
    content: "✓";
}

.helper {
    color: var(--muted);
    font-size: 14px;
}

#ice-cream-options {
    display: none;
    margin-top: 10px;
    padding: 14px;
    border: 1px dashed rgba(177, 156, 217, .35);
    border-radius: 12px;
    background: rgba(142, 102, 217, .07);
}

.ic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.ic-chip {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid rgba(177, 156, 217, .35);
    border-radius: 999px;
    background: rgba(20, 16, 28, .5);
}

.ic-chip input {
    accent-color: var(--accent);
}

.chips {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(177, 156, 217, .35);
    border-radius: 999px;
    background: rgba(20, 16, 28, .5);
}

.chip input {
    accent-color: var(--accent);
}

footer {
    padding: 18px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid rgba(177, 156, 217, .2);
}

footer.site-footer hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .12);
    margin: 10px 0;
}

.email-link {
    color: #4da3ff;
    font-weight: 600;
    text-decoration: underline;
}

.email-link:hover {
    color: #82c4ff;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    align-items: start;
}

.details {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin-left: 20%;
}

.details-image {
    min-width: 0;
}

.details-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gtl-border, rgba(255, 255, 255, .12));
}

header > div {
    width: 100%;
}

.inspo-box {
    margin-bottom: 10px;
    padding: 10px 14px;
    background: rgba(142, 102, 217, .1);
    border-radius: 12px;
    color: var(--muted);
    font-style: italic;
    border: 1px dashed rgba(177, 156, 217, .35);
}

.menu-detail {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.95em;
    color: var(--text-secondary, #666);
}

.menu-detail p {
    margin: 0.25rem 0;
}

.menu-label {
    font-weight: 600;
}

.message-textarea {
    width: 100%;
    height: 200px;
    padding: 8px;
    font-size: 1rem;
    resize: vertical;
}

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

.frame {
    display: grid;
    place-items: start center;
    padding: 8px;
    background: var(--gtl-bg);
    color: var(--gtl-ink);
}

.card {
    width: min(1100px, 100%);
    background: var(--gtl-card);
    border: 1px solid var(--gtl-border);
    border-radius: 8px;
    padding: 8px;
    position: relative;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .5),
    inset 0 0 60px rgba(142, 102, 217, .08);
    overflow: hidden;
}

#gothic-timeline .gtl-title h3 {
    margin: 0 0 .25rem;
    font-size: 1.6rem;
}

#gothic-timeline .gtl-title h4 {
    margin: 0 0 .25rem;
    font-weight: 400;
    color: var(--gtl-ink-dim);
}

#gothic-timeline .gtl-title p {
    margin: 0;
    color: var(--gtl-ink-dim);
}

.gtl-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 2rem;
}

.gtl-year {
    display: grid;
    grid-template-columns:7rem minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
}

.gtl-badge {
    position: sticky;
    top: 1rem;
    display: grid;
    gap: .35rem;
    justify-items: start;
    min-width: 0;
}

.gtl-year-label {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.gtl-tag {
    font-size: .85rem;
    color: var(--gtl-ink-dim);
    border: 1px solid var(--gtl-border);
    padding: .1rem .45rem;
    border-radius: 999px;
    display: inline-block;
    white-space: normal;
    max-width: 100%;
}

.gtl-badge,
.gtl-year-label,
.gtl-tag,
.gtl-event h5,
.gtl-event p {
    overflow-wrap: anywhere;
    word-break: normal;
    min-width: 0;
    max-width: 100%;
}

.gtl-events {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 1rem;
    min-width: 0;
}

.gtl-events > * {
    min-width: 0;
}

.gtl-event {
    display: grid;
    gap: .5rem;
    min-width: 0;
}

.gtl-frame {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border: 1px solid var(--gtl-border);
    border-radius: 10px;
    overflow: hidden;
    padding: 0.5rem;
    min-height: 120px;
}

.gtl-frame > .gtl-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: clamp(220px, 35vh, 480px);
    object-fit: contain;
}

.gtl-ph {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--gtl-border);
    background: #0e0e0e;
    display: grid;
    place-items: center;
    color: var(--gtl-ink-dim);
    font-size: .95rem;
    padding: 1rem;
}

.gtl-event h5 {
    margin: 0;
    font-size: 1rem;
}

.gtl-event p {
    margin: 0;
    color: var(--gtl-ink-dim);
}

.gtl-next {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gtl-border);
    color: var(--gtl-ink-dim);
}

.gtl-corner {
    position: absolute;
    width: 56px;
    height: 56px;
    stroke: rgba(255, 255, 255, .25);
}

.gtl-corner.tl {
    top: 10px;
    left: 10px;
}

.gtl-corner.tr {
    top: 10px;
    right: 10px;
    transform: scaleX(-1);
}

.gtl-corner.bl {
    bottom: 10px;
    left: 10px;
    transform: scaleY(-1);
}

.gtl-corner.br {
    bottom: 10px;
    right: 10px;
    transform: scale(-1);
}

dialog#imgDialog {
    border: none;
    background: rgba(0, 0, 0, 0.85);
    padding: 1rem;
    border-radius: 10px;
}

dialog#imgDialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

dialog#imgDialog img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0;
}

.thumb-img, [data-full-src] {
    cursor: zoom-in;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.details {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    padding-left: 20%;
}

.details-image {
    min-width: 0;
}

.details-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--gtl-border, rgba(255, 255, 255, .12));
}

.menu-detail {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    font-size: 0.95em;
    color: var(--text-secondary, #666);
}

.menu-detail p {
    margin: 0.25rem 0;
}

.menu-label {
    font-weight: 600;
}

.cards-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-row {
    width: 100%;
}

.card-img-top-wrapper {
    flex: 0 0 160px;
    max-width: 160px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.card-body {
    flex: 1 1 auto;
}

.vertical-label {
    display: block;
    margin-bottom: 4px;
}

#ayrshire-map {
    height: min(80vh, 680px);
    border-radius: 12px;
    overflow: hidden;
}

.legend {
    display: block;
    margin: 0 0 12px 0;
    padding: 10px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.legend-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #0f172a;
}

.legend-label {
    line-height: 1;
}

.balloon {
    position: relative;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    border: 2px solid #fff;
    display: inline-block;
}

.balloon::after {
    content: "";
    position: absolute;
    left: 5px;
    bottom: -5px;
    width: 6px;
    height: 6px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}

.balloon--venue {
    background: #d946ef;
}

.balloon--train {
    background: #0ea5e9;
}

.balloon--bus {
    background: #6366f1;
}

.balloon--hotel {
    background: #10b981;
}

.balloon--map {
    width: 24px;
    height: 24px;
}

.balloon--map::after {
    left: 9px;
    bottom: -6px;
    width: 8px;
    height: 8px;
}

.legend {
    position: sticky;
    top: 12px;
    z-index: 400;
}

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

.menu-card .row1 {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.menu-card .dish {
    flex: 1 1 auto;
    min-width: 12ch;
}

.menu-card .dots {
    flex: 999 1 0;
    min-width: 1rem;
}

.menu-card .tag {
    order: 2;
    flex: 0 0 auto;
    white-space: normal;
    pointer-events: none;
}

.menu-card .check {
    order: 3;
    margin-left: auto;
    flex: 0 0 auto;
    position: static;
    z-index: 0;
}

.site-footer form {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

header > div {
    width: 100%;
}

#nav {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
    width: 100%;
}

#nav .nav-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin: 0 auto;
    max-width: 1100px;
    width: auto;
}

#nav .nav-items .btn {
    flex: 0 1 auto;
    min-width: 120px;
    text-align: center;
    padding: 0.45rem 0.9rem;
}

@media (max-width: 420px) {
    #nav .nav-items .btn {
        flex: 1 1 100%;
        min-width: 0;
    }
}


@media (max-width: 520px) {
    .menu-card .row1 {
        gap: .375rem;
    }
}

@media (max-width: 576px) {
    .card-row .card {
        flex-direction: column;
    }

    .card-img-top-wrapper {
        width: 100%;
        max-width: none;
        flex: none;
        height: 200px;
    }

    .thumb-img {
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 760px) {
    .two-col {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .details,
    .two-col .details {
        margin-left: 0;
        padding-left: 0;
        width: 100%;
        text-align: center;
    }

    .details-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .details-image img {
        max-width: 90%;
        margin: 0 auto;
        height: auto;
    }

    form {
        margin: 0 auto;
        max-width: 420px;
        padding: 0 12px;
        text-align: left;
    }

    .gtl-year {
        grid-template-columns: 1fr;
    }

    .gtl-events {
        grid-template-columns: 1fr;
    }

    .gtl-spine {
        display: none;
    }

    .gtl-badge {
        position: static;
    }

    .gtl-frame > .gtl-img {
        max-height: clamp(180px, 28vh, 320px);
    }

    .two-col > * {
        margin-left: auto;
        margin-right: auto;
    }

    .vertical-label {
        display: block;
    }

    #nav .nav-items .btn {
        flex: 0 1 auto;
        min-width: 0;
        padding: 0.45rem 0.9rem;
    }
}

@media (min-width: 761px) {
    .details-image {
        position: sticky;
        top: 1rem;
    }
}
