﻿/* FEATURES */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.feature {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
}

    .feature h3 {
        margin: 0 0 6px;
    }


/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 18px 0;
    margin-top: 28px;
}

.footer-grid {
    display: grid;
    gap: 14px;
}

.footer-title {
    font-weight: 900;
    margin-bottom: 6px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 6px;
}

@media (min-width: 900px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}


/* Location cards */
.location-grid {
    display: grid;
    grid-template-columns: 1fr; /* mobile view*/
    gap: 16px;
    margin-top: 14px;
}

.location-card {
    display: block;
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-decoration: none;
    background: var(--panel);
    min-height: 240px;
}

    .location-card:focus-visible {
        box-shadow: var(--focus), var(--shadow);
    }

.location-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark overlay for contrast */
.location-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,.45), rgba(0,0,0,.15), rgba(0,0,0,.45) );
    z-index: 1;
}

/* Location top title bar */
.location-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 14px 16px;
    background: rgba(0,0,0,.18);
    backdrop-filter: blur(3px);
    z-index: 2;
}

.location-name {
    font-size: 1.2rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: .2px;
    text-shadow: 0 2px 10px rgba(0,0,0,.65);
    padding: 10px;
}

.location-description {
    font-size: .90rem;
    color: #fff;
    font-style: italic;
    font-weight: 700;
    background-color: rgba(0,0,0,.45);
    padding: 6px 10px;
    border-radius: 12px;
    display: inline-block;
}

.location-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient( to bottom, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 40%, rgba(0,0,0,.18) 100% );
    z-index: 1;
    pointer-events: none;
}


/* Center Visit button */
.visit-chip {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(15,17,21,.55);
    color: #fff;
    font-weight: 800;
    letter-spacing: .04em;
    backdrop-filter: blur(10px);
    z-index: 2;
}

/* Hover / focus feedback */
.location-card:hover .visit-chip,
.location-card:focus-visible .visit-chip {
    background: rgba(15,17,21,.75);
}

/* Tablet */
@media (min-width: 600px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-card {
        min-height: 260px;
    }
}

/* Desktop */
@media (min-width: 1000px) {
    .location-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .location-card {
        min-height: 300px;
    }
}


/* Ultra-wide */
@media (min-width: 1400px) {
    .container {
        width: 1400px;
    }

    .location-card {
        min-height: 360px;
    }
}

/* gallery + map placeholders */
.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.gallery-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    padding: 0;
    background: var(--panel);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 4 / 3; /* keeps all tiles same shape */
}

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* crops nicely, consistent tiles */
        display: block;
    }

/* Tablet */
@media (min-width: 600px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 900px) {
    .gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Auth lightbox */
.auth-tabs {
    display: flex;
    gap: 8px;
    padding: 4px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 999px;
    width: fit-content;
}

.auth-tab {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    color: var(--text);
}

    .auth-tab[aria-selected="true"] {
        background: var(--bg);
        box-shadow: var(--shadow);
    }

.auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.auth-modal-body {
    display: grid;
    gap: 12px;
}

.auth-modal-msg {
    margin: 0;
    color: var(--muted);
}

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


/* Lightbox top bar (auth modal) */
.lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

    .lightbox-topbar .lightbox-close {
        position: static;
    }

/* Lightbox styles */
.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.75);
}

.lightbox-card {
    position: relative;
    margin: 0;
    width: min(1000px, 92vw);
    max-height: 88vh;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 12px;
    display: grid;
    gap: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: auto;
}

.lightbox-img {
    width: 100%;
    height: auto;
    max-height: 72vh;
    object-fit: contain; /* full view */
    display: block;
    border-radius: 12px;
    background: var(--panel);
}

.lightbox-close {
    position: absolute;
    right: 12px;
    top: 12px;
    color: var(--text);
}

.lightbox-caption {
    margin: 0;
    font-size: .95rem;
}


/* Map embed styles */
.map-embed {
    border-radius: var(--radius);
    border: 2px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    background: var(--panel);
    margin-bottom: 12px;
}

/* Responsive iframe that fills the container */
.map-iframe {
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
}

@media (min-width: 600px) {
    .map-iframe {
        height: 340px;
    }
}


/* Location hero section */
.loc-hero {
    display: grid;
    gap: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 18px;
}

/* Hero image with animation */
.loc-hero-media {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background-size: 110%;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroZoom 10s ease-in-out infinite alternate;
}

/* Smooth cinematic zoom */
@keyframes heroZoom {
    from {
        background-size: 100%;
    }

    to {
        background-size: 120%;
    }
}

/* Hero text */
.loc-hero-content {
    padding: 14px;
}

.loc-hero-kicker {
    display: block;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.loc-hero-title {
    display: block;
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.1;
}

.loc-hero-sub {
    margin: 10px 0 12px;
    max-width: 65ch;
}

.loc-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Desktop layout */
@media (min-width: 900px) {
    .loc-hero {
        grid-template-columns: 1.2fr 1fr;
        align-items: stretch;
    }

    .loc-hero-media {
        height: auto;
        min-height: 320px;
        background-size: 108%;
    }

    .loc-hero-title {
        font-size: 2.6rem;
    }
}

/* Accessibility: reduced motion */
@media (prefers-reduced-motion: reduce) {
    .loc-hero-media {
        animation: none;
        background-size: cover;
    }
}

/* Images location */
.loc-hero--blackpool .loc-hero-media {
    background-image: url("../assets/images/blackpool_images/blackpool.webp");
}

.loc-hero--chester .loc-hero-media {
    background-image: url("../assets/images/chester_images/chester.webp");
}

.loc-hero--liverpool .loc-hero-media {
    background-image: url("../assets/images/liverpool_images/liverpool.webp");
}

.loc-hero--lakedistrict .loc-hero-media {
    background-image: url("../assets/images/lakedistrict_images/lakedistrict.webp");
}




/* Reservation Page Styles*/

/* helper class (replaces inline styles) */
.mt-8 {
    margin-top: 8px;
}

/* error message */
.hint {
    display: block;
    min-height: 18px;
    font-size: .95rem;
    margin-top: 6px;
    color: #b00020;
}

    .hint:empty {
        min-height: 18px;
    }

/* invalid outline */
.is-invalid {
    border-color: #b00020 !important;
    box-shadow: 0 0 0 3px rgb(255, 0, 0);
    box-shadow: 0 0 0 3px color-mix(in srgb, #b00020, transparent 80%);
}

/* form extras section spacing */
.form-block {
    margin-top: 14px;
}

.form-h2 {
    margin: 0 0 8px;
}

/* actions row */
.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

/* Tier selection cards*/

.tier-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 10px;
}

@media (min-width:900px) {
    .tier-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tier-option {
    position: relative;
}

/* hide radio, keep accessible */
.tier-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* card itself */
.tier-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--panel);
    box-shadow: var(--shadow);
    cursor: pointer;
    overflow: hidden;
    transition: transform .15s ease, border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

    .tier-card:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--primary), transparent 40%);
    }

/* focus ring when keyboard focuses the radio */
.tier-radio:focus-visible + .tier-card {
    box-shadow: var(--focus);
    border-color: var(--primary);
}

/* selected state */
.tier-radio:checked + .tier-card {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--panel), var(--primary) 10%);
}

/* selected dot indicator */
.tier-card::after {
    content: "";
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid color-mix(in srgb, var(--muted), transparent 35%);
    opacity: .9;
}

/* show filled dot when selected */
.tier-radio:checked + .tier-card::after {
    border-color: var(--primary);
    border-color: color-mix(in srgb, var(--primary), #000 25%);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary), transparent 80%);
}

/* inner layout */
.tier-card-inner {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.tier-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.tier-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
}

.tier-price {
    font-weight: 900;
    color: var(--muted);
}

/* feature list icons */
.tier-features-icons {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--muted);
}

.tier-features-icons li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.mini-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin-top: 2px;
}

/* tier error spacing */
.hint[data-error-for="tier"] {
    margin-top: 6px;
    margin-bottom: 6px;
}

/*FAQ Accordion polish*/
.accordion {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}

/* Accordion buttons */
.acc-btn {
    width: 100%;
    text-align: left;
    padding: 14px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--border);
    font-weight: 900;
    color: var(--text);
    cursor: pointer;
}

.acc-btn:focus-visible {
    box-shadow: var(--focus);
}

.acc-panel {
    padding: 0 14px 14px;
}

.acc-panel p {
    margin: 10px 0 0;
    color: var(--muted);
}
