/* ==========================================================================
   canberra.beer Website - Custom Styles
   ========================================================================== */

/* CSS Custom Properties (Variables)
   ========================================================================== */
:root {
    /* Brand Colors */
    /* --primary-color: #d4a574;      Beer/golden color */
    --primary-color: #c7600a;       /* Burnt orange — logo primary */
    --primary-hover: #a34f08;      /* Darker burnt orange for hover */
    --secondary-color: #2c3e50;    /* Dark blue-grey */
    --accent-color: #e67e22;       /* Warm orange accent */

    /* Bootstrap Primary Override — maps Bootstrap's primary to brand orange */
    --bs-primary:           #c7600a;
    --bs-primary-rgb:       199, 96, 10;
    --bs-link-color:        #c7600a;
    --bs-link-color-rgb:    199, 96, 10;
    --bs-link-hover-color:  #a34f08;

    /* UI Colors */
    --text-muted: #6c757d;
    --light-bg: #f8f9fa;
    --border-light: rgba(199, 96, 10, 0.2);
    --brewerylogotile-bg: #ee9043;

    /* Spacing & Layout */
    --border-radius: 0.5rem;
    --footer-height: 50px;
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-focus: 0 0 0 0.2rem rgba(199, 96, 10, 0.25);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-weight-light: 300;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    /* Timeline readability controls */
    --timeline-nav-bg: #2c3e50;
    --timeline-group-bg: #4f5f70;
    --timeline-group-bg-alt: #394756;
    --timeline-group-text: #ffffff;
    --timeline-group-text-shadow: rgba(0, 0, 0, 0.25);
}

/* Base Styles
   ========================================================================== */
body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--light-bg) 0%, #e9ecef 100%);
    color: #333;
    overflow-x: hidden;
}

/* Shared info-icon style used for membership and tier helper indicators. */
.membership-info-icon {
    color: var(--bs-primary);
}

.membership-info-icon:hover,
.membership-info-icon:focus {
    color: var(--primary-hover);
}

/* Header Navigation Drawer
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(199, 96, 10, 0.16);
}

.site-header-bar {
    min-height: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-brand {
    color: var(--primary-color);
    font-size: 1.15rem;
    letter-spacing: 0.01em;
    text-decoration: none;
}

.site-brand:hover,
.site-brand:focus {
    color: var(--primary-hover);
}

.site-menu-toggle {
    border: 1px solid rgba(199, 96, 10, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    min-height: 2.5rem;
    padding: 0.45rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 600;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.site-menu-toggle:hover,
.site-menu-toggle:focus {
    border-color: var(--primary-color);
    background: rgba(199, 96, 10, 0.08);
}

.site-menu-toggle:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.site-menu-toggle-icon {
    width: 1.1rem;
    height: 0.8rem;
    display: inline-block;
    position: relative;
    background:
        linear-gradient(currentColor, currentColor) top center / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) center center / 70% 2px no-repeat,
        linear-gradient(currentColor, currentColor) bottom center / 100% 2px no-repeat;
}

.site-nav-drawer {
    --bs-offcanvas-width: min(88vw, 24rem);
    border-left: 1px solid rgba(199, 96, 10, 0.2);
    background: linear-gradient(180deg, #fff 0%, #fff8f3 100%);
}

.site-nav-drawer-header {
    border-bottom: 1px solid rgba(199, 96, 10, 0.15);
    padding: 1rem 1.25rem;
}

.site-nav-drawer .offcanvas-title {
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-nav-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
}

.site-nav-section {
    border: 1px solid rgba(199, 96, 10, 0.14);
    border-radius: 0.85rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.92);
}

.site-nav-section-label {
    margin: 0 0 0.5rem;
    color: #6f4f39;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.site-drawer-link {
    display: block;
    border-radius: 0.6rem;
    color: #2f2f2f;
    text-decoration: none;
    padding: 0.55rem 0.65rem;
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.site-drawer-link:hover,
.site-drawer-link:focus {
    color: var(--primary-hover);
    background: rgba(199, 96, 10, 0.12);
}

.site-drawer-link:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.site-drawer-link.active {
    color: #fff;
    background: var(--primary-color);
}

.site-nav-section-legal .site-drawer-link {
    font-weight: 500;
}

.offcanvas-backdrop.show {
    opacity: 0.38;
}

@media (max-width: 420px) {
    .site-menu-toggle-label {
        display: none;
    }

    .site-menu-toggle {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-menu-toggle,
    .site-drawer-link {
        transition: none;
    }
}

#brewery-search-form[data-directory-filters-ready="false"] {
    visibility: hidden;
}

main > section.bg-light.py-4:first-child {
    background: var(--primary-color) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #fff;
}

main > section.bg-light.py-4:first-child h1,
main > section.bg-light.py-4:first-child h1 a,
main > section.bg-light.py-4:first-child .lead,
main > section.bg-light.py-4:first-child .text-muted {
    color: #fff !important;
}

main > section.bg-light.py-4:first-child a {
    color: #fff;
    text-decoration-color: rgba(255, 255, 255, 0.65);
}

main > section.bg-light.py-4:first-child a:hover,
main > section.bg-light.py-4:first-child a:focus {
    color: #fff;
    text-decoration-color: #fff;
}

main > section.bg-light.py-4:first-child .lead,
main > section.bg-light.py-4:first-child .text-muted {
    opacity: 0.88;
}

.filter-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-action-group > * {
    flex: 0 0 auto;
    min-width: 0;
}

.filter-action-group > [data-map-filter-control] {
    flex: 1 1 9rem;
}

.filter-action-group > .map-address-filter-control {
    flex: 1 1 14rem;
}

.filter-action-group > .map-radius-filter-control {
    flex: 0 0 8.25rem;
    max-width: 8.25rem;
}

.map-radius-filter-control .form-select {
    flex: 1 0 5.5rem;
    width: auto;
    min-width: 5.5rem;
}

.radius-filter-control .input-group {
    max-width: 8.25rem;
}

.radius-filter-control .form-select {
    flex: 1 0 5.5rem;
    width: auto;
    min-width: 5.5rem;
}

.map-radius-filter-control .input-group,
.radius-filter-control .input-group {
    flex-wrap: nowrap;
}

.filter-action-group > * > .btn {
    width: auto;
    white-space: nowrap;
}

.tag-multiselect-control {
    min-width: 0;
}

.tag-multiselect {
    width: 100%;
}

.tag-multiselect-toggle {
    width: 100%;
    min-height: 2rem;
    border: 1px solid var(--border-light);
    border-radius: 0.45rem;
    background: #fff;
    color: #1f2d3d;
    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 500;
    text-align: left;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.375rem 0.72rem;
}

.tag-multiselect-toggle:hover,
.tag-multiselect-toggle:focus,
.tag-multiselect-toggle:focus-visible {
    background: #fff;
    border-color: color-mix(in srgb, var(--primary-color) 65%, #fff);
    color: #1f2d3d;
    box-shadow: 0 0 0 0.12rem color-mix(in srgb, var(--primary-color) 24%, transparent);
}

.tag-multiselect-toggle::after {
    margin-left: auto;
    flex-shrink: 0;
}

.tag-multiselect-toggle.is-placeholder .tag-multiselect-text {
    color: #6b7280;
    font-weight: 400;
}

.tag-multiselect-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-multiselect-menu {
    width: 100%;
    min-width: 100%;
    border-radius: 0.55rem;
    border: 1px solid rgba(31, 45, 61, 0.14);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.tag-multiselect-options {
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.55rem 0.75rem 0.45rem;
}

.tag-multiselect-option {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    cursor: pointer;
}

.tag-multiselect-option .form-check-input {
    float: none;
    margin: 0;
}

.tag-multiselect-option .form-check-label {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 500;
    color: #233244;
}

.tag-multiselect-empty {
    margin: 0;
    font-size: 0.82rem;
    color: #6b7280;
}

.tag-multiselect-footer {
    border-top: 1px solid rgba(31, 45, 61, 0.1);
    padding: 0.35rem 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.tag-multiselect-clear {
    font-size: 0.77rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.tag-multiselect-clear:hover,
.tag-multiselect-clear:focus {
    color: color-mix(in srgb, var(--primary-color) 78%, #000);
    text-decoration: underline;
}

.tag-multiselect.is-disabled .tag-multiselect-toggle {
    background: #f3f4f6;
    color: #9aa3af;
    border-color: #d8dde3;
}

.brewery-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brewery-filter-bar .brewery-filter-pills {
    flex: 0 1 auto;
}

.brewery-toolbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
}

@media (max-width: 575.98px) {
    .brewery-filter-bar,
    .brewery-toolbar-actions {
        width: 100%;
    }

    .brewery-toolbar-actions {
        justify-content: flex-start !important;
        margin-left: 0;
    }

    .filter-action-group > .map-radius-filter-control {
        flex-basis: 100%;
        max-width: none;
    }
}

.dashboard-section-heading {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
}

.dashboard-field-label {
    font-weight: var(--font-weight-bold);
}

.dashboard-divider {
    border-top: 2px solid var(--border-light);
    opacity: 1;
}

.recipe-builder-panel {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.recipe-builder-section {
    background: var(--background-color);
}

.billing-document-page {
    background: #fff;
}

.billing-document {
    background: #fff;
    color: #1f2933;
    margin: 2rem auto;
    max-width: 900px;
    padding: 2rem;
}

.billing-document-header {
    align-items: flex-start;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    padding-bottom: 1.25rem;
}

.billing-brand {
    align-items: center;
    display: flex;
    gap: 0.85rem;
}

.billing-logo {
    height: 54px;
    width: auto;
}

.billing-brand-name {
    color: var(--primary-color);
    font-size: 1.4rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
}

.billing-brand-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.billing-document-title {
    text-align: right;
}

.billing-document-title h1 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.billing-document-title p {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.4rem;
}

.billing-test-badge {
    border: 1px solid #856404;
    border-radius: 999px;
    color: #856404;
    display: inline-block;
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    padding: 0.2rem 0.55rem;
}

.billing-document-meta {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    margin: 1.75rem 0;
}

.billing-document-meta h2,
.billing-payment h2,
.billing-notes h2 {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
}

.billing-document-meta p,
.billing-payment p,
.billing-notes p {
    margin-bottom: 0.35rem;
}

.billing-line-items table {
    border-collapse: collapse;
    width: 100%;
}

.billing-line-items th,
.billing-line-items td {
    border-bottom: 1px solid var(--border-light);
    padding: 0.75rem;
    vertical-align: top;
}

.billing-line-items thead th {
    background: var(--light-bg);
    color: var(--secondary-color);
}

.billing-line-items tfoot th {
    font-size: 1.05rem;
}

.billing-amount-cell {
    text-align: right;
    white-space: nowrap;
}

.billing-payment,
.billing-notes {
    background: var(--light-bg);
    border-left: 4px solid var(--primary-color);
    margin-top: 1.5rem;
    padding: 1rem;
}

.billing-document-footer {
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
}

.billing-print-actions {
    margin: 1rem auto 2rem;
    max-width: 900px;
    text-align: right;
}

@media print {
    body.billing-document-page {
        background: #fff !important;
    }

    .billing-print-actions {
        display: none !important;
    }

    .billing-document {
        box-shadow: none;
        margin: 0;
        max-width: none;
        padding: 0;
    }
}

/* Accessibility Utilities */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Layout: Viewport-Constrained Coming Soon Page
   ========================================================================== */
.viewport-constrained {
    height: 100vh;
    overflow: hidden;
}

.viewport-constrained main {
    overflow-y: auto;
}

/* Components: Coming Soon Page
   ========================================================================== */

/* Container */
.coming-soon-container {
    padding: 1rem;
}

.coming-soon-container .mb-4 {
    margin-bottom: 1rem !important;
}

.coming-soon-container .mt-5 {
    margin-top: 2rem !important;
}

/* Title */
.coming-soon-title {
    font-weight: var(--font-weight-bold);
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* Logo/Image */
.coming-soon-image {
    max-width: 100%;
    max-height: 25vh;
    width: auto;
    height: auto;
    /*border: 3px solid var(--primary-color); */
    /*border-radius: var(--border-radius); */
    /*box-shadow: var(--shadow-soft);*/
    /*transition: transform 0.3s ease;*/
    object-fit: contain;
}

.book-feature-image {
    max-height: 16rem;
    object-fit: contain;
}

/*.coming-soon-image:hover {
    transform: scale(1.02); 
}*/

/* Tagline */
.tagline {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-muted);
    font-weight: var(--font-weight-light);
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem !important;
}

/* Email Signup Section */
.email-signup {
    margin-top: 1.5rem !important;
}

.email-signup p {
    margin-bottom: 1rem !important;
    font-size: 0.95rem;
}

.input-group .form-control {
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    border: 2px solid var(--primary-color);
    border-right: none;
}

.input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-focus);
}

.input-group .btn-primary {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    font-weight: var(--font-weight-medium);
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.input-group .btn-primary:hover {
    transform: translateY(-1px);
}

/* Footer
   ========================================================================== */
footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 0 !important;
    flex-shrink: 0;
}

/* On index page, this element is a wrapper that JS populates. Keep it neutral to avoid a visual gap. */
#minimal-footer {
    background: transparent;
    backdrop-filter: none;
    border-top: 0;
    padding: 0 !important;
}

#minimal-footer .minimal-footer-content {
    border-top: 1px solid var(--border-light);
}

footer p {
    font-size: 0.9rem;
    margin: 0 !important;
}

/* Animations
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Map Component Styles
   ========================================================================== */
.map-container {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-preview {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.map-loading {
    background: var(--light-bg);
    border-radius: var(--border-radius);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.map-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* About Page Feature Carousel
   ========================================================================== */
.feature-carousel {
    --feature-card-width: 320px;
    position: relative;
    overflow: hidden;
}

.feature-carousel::before,
.feature-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(2rem, 8vw, 5rem);
    z-index: 2;
    pointer-events: none;
}

.feature-carousel::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.feature-carousel::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.feature-carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 max(1rem, calc(50% - (var(--feature-card-width) / 2)));
}

.feature-carousel-track::-webkit-scrollbar {
    display: none;
}

.feature-card {
    flex: 0 0 min(var(--feature-card-width), 78vw);
    scroll-snap-align: center;
    cursor: pointer;
    outline: none;
    transition: opacity 0.3s ease;
}

.feature-card .card {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.feature-card:not(.is-centered) {
    opacity: 0.88;
}

.feature-card.is-edge {
    opacity: 0.72;
}

.feature-card.is-centered {
    opacity: 1;
}

.feature-card.is-centered .card {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
}

.feature-card:focus-visible .card {
    box-shadow: var(--shadow-focus) !important;
}

@media (max-width: 768px) {
    .feature-carousel {
        --feature-card-width: 280px;
    }

    .feature-card {
        flex-basis: min(var(--feature-card-width), 84vw);
    }
}

/* Placeholder Map Styles */
.placeholder-map {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    max-width: 400px;
}

.brewery-item {
    background: rgba(199, 96, 10, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.brewery-item--with-logo {
    padding-right: 9.5rem !important;
    min-height: 6.75rem;
}

.brewery-sidebar-logo {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-width: 8rem;
    max-height: 5rem;
    object-fit: contain;
    border-radius: 0.25rem;
    background: var(--light-bg);
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brewery-item a .brewery-sidebar-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(44,62,80,0.15);
}

.brewery-item:hover {
    background: rgba(199, 96, 10, 0.1);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .brewery-item--with-logo {
        padding-right: 1rem !important;
    }

    .brewery-item--with-logo .brewery-sidebar-logo {
        position: static;
        display: block;
        margin: 0 0 0.75rem auto;
    }
}

.brewery-filter-pills {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brewery-filter-pill {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.28rem 0.85rem;
    line-height: 1.3;
}

.brewery-filter-pill:focus-visible {
    box-shadow: var(--shadow-focus);
}

/* Brewery Tiles & Rotation Modal System
   ========================================================================== */

.brewery-tile {
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.3s ease;
}

.brewery-tile:hover {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.brewery-tile:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

/* Modal Animation States */
.brewery-tile.modal-animating {
    position: fixed !important;
    z-index: 2000;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center center;
}

.brewery-tile.modal-expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 800px !important;
    height: 650px !important;
    max-height: 70vh !important;
    z-index: 2000;
    border-radius: calc(var(--border-radius) * 2);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}

/* Modal Backdrop */
.brewery-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.brewery-modal-backdrop.show {
    opacity: 1;
}

/* Modal Content Overlay */
.brewery-modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: calc(var(--border-radius) * 2);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.brewery-modal-content.show {
    opacity: 1;
    transform: scale(1);
}

.brewery-merch-modal-backdrop {
    align-items: center;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    padding: 1rem;
    position: fixed;
    transition: opacity 0.2s ease;
    z-index: 2100;
}

.brewery-merch-modal-backdrop.show {
    opacity: 1;
}

.brewery-merch-modal {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3);
    max-width: calc(100vw - 2rem);
    padding: 1rem;
    width: max-content;
}

.brewery-merch-modal .btn {
    min-width: 8rem;
}

.brewery-merch-modal.shop-merch-modal {
    position: fixed;
    transform: translate(-50%, -50%);
}

/* Modal Header */
.brewery-modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    padding: 1.5rem;
    padding-left: 12rem; /* Leave space for logo */
    padding-right: 4rem; /* Leave space for close button */
    text-align: center;
    position: relative;
    flex-shrink: 0;
    min-height: 10rem; /* Ensure enough height for logo */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brewery-modal-header-logo {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 10rem;
    height: 10rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    object-fit: contain;
    background: var(--brewerylogotile-bg);
}

.brewery-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    z-index: 1;
}

.brewery-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Modal Body */
.brewery-modal-body {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    background: white;
    min-height: 0;
}

/* Modal Images */
.brewery-modal-images {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.brewery-modal-brewers {
    width: 100%;
    max-width: 400px;
    height: 200px;
    object-fit: contain;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Social Media Section */
.brewery-social-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--light-bg);
}

.brewery-social-section h6 {
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .brewery-tile.modal-expanded {
        width: 95vw !important;
        max-width: 450px !important;
        height: 80vh !important;
        max-height: 500px !important;
    }
    
    .brewery-modal-body {
        padding: 1rem;
    }
    
    .brewery-modal-header {
        padding-left: 9rem; /* Adjust for smaller logo */
        padding-right: 3rem;
        min-height: 8rem;
    }
    
    .brewery-modal-header-logo {
        width: 7rem;
        height: 7rem;
    }
    
    .brewery-modal-brewers {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .brewery-modal-header {
        padding-left: 1.5rem;
        padding-right: 3rem;
        padding-top: 7rem; /* Move text below logo on very small screens */
        min-height: 8rem;
    }
    
    .brewery-modal-header-logo {
        width: 6rem;
        height: 6rem;
        left: 50%;
        transform: translateX(-50%);
        top: 0.5rem;
    }
}

/* Disable body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

.brewery-tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}


.brewery-tile-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.brewery-tile-front {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
}

.brewery-tile-back {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #34495e 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.brewery-tile.flipped .brewery-tile-front {
    opacity: 0;
    transition: opacity 0.35s ease;
}

.brewery-tile.flipped .brewery-tile-back {
    opacity: 1;
}

.brewery-logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.brewery-logo {
    max-width: 350px;
    max-height: 150px;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    background-color: var(--brewerylogotile-bg);
    padding: 0.75rem;
}

.brewery-tile:hover .brewery-logo {
    transform: scale(1.05);
}

.brewery-name-overlay {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.brewery-name-overlay h3 {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.shop-feature-card {
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
}

.shop-feature-image {
    max-height: 230px;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.shop-feature-card-compact .shop-feature-image {
    max-height: 160px;
}

.about-social-link {
    align-items: center;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 1.25rem;
    height: 2.75rem;
    justify-content: center;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: 2.75rem;
}

.about-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
}

.about-social-link:focus-visible {
    box-shadow: var(--shadow-focus);
    color: #fff;
    outline: none;
}

.about-social-link-rss {
    background: #c7600a;
}

.about-social-link-facebook {
    background: #1877f2;
}

.about-social-link-instagram {
    background: linear-gradient(135deg, #833ab4, #fd1d1d 55%, #fcb045);
}

.shop-tile {
    position: relative;
    width: 100%;
    height: 320px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.shop-tile:hover,
.shop-tile:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.12);
}

.shop-tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
}

.shop-tile-face {
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.shop-tile-front {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    opacity: 1;
    transition: opacity 0.25s ease;
}

.shop-tile-back {
    background: linear-gradient(135deg, rgba(19, 41, 61, 0.95) 0%, rgba(52, 73, 94, 1) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.shop-tile.flipped .shop-tile-back {
    opacity: 1;
}

.shop-tile.flipped .shop-tile-front {
    opacity: 0;
}

.shop-logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.shop-logo {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.shop-name-overlay {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    max-width: 100%;
}

.shop-name-overlay h3 {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
}

.shop-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.shop-back-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    padding: 1.5rem;
    color: white;
}

.shop-back-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.shop-tile-button {
    width: 100%;
    max-width: 200px;
}

.h4 {
    font-size: 1rem;
    font-weight: var(--font-weight-medium);
    margin-bottom: 0.25rem;
}

.brewery-suburb {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

.brewery-story-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.brewery-brewers-image {
    width: 100%;
    height: 60%;
    object-fit: contain;
    background: var(--light-bg);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.brewery-story-overlay {
    flex: 1;
    padding: 1rem;
    background: rgba(44, 62, 80, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: left;
}

.brewery-story {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.brewery-learn-more {
    align-self: center;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 25px;
    background: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.brewery-learn-more:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Modal Enhancements for Brewery Details
   ========================================================================== */

.brewery-modal-logo {
    max-height: 200px;
    object-fit: contain;
    background: white;
    padding: 1rem;
}

.brewery-modal-brewers {
    max-height: 200px;
    object-fit: contain;
}

.brewery-full-story {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--secondary-color);
}

.brewery-links .btn {
    margin: 0.25rem;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: var(--font-weight-medium);
    transition: all 0.3s ease;
}

.brewery-links .btn:hover {
    transform: translateY(-2px);
}

/* Responsive Brewery Tiles */
@media (max-width: 768px) {
    .brewery-tile {
        height: 280px;
    }
    
    .brewery-logo {
        max-width: 120px;
        max-height: 120px;
    }
    
    .brewery-name-overlay h3 {
        font-size: 1.1rem;
    }
    
    .brewery-story {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .brewery-tile {
        height: 250px;
    }
    
    .brewery-logo-container {
        padding: 1rem;
    }
    
    .brewery-logo {
        max-width: 100px;
        max-height: 100px;
    }
    
    .brewery-links {
        flex-direction: column;
        align-items: center;
    }
    
    .brewery-links .btn {
        width: 100%;
        margin: 0.25rem 0;
    }
}

/* Media Queries: Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
        gap: 0.5rem;
        width: 100% !important;
    }
    
    .input-group .form-control {
        border-radius: var(--border-radius);
        border-right: 2px solid var(--primary-color);
        width: 100% !important;
        flex: none !important;
    }
    
    .input-group .btn-primary {
        border-radius: var(--border-radius);
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .coming-soon-container {
        padding: 0.75rem;
    }
    
    .coming-soon-image {
        max-height: 20vh; /* Smaller on mobile */
    }
}

/* ==========================================================================
   Bootstrap Primary Button & Outline — brand colour override
   Complements the --bs-primary variable override above by setting the
   component-level tokens Bootstrap uses for hover/active/focus states.
   ========================================================================== */
.btn-primary {
    --bs-btn-bg:                    var(--primary-color);
    --bs-btn-border-color:          var(--primary-color);
    --bs-btn-hover-bg:              var(--primary-hover);
    --bs-btn-hover-border-color:    var(--primary-hover);
    --bs-btn-active-bg:             var(--primary-hover);
    --bs-btn-active-border-color:   var(--primary-hover);
    --bs-btn-focus-shadow-rgb:      199, 96, 10;
    --bs-btn-disabled-bg:           var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}

.btn-outline-primary {
    --bs-btn-color:                 var(--primary-color);
    --bs-btn-border-color:          var(--primary-color);
    --bs-btn-hover-bg:              var(--primary-color);
    --bs-btn-hover-border-color:    var(--primary-color);
    --bs-btn-active-bg:             var(--primary-color);
    --bs-btn-active-border-color:   var(--primary-color);
    --bs-btn-focus-shadow-rgb:      199, 96, 10;
}

.map-view-tap-icon {
    display: inline-flex;
    width: 1em;
    height: 1em;
    align-items: center;
    justify-content: center;
    vertical-align: -0.125em;
}

.map-view-tap-icon img {
    display: block;
    width: 1em;
    height: 1em;
    object-fit: contain;
}

.map-view-tap-icon-white {
    display: none !important;
}

#map-view-available-tab:hover .map-view-tap-icon-orange,
#map-view-available-tab:active .map-view-tap-icon-orange,
#map-view-available-tab.active .map-view-tap-icon-orange,
#map-view-available-tab.btn-primary .map-view-tap-icon-orange,
.available-at-link:hover .map-view-tap-icon-orange,
.available-at-link:active .map-view-tap-icon-orange {
    display: none;
}

#map-view-available-tab:hover .map-view-tap-icon-white,
#map-view-available-tab:active .map-view-tap-icon-white,
#map-view-available-tab.active .map-view-tap-icon-white,
#map-view-available-tab.btn-primary .map-view-tap-icon-white,
.available-at-link:hover .map-view-tap-icon-white,
.available-at-link:active .map-view-tap-icon-white {
    display: block !important;
}

.btn-outline-merch {
    --bs-btn-color:                 var(--primary-color);
    --bs-btn-border-color:          var(--primary-color);
    --bs-btn-hover-color:           #fff;
    --bs-btn-hover-bg:              var(--primary-color);
    --bs-btn-hover-border-color:    var(--primary-color);
    --bs-btn-active-color:          #fff;
    --bs-btn-active-bg:             var(--primary-hover);
    --bs-btn-active-border-color:   var(--primary-hover);
    --bs-btn-focus-shadow-rgb:      199, 96, 10;
}

.btn-merch-option {
    --bs-btn-color:                 #fff;
    --bs-btn-bg:                    var(--primary-color);
    --bs-btn-border-color:          var(--primary-color);
    --bs-btn-hover-color:           #fff;
    --bs-btn-hover-bg:              var(--primary-hover);
    --bs-btn-hover-border-color:    var(--primary-hover);
    --bs-btn-active-color:          #fff;
    --bs-btn-active-bg:             var(--primary-hover);
    --bs-btn-active-border-color:   var(--primary-hover);
    --bs-btn-focus-shadow-rgb:      199, 96, 10;
}

    .btn-outline-facebook {
        --bs-btn-color:                 #1877f2;
        --bs-btn-border-color:          #1877f2;
        --bs-btn-hover-bg:              #1877f2;
        --bs-btn-hover-border-color:    #1877f2;
        --bs-btn-active-bg:             #145dbf;
        --bs-btn-active-border-color:   #145dbf;
        --bs-btn-hover-color:           #fff;
        --bs-btn-active-color:          #fff;
        --bs-btn-focus-shadow-rgb:      24, 119, 242;
        display: inline-flex;
        align-items: center;
        padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
        font-size: var(--bs-btn-font-size);
        font-weight: var(--bs-btn-font-weight);
        line-height: var(--bs-btn-line-height);
        color: var(--bs-btn-color);
        background-color: transparent;
        border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
        border-radius: var(--bs-btn-border-radius);
        transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
        cursor: pointer;
        text-decoration: none;
        user-select: none;
        vertical-align: middle;
    }

    .btn-outline-facebook:hover,
    .btn-outline-facebook:active,
    .btn-outline-facebook.active {
        color: var(--bs-btn-hover-color);
        background-color: var(--bs-btn-hover-bg);
        border-color: var(--bs-btn-hover-border-color);
    }

    .btn-outline-facebook:focus-visible {
        box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), 0.5);
    }

.leaflet-popup-icon-btn {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.leaflet-brewery-popup {
    min-width: 13rem;
}

.leaflet-brewery-popup .leaflet-popup-location {
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 0.2rem !important;
}

.leaflet-brewery-popup .leaflet-popup-brewery-name {
    color: var(--bs-body-color);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.2rem 0 !important;
}

.leaflet-brewery-popup .leaflet-popup-specialty {
    line-height: 1.25;
    margin: 0 0 0.25rem 0 !important;
}

.leaflet-brewery-popup .leaflet-popup-separator {
    border: 0;
    border-top: 1px solid var(--primary-color);
    margin: 0.35rem 0 0.45rem;
    opacity: 0.7;
}

.leaflet-brewery-popup .leaflet-popup-actions {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}

.leaflet-brewery-popup .leaflet-popup-note p:last-child,
.leaflet-brewery-popup .leaflet-popup-note ul:last-child {
    margin-bottom: 0;
}

.leaflet-brewery-popup .leaflet-popup-note ul {
    padding-left: 1rem;
}

.leaflet-brewery-popup a.leaflet-popup-icon-btn {
    color: var(--bs-btn-color) !important;
    border-color: var(--bs-btn-border-color) !important;
}

.leaflet-brewery-popup a.leaflet-popup-icon-btn:hover,
.leaflet-brewery-popup a.leaflet-popup-icon-btn:active,
.leaflet-brewery-popup a.leaflet-popup-icon-btn.active {
    color: var(--bs-btn-hover-color) !important;
    background-color: var(--bs-btn-hover-bg) !important;
    border-color: var(--bs-btn-hover-border-color) !important;
}

.leaflet-brewery-popup a.btn-outline-warning.leaflet-popup-icon-btn:hover,
.leaflet-brewery-popup a.btn-outline-warning.leaflet-popup-icon-btn:active,
.leaflet-brewery-popup a.btn-outline-warning.leaflet-popup-icon-btn.active {
    color: #fff !important;
}

/* Local FA bundle remaps .fa-beer to a missing codepoint later in the file.
   Force the solid beer mug glyph so icons render in popup/sidebar consistently. */
.fa-solid.fa-beer::before,
.fas.fa-beer::before {
    content: "\f0fc" !important;
}

/* ==========================================================================
   Recipes page
   ========================================================================== */
.recipe-access-panel,
.recipe-card,
.recipe-intro {
    background: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
    padding: 1.5rem;
}

.recipe-access-panel,
.recipe-card {
    border-left: 4px solid var(--primary-color);
}

.recipe-access-panel h2,
.recipe-card h2 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.recipe-access-form {
    margin: 1.5rem 0 1rem;
}

.recipe-card {
    cursor: pointer;
    margin-bottom: 1.5rem;
    padding-bottom: 2.75rem;
    position: relative;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.recipe-card:hover {
    box-shadow: 0 8px 24px rgba(44, 62, 80, 0.12);
}

.recipe-card.is-expanded {
    cursor: default;
}

.recipe-card-details {
    margin-top: 1rem;
}

.recipe-unlocked-message {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.22);
    border-radius: var(--border-radius);
    color: #146c43;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
}

.recipe-filter-form {
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
}

.recipe-card-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0;
}

.recipe-badge-group {
    align-items: flex-end;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.4rem;
}

.recipe-eyebrow {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: var(--font-weight-bold);
    letter-spacing: 0;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
}

.recipe-type-badge {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--primary-color);
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.65rem;
}

.recipe-access-badge {
    background: rgba(25, 135, 84, 0.1);
    border: 1px solid rgba(25, 135, 84, 0.22);
    border-radius: 999px;
    color: #146c43;
    flex: 0 0 auto;
    font-size: 0.8rem;
    font-weight: var(--font-weight-bold);
    padding: 0.25rem 0.65rem;
}

.recipe-access-badge-book {
    background: rgba(var(--bs-primary-rgb), 0.1);
    border-color: var(--border-light);
    color: var(--primary-color);
}

.recipe-hop-pill-list {
    align-items: flex-end;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    max-width: 18rem;
}

.recipe-hop-pill {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    color: var(--secondary-color);
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    padding: 0.25rem 0.55rem;
}

.recipe-card-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    bottom: 0.55rem;
    color: var(--primary-color);
    display: inline-flex;
    height: 1.75rem;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 2.5rem;
}

.recipe-card-toggle:hover,
.recipe-card-toggle:focus {
    color: var(--primary-hover);
}

.recipe-card-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.recipe-origin {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    margin: 1rem 0 1.25rem;
    padding: 0.9rem 1rem;
}

.recipe-origin strong {
    color: var(--secondary-color);
    display: block;
    margin-bottom: 0.35rem;
}

.recipe-origin p {
    margin-bottom: 0.25rem;
}

.recipe-hop-list {
    align-items: baseline;
    background: rgba(var(--bs-primary-rgb), 0.06);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin: 1rem 0 1.25rem;
    padding: 0.75rem 1rem;
}

.recipe-hop-list strong {
    color: var(--secondary-color);
}

.recipe-hop-list span {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.recipe-stat-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    margin: 1.25rem 0;
}

.recipe-stat {
    background: var(--light-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    padding: 0.85rem;
}

.recipe-stat span {
    color: var(--text-muted);
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.2rem;
}

.recipe-stat strong {
    color: var(--secondary-color);
    font-size: 1.15rem;
}

.recipe-note {
    background: rgba(var(--bs-primary-rgb), 0.06);
    border-left: 3px solid var(--accent-color);
    margin: 1.25rem 0;
    padding: 1rem;
}

.recipe-note p:last-child {
    margin-bottom: 0;
}

.recipe-section {
    margin-top: 1.5rem;
}

.recipe-section h3 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.85rem;
    padding-left: 0.65rem;
    border-left: 3px solid var(--primary-color);
}

.recipe-table-wrap {
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
}

.recipe-table {
    margin-bottom: 0;
}

.recipe-table th {
    background: var(--light-bg);
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
}

.recipe-table th,
.recipe-table td {
    padding: 0.7rem 0.85rem;
}

.recipe-password-modal .modal-content {
    border: 0;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
}

.recipe-password-modal .modal-header {
    background: var(--primary-color);
    color: #fff;
}

.recipe-password-modal .modal-title {
    color: #fff;
}

.recipe-password-modal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.9;
}

@media (max-width: 575.98px) {
    .recipe-card-header {
        flex-direction: column;
    }

    .recipe-badge-group {
        align-items: flex-start;
    }

    .recipe-hop-pill-list {
        justify-content: flex-start;
        max-width: none;
    }
}

/* ==========================================================================
   Special Thanks page
   ========================================================================== */
.thanks-content {
    font-size: 1rem;
}

.thanks-panel {
    background: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 16px rgba(44, 62, 80, 0.08);
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.thanks-panel h2 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 0.85rem;
}

.thanks-subheading {
    color: var(--dark-color);
    font-size: 1rem;
    font-weight: 700;
    margin: 1.25rem 0 0.5rem;
}

.thanks-list {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.thanks-list li {
    margin-bottom: 0.65rem;
}

.thanks-list li:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer — Compact horizontal nav
   ========================================================================== */
.footer-nav-link:hover {
    color: var(--primary-color) !important;
}

/* ==========================================================================
   TimelineJS3 — Brand Colour Overrides
   These override the default Knight Lab palette to match canberra.beer.
   Only applies on pages that load timeline.css from the CDN.
   ========================================================================== */

/* Timeline embed container responsive height */
.timeline-embed-container {
    min-height: 400px;
}

@media (max-width: 768px) {
    .timeline-embed-container {
        height: 500px !important;
    }
}

/* Navigation bar (the scrubber at the bottom) */
.tl-timenav {
    background: var(--timeline-nav-bg) !important;
}

.tl-timenav-background {
    background: var(--timeline-nav-bg) !important;
}

/* Active / selected event marker */
.tl-marker.tl-marker-active .tl-marker-point,
.tl-marker:hover .tl-marker-point {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.tl-marker .tl-marker-point {
    border-color: var(--primary-color) !important;
}

/* Time axis tick accent */
.tl-timeaxis-tick-line {
    background: rgba(199, 96, 10, 0.3) !important;
}

/* Slide headline colour */
.tl-slide .tl-headline,
.tl-slide .tl-headline-date {
    color: var(--primary-color) !important;
}

/* Era labels on the navigation bar */
.tl-timegroup-message {
    color: var(--timeline-group-text) !important;
    font-weight: var(--font-weight-medium);
    text-shadow: 0 1px 1px var(--timeline-group-text-shadow) !important;
}

.tl-timegroup {
    background: var(--timeline-group-bg) !important;
}

.tl-timegroup.tl-timegroup-alternate {
    background: var(--timeline-group-bg-alt) !important;
}

/* Navigation arrows */
.tl-slidenav-next,
.tl-slidenav-previous {
    color: var(--primary-color) !important;
}

.tl-slidenav-next:hover,
.tl-slidenav-previous:hover {
    color: var(--primary-hover) !important;
}

/* "Made with TimelineJS" attribution link */
.tl-attribution a {
    color: var(--primary-color) !important;
}

/* Timeline Page: Construction Notice
   ========================================================================== */
.timeline-notice-modal .modal-content {
    overflow: hidden;
    border: 1px solid rgba(199, 96, 10, 0.35);
    border-radius: 0.9rem;
    background: linear-gradient(145deg, #fffaf5 0%, #fff1df 100%);
    box-shadow: var(--shadow-soft);
}

.timeline-notice-modal .modal-header {
    border-bottom-color: var(--border-light);
}

.timeline-notice-modal .modal-title {
    color: var(--secondary-color);
    font-weight: var(--font-weight-bold);
}

.timeline-notice-logo {
    width: 2rem;
    height: 2rem;
}

.timeline-notice-modal .modal-body {
    color: #493528;
    line-height: 1.65;
}

.timeline-notice-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 1rem;
    border-top-color: var(--border-light);
    background: rgba(255, 255, 255, 0.55);
}

.timeline-notice-modal .modal-footer .btn {
    width: 100%;
    min-height: 2.75rem;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.timeline-notice-modal .btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.timeline-notice-modal .btn-outline-secondary:hover,
.timeline-notice-modal .btn-outline-secondary:focus {
    color: #fff;
    background-color: var(--secondary-color);
}

/* Links Page
   ========================================================================== */
.link-hub-page {
    min-height: 100vh;
    min-height: 100svh;
    background:
        radial-gradient(circle at top left, rgba(230, 126, 34, 0.2), transparent 34rem),
        linear-gradient(155deg, #fff8f1 0%, #f4e4d3 100%);
}

.link-hub {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 1.25rem 1rem;
}

.link-hub-card {
    width: 100%;
    max-width: 31rem;
    padding: 1.5rem 1.15rem 1.25rem;
    border: 1px solid rgba(199, 96, 10, 0.2);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 1rem 2.5rem rgba(44, 62, 80, 0.14);
    backdrop-filter: blur(0.75rem);
}

.link-hub-header {
    text-align: center;
}

.link-hub-logo {
    display: block;
    width: min(100%, 15rem);
    height: auto;
    margin: 0 auto;
}

.link-hub-tagline {
    max-width: 22rem;
    margin: 0.25rem auto 1.4rem;
    color: #665448;
    font-size: 0.95rem;
    font-style: italic;
}

.link-hub-links {
    display: grid;
    gap: 0.75rem;
}

.link-hub-link {
    min-height: 3.6rem;
    display: grid;
    grid-template-columns: 1.5rem 1fr 1rem;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(199, 96, 10, 0.28);
    border-radius: 0.8rem;
    background: #fff;
    color: var(--secondary-color);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 0.2rem 0.6rem rgba(44, 62, 80, 0.07);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.link-hub-link > i:first-child {
    color: var(--primary-color);
    font-size: 1.25rem;
    text-align: center;
}

.link-hub-link-arrow {
    color: #8c7a6d;
    font-size: 0.75rem;
    text-align: right;
}

.link-hub-link:hover,
.link-hub-link:focus {
    border-color: var(--primary-color);
    color: var(--primary-hover);
    box-shadow: 0 0.45rem 1rem rgba(199, 96, 10, 0.14);
    transform: translateY(-2px);
}

.link-hub-link:focus-visible {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.link-hub-link-facebook {
    border-color: rgba(24, 119, 242, 0.48);
}

.link-hub-link-facebook > i:first-child {
    color: #1877f2;
}

.link-hub-link-facebook:hover,
.link-hub-link-facebook:focus {
    border-color: #1877f2;
    color: #1259b2;
    box-shadow: 0 0.45rem 1rem rgba(24, 119, 242, 0.16);
}

.link-hub-link-instagram {
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(120deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5) border-box;
}

.link-hub-link-instagram > i:first-child {
    background: linear-gradient(145deg, #4f5bd5 5%, #962fbf 35%, #d62976 60%, #fa7e1e 82%, #feda75 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.link-hub-link-instagram:hover,
.link-hub-link-instagram:focus {
    color: #a42673;
    box-shadow: 0 0.45rem 1rem rgba(214, 41, 118, 0.16);
}

.link-hub-signup {
    margin-top: 1.25rem;
    padding: 1.1rem;
    border-radius: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 0.4rem 1rem rgba(163, 79, 8, 0.2);
}

.link-hub-signup h2 {
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.link-hub-signup > p {
    margin-bottom: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.link-hub-signup-controls {
    display: grid;
    gap: 0.6rem;
}

.link-hub-signup .form-control,
.link-hub-signup .btn {
    min-height: 2.85rem;
    border-radius: 0.6rem;
}

.link-hub-signup .btn {
    font-weight: 700;
    border-color: #fff;
    background: #fff;
    color: var(--primary-hover);
}

.link-hub-signup .btn:hover,
.link-hub-signup .btn:focus {
    border-color: #fff3e9;
    background: #fff3e9;
    color: #7d3a08;
}

.link-hub-signup .text-success {
    color: #b9f6ca !important;
}

.link-hub-signup .text-danger {
    color: #ffb4b4 !important;
}

.link-hub-disclaimer {
    display: block;
    margin-top: 0.75rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    line-height: 1.45;
}

.link-hub-disclaimer a {
    color: #fff;
    font-weight: 600;
}

.link-hub-footer {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.link-hub-footer a {
    color: var(--primary-hover);
}

@media (min-width: 430px) {
    .link-hub-card {
        padding: 1.8rem;
    }

    .link-hub-signup-controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .link-hub-link {
        transition: none;
    }
}

/* Events Page: Editorial Policy Card
   ========================================================================== */
.event-policy-card {
    max-width: 42rem;
    background: linear-gradient(145deg, #fff7ef 0%, #fff2df 100%);
    border: 1px solid rgba(199, 96, 10, 0.22);
    border-radius: 0.8rem;
    padding: 0.85rem 1rem;
}

.event-policy-kicker {
    color: #7d3a08;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.event-policy-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.event-policy-chip {
    display: inline-block;
    border: 1px solid rgba(163, 79, 8, 0.24);
    background: rgba(255, 255, 255, 0.72);
    color: #7d3a08;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.74rem;
    line-height: 1.35;
}

.event-policy-toggle {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.event-policy-toggle:hover {
    text-decoration: underline;
}

.event-policy-details {
    border-top: 1px solid rgba(199, 96, 10, 0.18);
    color: #333 !important;
    padding-top: 0.55rem;
}

.event-policy-details p,
.event-policy-details .text-muted {
    color: #333 !important;
}

.map-view-note {
    max-width: none;
    width: 100%;
}

.leaflet-tooltip.available-at-cluster-tooltip {
    background: var(--secondary-color);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 0.25rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
}

.leaflet-tooltip-top.available-at-cluster-tooltip::before {
    border-top-color: var(--secondary-color);
}

@media (min-width: 992px) {
    .map-view-toolbar {
        min-height: 2.4rem;
        position: relative;
    }

    .map-view-note-column {
        position: absolute;
        right: 0;
        top: 0;
    }

    .map-view-sidebar {
        transition: margin-top 0.2s ease;
    }
}

/* Event Card Image
   ========================================================================== */
.event-card-image {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    max-width: 4rem;
    max-height: 4rem;
    border-radius: 0.25rem;
    object-fit: contain;
}

/* Dashboard-managed brewery beer lists */
.btn.brewery-beer-list-button {
    --bs-btn-color: var(--secondary-color);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: var(--secondary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--secondary-color);
    --bs-btn-hover-border-color: var(--secondary-color);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--secondary-color);
}
body.beer-list-open { overflow: hidden; }
.beer-list-modal {
    position: fixed;
    width: min(640px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 3.5rem 1.5rem 1.5rem;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #333);
    box-shadow: var(--shadow-soft);
    overflow-y: auto;
    overscroll-behavior: contain;
    text-align: left;
}
.beer-list-modal::backdrop { background: rgba(0, 0, 0, 0.65); }
.beer-list-header { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.beer-list-header img { object-fit: contain; max-width: 43%; height: 80px; }
.beer-list-site-logo { width: 180px; }
.beer-list-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
    color: inherit;
}
.beer-list-close:hover { color: var(--primary-color); }
.beer-list-close:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 3px; }
.beer-list-modal h2 { font-size: 1.35rem; color: var(--primary-color); }
.beer-list-entry { padding: 1rem 0; overflow-wrap: anywhere; }
.beer-list-entry + .beer-list-entry { border-top: 1px solid var(--border-light); }
.beer-list-entry h3 { font-size: 1.15rem; font-weight: var(--font-weight-bold); margin-bottom: .25rem; }
.beer-list-entry p { margin-bottom: .35rem; }
.beer-list-style { color: var(--bs-secondary-color, var(--text-muted)); }
.beer-list-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem 1rem;
    font-size: .9rem;
    text-align: left;
}
.beer-list-details > span {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}
.beer-list-description { white-space: pre-line; }
@media (max-width: 480px) {
    .beer-list-modal { padding: 3.5rem 1rem 1rem; }
    .beer-list-header img { height: 60px; }
}

.available-at-brewery-card { background: #fff; color: var(--secondary-color); }
.available-at-brewery-card img { object-fit: contain; flex-shrink: 0; }
.available-at-brewery-card:hover { border-color: var(--primary-color) !important; }
.available-at-brewery-card:focus-visible { outline: 3px solid var(--primary-color); outline-offset: 2px; }

/* Timeline Image Sizes */
#timeline-embed img[src$="bentspoke_logo_white_2588x.png"],
#timeline-embed img[src$="wild-polly-logo.jpg"] {
    max-width: 350px;
    max-height: 250px !important;
    width: auto;
    height: auto;
}