:root{
    --bg:#0f0f12;
    --fg: #b8b9bb;
    --muted:#a7adbb;
    --accent: #0540cc;
    --accent-2:#22b07d;
    --surface:#1a1d24;
    --surface-2:#242936;
    --border:#2e3445;
    --danger:#e74c3c;
    --card-bg: #11332d;
    --shadow: 0 6px 18px rgba(20,20,20,0.08);
    --radius:10px;
    --gap:12px;
}

*{box-sizing: border-box;}

@import url(https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,300italic,700);

body{
    font-family: 'Open Sans Condensed', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,sans-serif;
    background: var(--bg); color: var(--fg); margin: 0;
}

a{color:inherit; text-decoration:none;}
img{display:block}

.center-text{text-align: center;}
.right-text{text-align: right;}
header.navbar{
    position:sticky; top:0; z-index:1000;
    background:var(--surface);
    border-bottom:1px solid var(--border);
}
.nav-inner{
    display:flex; align-items:center; justify-content:space-between;
    max-width: 80%; margin:0 auto; padding:8px 16px; gap:16px;
}
.nav-left, .nav-right{
    display:flex; align-items:center; gap:16px;
}

.topic-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    margin-left: 12px; /* Add space from left edge */
}

.topic-title{
    font-size:16px; font-weight:700; text-transform: capitalize;
}

.search-wrap{
    display:flex; align-items:center; gap:8px;
}
.select, .input, .btn{
    background:var(--surface-2); color:var(--fg);
    border:1px solid var(--border); border-radius:10px;
    padding:10px 12px; font-size:14px;
}
.input::placeholder{ color:var(--muted); }
.btn{
    cursor:pointer; transition: .2s background;
}
.btn:hover{ background:#2d3343; }
.btn-accent{ background:var(--accent); border-color:transparent; }
.btn-accent:hover{ filter:brightness(1.1); }

.nav-item{ position:relative; }
.dropdown{
    position:absolute; top:calc(100% + 8px); min-width:220px;
    background:var(--surface-2); border:1px solid var(--border);
    border-radius:12px; padding:8px;
    box-shadow:0 12px 30px rgba(0,0,0,0.35);
    z-index: 2000;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-item[data-open="true"] > .dropdown{
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--fg);
}

/* Topic dropdown rows: icon and text on same line */
.topic-nav .topic-dropdown a,
.topic-nav .dropdown.topic-title a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    font-size: 0.95rem;
    line-height: 1.1;
    white-space: nowrap;
}

/* Larger icons inside the topic dropdown */
.topic-nav .topic-dropdown a img,
.topic-nav .dropdown.topic-title a img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    object-fit: contain;
}
.dropdown a:hover{ background:#2d3343; }
.nav-left .nav-item .dropdown{ left:0; }
.nav-right .nav-item .dropdown{ right:0; }

.region-scope-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.region-scope-wrapper .srch-icon {
    position: absolute;
    left: 4px;
    width: 26px;
    height: 26px;
    pointer-events: none;
    opacity: 0.9;
}

.region-scope-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: var(--surface);
    border-radius: 999px;
    padding: 8px 20px 12px 46px;
    font-size: 14px;
    border: 1px solid var(--border);
    color: var(--fg);
    cursor: pointer;
    min-width: 170px;
}

.region-scope-wrapper::after {
    content: "▾";
    position: absolute;
    right: 10px;
    font-size: 10px;
    color: var(--muted);
    pointer-events: none;
}

#categoryMenu {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-link {
    margin-top: 4px;
    text-align: center;
}

.btn-category-link {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--fg);
    white-space: nowrap;
}

.btn-category-link:hover {
    background: #2d3343;
}

.video-link-group {
    position: relative;
    width: 100%;
    z-index: 50;
    margin-top: 12px;
}

.video-link-selector {
    background: var(--surface-2);
    color: var(--fg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 1em;
    width: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.video-link-selector:hover {
    background: #2d3343;
}

.video-link-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 150;
    display: none;
}

.video-link-dropdown.active {
    display: block;
}

.video-link-option {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.video-link-option:hover {
    background: #2d3343;
}

.video-link-option.selected {
    background: var(--accent);
    color: white;
}

.video-input-container {
    margin-top: 8px;
    display: none;
}

.video-input-container.active {
    display: block;
}

.category-button{
    display:flex; align-items:center; gap:4px; cursor:pointer;
    background:var(--surface);
    border: none;
}
.cat-icon{
    width:56px; height:56px; border-radius:50%; background:var(--surface-2);
    display:grid; place-items:center; padding:0;
}
.cat-icon img{ width:60px; height:60px; }

.topic-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1;
}

.topic-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
}

/* Topic dropdown: open directly UNDER the engaged topic icon/button */
.topic-nav.nav-right .nav-item .dropdown,
.topic-nav .nav-item .topic-dropdown {
    left: 0;
    right: auto;
    top: calc(100% + 8px);
    margin-left: 0;
    min-width: 300px;
    max-width: min(360px, calc(100vw - 24px));
}

/*.topic-nav.nav-right .nav-item .dropdown {
    left: 100%;
    right: auto;
    top: 0;
    margin-left: 8px;
}*/

.dropdown a[aria-current="true"] {
    background: #2d3343;
}

.member-portrait{
    width:56px; height:56px; border-radius:50%;
    border:2px solid var(--border); object-fit:cover; cursor:pointer;
}
.portrait-sm{
    width:32px; height:32px; border-radius:50%; border:1px solid var(--border); object-fit:cover;
    display:inline-block; vertical-align:middle; margin-right:6px;
}

.subtopic-slider{
    display:flex; justify-content: center; gap:8px; overflow:auto; padding:10px 16px; background:var(--surface);
    border-bottom:1px solid var(--border);
}
.subtopic-btn{
    padding:8px 12px; border:1px solid var(--border); border-radius:999px;
    white-space:nowrap; background:var(--surface-2); color:var(--fg);
    font-size:13px;
}

.subtopic-btn.active{
    background:var(--accent-2); border-color:transparent; color:#fff;
}

.subtopic-btn:hover{
    background:var(--accent-2); border-color:transparent; color:#fff;
}

.container {
    width: 100%;
    max-width: min(1200px, calc(100vw - 32px));
    margin: 0 auto;
    padding: 16px;
}

.three-columns {
    display: grid;
    gap: 16px;

    /*
      Critical fix:
      minmax(0, ...) allows columns to shrink instead of being forced wider
      by long event text/media/buttons.
    */
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(0, 1.5fr)
        minmax(0, 0.9fr);

    align-items: start;
    width: 100%;
    max-width: 100%;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;

    /*
      Critical fix:
      grid children must be allowed to shrink.
    */
    min-width: 0;
    max-width: 100%;
}

.panel h2 {
    margin: 0 0 10px 0;
    font-size: 18px;
    overflow-wrap: anywhere;
}
.meta{ color:var(--muted); font-size:13px; }

.srch-icon{
    width:26px; height:26px; display:inline-block; vertical-align:middle;
    margin: 0 6px 0 12px;
}
.hidden{ display:none; }

#drop-zone, #album-drop-zone {
    border: 3px dashed #bdc3c7;
    border-radius: 12px;
    padding: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#drop-zone.highlight, #album-drop-zone.highlight,
#drop-zone:hover, #album-drop-zone:hover {
    border-color: #3498db;
    background-color: #ecf0f1;
}

.drop-zone-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
}

.drop-zone-text .icon {
    font-size: 48px;
    margin-bottom: 10px;
}

#upload-previews, #album-image-preview {
    margin-top: 2rem;
    width: 100%;
}

.preview-item {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    text-align: left;
    color: #333;
}

.preview-item.success {
    border-left: 5px solid #28a745;
}

.preview-item.error {
    border-left: 5px solid #dc3545;
}

.progress-bar-container {
    position: relative;
    background: #e0e0e0;
    border-radius: 4px;
    height: 24px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, #4CAF50, #45a049);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-text {
    color: white;
    font-weight: bold;
    font-size: 0.85em;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.upload-status {
    color: #666;
    font-size: 0.9em;
}

.modal-container {}
.modal{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.6);
    z-index: 9999;
    visibility:hidden;
    opacity:0;
    transition:opacity .3s ease, visibility .3s ease;
}
.modal[aria-hidden="false"]{
    visibility:visible;
    opacity:1;
}
.modal-content{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    padding:18px;
    width:100%;
    max-width:720px;
    border-radius:12px;
    box-shadow:0 12px 40px rgba(0,0,0,0.5);
    max-height: calc(100vh - 3rem);
    position:relative;
    margin: 1.5rem;
}
.modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 1rem;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.close-modal{
    position:absolute;
    right:10px;
    top:8px;
    border:0;
    background:transparent;
    font-size:2em;
    color: #A8D8FA;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-modal:hover {
    color: #ffffff;
}

.btn-primary{
    width: 100%;
    background:var(--accent);
    color:#fff;
    border:0;
    margin: 8px 0 12px 0;
    padding:8px 14px;
    border-radius:8px;
    cursor:pointer;
}
.btn-primary:hover{ background:#2d3343;}
.btn-secondary{
    background:#eee;
    border:0;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
}
.btn-rate{
    background:transparent;
    border:1px solid #ddd;
    padding:6px 8px;
    border-radius:6px;
    cursor:pointer;
    color: #0FB3F3;
}

.event-card{
    background:var(--card-bg);
    border-radius:10px;
    box-shadow:var(--shadow);
    padding:12px;
    margin-bottom:12px;
    display:grid;
    gap:12px;
    align-items:flex-start;
}
.thumb img{width:100%;object-fit:cover;border-radius:8px}
.event-body{flex:1}
.counter{
    color: #A8D8FA;
    font-size: 1em;
    margin-top: -2px;
    margin-bottom: -5px;
    font-weight: 700;
}
.event-body h3{margin:0 0 6px}
.media{margin-top:8px}
.media.embed iframe{
    width:100%;
    height:320px;
    border-radius:8px;
    border: 2px solid #A8D8FA;
}

/* ========================================
   UPDATED RATING STYLES - Controls Under Dots
   ======================================== */
.rating-wrap{
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 10px;
}

/* New wrapper for dots and controls in a column */
.rating-column{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-dots{
    display: flex;
    gap: 6px;
}

.dot{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#e6e6e6;
    display:inline-block;
    transition:background .2s;
    cursor: pointer;
}

.dot:hover{
    background: #c0c0c0;
}

.dot.filled{
    background:linear-gradient(90deg, #21f5fc, #216efc);
}

.rating-info{
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-info small{
    color:var(--muted);
    font-size: 12px;
}

/* Rate action now appears under the dots */
.rate-action{
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-slider{
    display: flex;
    align-items: center;
    gap: 8px;
}

.rate-slider input[type="range"]{
    width: 100px;
}

.btn-submit-rate{
    background: var(--accent-2);
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.btn-submit-rate:hover{
    filter: brightness(1.1);
}
/* ======================================== */

input[type="range"]{width:160px}

.form-inputbx {
    width: 100%;
    height: 38px;
    margin: 3px auto 1px auto;
    padding: 3px 12px 3px 28px;
    background-color: #ffffff;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1.2em;
    color: #000000;
    text-align: left;
    border: 1px solid #ccc;
}
.form-inputbx.txt {padding-top: 9px;}

.mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
}

.mapboxgl-ctrl-geocoder input[type='text'] {
    padding: 10px 12px !important;
    font-size: 1.2em !important;
    color: #333 !important;
    background-color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    height: auto !important;
}

.mapboxgl-ctrl-geocoder input[type='text']::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.mapboxgl-ctrl-geocoder--icon-search {
    fill: #666 !important;
}

.mapboxgl-ctrl-geocoder .suggestions {
    background-color: #fff !important;
    border: 1px solid #ccc !important;
    border-top: none !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.mapboxgl-ctrl-geocoder .suggestions > li > a {
    padding: 10px 12px !important;
    color: #333 !important;
}

.mapboxgl-ctrl-geocoder .suggestions > .active > a,
.mapboxgl-ctrl-geocoder .suggestions > li > a:hover {
    background-color: #f0f0f0 !important;
    color: #000 !important;
}

.mapboxgl-ctrl-geocoder {
    font-family: inherit;
    padding-left: 18px;
    line-height: 1.5;
}

#geocoder-container {
    margin-bottom: 15px;
}

.venue-geocoder-container {
    width: 100%;
    margin: 3px auto 1px auto;
}

/* Venue Map Button Styles */
.btn-show-venue-map {
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-show-venue-map:hover {
    background: var(--accent-2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(68, 39, 255, 0.3);
}

.btn-show-venue-map:active {
    transform: translateY(0);
}

/* Venue Map Modal Specific Styles */
#venue-map-modal .modal-content {
    max-width: 900px;
}

#venue-map-container {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--surface-2);
}

#venue-map-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    color: var(--fg ); /* var(--fg */
}

#venue-name-display {
    margin: 0 0 8px 0;
    font-weight: 600;
    font-size: 1.1em;
    color: white;
}

#venue-address-display {
    margin: 0;
    color: #A8D8FA;
    font-size: 0.95em;
}

.btn-show-venue-map {
    font-size: 12px;
    padding: 5px 10px;
}

.album-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s;
}

.album-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.album-banner {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    background: var(--surface);
}

.album-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: var(--fg);
}

.album-description {
    font-size: 13px;
    color: var(--muted);
    margin: 0 0 8px 0;
}

.album-meta {
    font-size: 12px;
    color: var(--muted);
}

.btn-join-album {
    width: 100%;
    background: var(--accent-2);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}

.btn-join-album:hover {
    filter: brightness(1.1);
}

.album-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px 0;
    color: var(--accent-2);
}

/* Category icon without link (for retailers without a store) */
.category-icon-nolink {
    display: inline-block;
    opacity: 0.6;
    cursor: default;
}

.category-icon-nolink img {
    filter: grayscale(30%);
    transition: filter 0.2s ease;
}

.category-icon-nolink:hover img {
    filter: grayscale(0%);
}

/* Optional: Add a tooltip-style indicator */
.category-icon-nolink {
    position: relative;
}

.category-icon-nolink::after {
    content: 'No store yet';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--surface-2, #242936);
    color: var(--muted, #a7adbb);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.category-icon-nolink:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Add these CSS rules to your existing styles */

.album-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    padding-bottom: 4px;
}

.album-card-link:hover {
    transform: translateY(-3px);
}

.album-card-link:hover .album-card {
    border-color: var(--accent-2);
    box-shadow: 0 8px 24px rgba(34, 176, 125, 0.2);
}

.album-card-link:hover .album-view-link {
    color: var(--accent-2);
}

.album-view-link {
    display: block;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    transition: color 0.2s ease;
    padding-bottom: 6px;
}



/* Scrollable Album Containers */
.album-container-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 12px;
    margin-bottom: 16px;
}

.album-container-scrollable::-webkit-scrollbar {
    width: 8px;
}

.album-container-scrollable::-webkit-scrollbar-track {
    background: var(--surface-2);
    border-radius: 4px;
}

.album-container-scrollable::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

.album-container-scrollable::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

/* Visit Album button style */
.btn-visit-album {
    display: block;
    width: 100%;
    background: var(--accent);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-visit-album:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .topic-title{ display:none; }
    .three-columns{ grid-template-columns:1fr; }
}

@media (max-width:720px) {
    .navbar {width: 720px}
    .thumb img {
        width: 96px;
        height: 70px
    }

    .media.embed iframe {
        height: 220px
    }

    .modal-content {
        margin: 0.5rem;
        max-height: calc(100vh - 1rem);
    }

    /* VENUE MAPResponsive adjustments */
    #venue-map-container {
        height: 350px;
    }

    /* Rating responsive adjustments */
    .rating-wrap {
        flex-direction: column;
        gap: 10px;
    }

    .rate-slider input[type="range"] {
        width: 80px;
    }
}
/* TICKET BADGE */
.ticket-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}
.ticket-badge::before {
    content: "🎟️";
    font-size: 12px;
}
/* END TICKET BADGE */

/* ======================================== 
   ENHANCED RESPONSIVE NAVBAR - UPDATED
   ======================================== */

/* At 770px: Stack the containers */
@media (max-width: 770px) {
    header.navbar {
        width: 100%;
        max-width: 100%;
    }

    .nav-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 8px;
        max-width: 100%;
        width: 100%;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-left {
        flex-direction: column;
        gap: 8px;
    }

    /* Topic section adjustments */
    .topic-pill {
        width: 100%;
        margin-left: 0; /* Remove left margin on mobile */
    }
/* ------ NOTE 6-30-26
    .topic-selector {
        width: 100%;
        justify-content: space-between;
        padding: 8px 12px;
    }*/

    /* Show topic title at all widths below 770px */
    .topic-title {
        display: block !important;
        font-size: 16px;
    }

    /* Search form - full width */
    .search-wrap {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }

    .region-scope-wrapper,
    .input,
    .btn {
        width: 100%;
    }

    .region-scope-select {
        width: 100%;
        min-width: auto;
    }

    #roamBtn {
        width: 100%;
    }

    /* Right section - make it flex row to keep items visible */
    .nav-right {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
    }

    /* Category menu - inline with portrait */
    #categoryMenu {
        flex-direction: row;
        align-items: center;
        flex: 1;
        justify-content: flex-start;
    }

    .cat-icon {
        width: 44px;
        height: 44px;
    }

    .cat-icon img {
        width: 44px;
        height: 44px;
    }

    .category-link {
        margin-top: 0;
        margin-left: 8px;
    }

    .btn-category-link {
        font-size: 11px;
        padding: 4px 8px;
        white-space: nowrap;
    }

    /* Member portrait - keep visible */
    .member-portrait {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    /* Dropdown adjustments */
    .dropdown {
        min-width: 200px;
        max-width: calc(100vw - 32px);
    }

    /* ------- NOTE 6-30-26
    .topic-nav.nav-right .nav-item .dropdown {
        left: 0;
        right: auto;
        top: calc(100% + 8px);
        margin-left: 0;
    } */

    #categoryDropdown {
        width: 30%;
        right: 0;
        left: 0;
    }
}

@media (max-width: 480px) {
    /* Extra small devices */
    .nav-inner {
        padding: 6px;
    }

    .topic-title {
        font-size: 14px;
    }

    .btn, .input, .select {
        font-size: 13px;
        padding: 8px 10px;
    }

    .member-portrait {
        width: 44px;
        height: 44px;
    }

    .cat-icon {
        width: 40px;
        height: 40px;
    }

    .cat-icon img {
        width: 40px;
        height: 40px;
    }

    .btn-category-link {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/*MEMBER MENUE CART AND MESSAGE COUNTS*/
/* ── Member portal: badges around portrait ── */
.member-portal {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portal-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.portal-icon {
    width: 22px;
    height: 22px;
    opacity: .85;
    transition: opacity .15s;
}
.portal-badge:hover .portal-icon {
    opacity: 1;
}

/* Shared badge dot */
.badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    color: #fff;
    pointer-events: none;
}

/* Cart count — accent colour */
.badge-cart {
    background: var(--accent, #fdd827);
    color: #1a1a2e;
}

/* Message count — alert colour */
.badge-msg {
    background: #e53935;
}

.portrait-wrap {
    position: relative;
    line-height: 0;
}

.mbz-feed-slider {
    position: relative;
    width: 100%;
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid rgba(168, 216, 250, 0.35);
}

.mbz-feed-slides {
    position: relative;
    width: 100%;
}

.mbz-feed-slide {
    display: none;
    width: 100%;
    min-height: 240px;
    max-height: 460px;
    align-items: center;
    justify-content: center;
    background: #000;
}

.mbz-feed-slide.active {
    display: flex;
}

.mbz-feed-slide img,
.mbz-feed-slide video {
    width: 100%;
    max-height: 460px;
    object-fit: contain;
    display: block;
}

.mbz-audio-slide {
    width: 100%;
    min-height: 220px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.mbz-audio-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px;
    background: rgba(255,255,255,0.12);
}

.mbz-audio-slide audio {
    width: min(520px, 100%);
}

.mbz-slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.mbz-slide-btn.prev {
    left: 10px;
}

.mbz-slide-btn.next {
    right: 10px;
}

.mbz-slide-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 7px;
    pointer-events: none;
}

.mbz-slide-dot {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    padding: 0;
    pointer-events: auto;
    cursor: pointer;
}

.mbz-slide-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ============================================================
   FIX: Prevent events column from expanding the 3-column grid
   Applies to base-page_01.php
   ============================================================ */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* If you added class="events-panel" in PHP */
.events-panel {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

/* Fallback if you did not add class="events-panel" */
.three-columns > .panel:first-child {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.feed-panel,
.side-panel,
.three-columns > .panel {
    min-width: 0;
    max-width: 100%;
}

/* Event cards must not define the column width */
.event-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    display: block;
}

.event-body {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

.event-body h3,
.event-body h5,
.event-body .meta,
.event-source-info,
.source-album-name {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: normal;
}

/* Media must stay inside the event card */
.event-card img,
.event-card video,
.event-card audio,
.event-card iframe,
.event-card .media,
.event-card .media.embed,
.event-card .mbz-feed-slider,
.event-card .mbz-feed-slides,
.event-card .mbz-feed-slide {
    max-width: 100%;
    min-width: 0;
}

.event-card iframe {
    width: 100%;
}

/* Feed slider in narrow left column */
.event-card .mbz-feed-slider {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.event-card .mbz-feed-slide {
    min-height: 180px;
    max-height: 280px;
}

.event-card .mbz-feed-slide img,
.event-card .mbz-feed-slide video {
    width: 100%;
    max-height: 280px;
    object-fit: contain;
}

/* Audio controls can otherwise force a minimum width */
.event-card audio,
.event-card .mbz-audio-slide audio {
    width: 100%;
    max-width: 100%;
}

/* Long action buttons/text should wrap inside card */
.btn-show-venue-map,
.btn-event,
.rating-wrap,
.rate-action,
.rate-slider {
    max-width: 100%;
    min-width: 0;
}

.btn-show-venue-map,
.btn-event {
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
}

.rating-wrap,
.rate-action,
.rate-slider {
    flex-wrap: wrap;
}

.rate-slider input[type="range"] {
    max-width: 100%;
}

/* Safer desktop/tablet breakpoints */
@media (max-width: 1100px) {
    .three-columns {
        grid-template-columns:
            minmax(0, 0.85fr)
            minmax(0, 1.35fr)
            minmax(0, 0.85fr);
    }
}

@media (max-width: 900px) {
    .container {
        max-width: 100%;
        padding: 12px;
    }

    .three-columns {
        grid-template-columns: minmax(0, 1fr);
    }

    .events-panel,
    .three-columns > .panel:first-child {
        overflow: visible;
    }
}

@media (max-width:720px) {
    .navbar,
    header.navbar {
        width: 100%;
        max-width: 100vw;
    }
}

@media (max-width: 600px) {
    .mbz-feed-slide {
        min-height: 220px;
        max-height: 390px;
    }

    .mbz-feed-slide img,
    .mbz-feed-slide video {
        max-height: 390px;
    }

    .mbz-slide-btn {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }
}
