/* Ensure social buttons render their icons as solid white regardless of panel-level color
   (they use `fill: currentColor` above, so set their own color explicitly). */
.mobile-menu-panel .mobile-social-btn {
    color: rgba(255,255,255,0.95);
}

/* Admin form spacing + preview safety to avoid overlapping cards */
.col-md-3 .card, .col-md-4 .card, .col-md-8 .card {
    margin-bottom: 1rem;
}
.preview-img {
    display: block;
    margin: 0 auto 0.6rem;
    max-width: 100%;
    height: auto;
}
#media-customization-card .card-body {
    /* ensure contents flow normally and do not overlap nearby cards */
    overflow: visible;
}

/* Fixed preview slot to reserve space and avoid layout jumps */
.preview-slot {
    width: 100%;
    min-height: 12.5rem; /* reserved height for previews */
    max-height: 20rem; /* limit to reasonable size */
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.03);
    border-radius: 0.375rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.preview-slot img.preview-img {
    width: auto;
    height: 100%;
    object-fit: contain;
}

/* Specific slot sizes for photo vs logo */
.photo-preview-slot { min-height: 18.75rem; max-height: 25rem; }
.logo-preview-slot { min-height: 8.75rem; max-height: 13.75rem; }
/* Make mobile menu SVG icons match text highlight on hover/active */
.mobile-menu-link svg * {
    stroke-opacity: 0.6;
    transition: stroke-opacity .12s ease;
}
.mobile-menu-link:hover svg *,
.mobile-menu-link.active svg * {
    stroke-opacity: 0.9 !important;
}

.mobile-shop-btn svg * {
    stroke-opacity: 0.6;
    transition: stroke-opacity .12s ease;
}
.mobile-shop-btn:hover svg *,
.mobile-shop-btn.active svg * {
    stroke-opacity: 0.9 !important;
}
.logo-lg, .logo-mini {
    color: lightgrey;
}

section.content {
    min-height: 62.5rem;
}

span.label-tag {
    background-color: #e4e4e4;
    border: 0.0625rem solid #aaa;
    margin-right: 0.3125rem;
    font-size: 0.75rem;
    font-weight: 400;
    padding: 0.125rem 0.1875rem;
    color: black;
}

.logo-lg b, .logo-mini b {
    color: white
}

.text-muted {
    color: lightgray;
}

section.content {
    margin-top: 1.25rem;
}

section.article img {
    max-width: 100%;
}

.content-header > .breadcrumb > li > a.btn {
    color: white;
    text-decoration: none;
    display: inline-block;
}

.content-header > .breadcrumb > li > a.btn.btn-default {
    color: #00a6d9;
}

section.article {
    padding: 1.25rem;
}

pre {
    background-color: #fafafa;
}

.content-header > .breadcrumb > li > a {
    color: #72afd2;
    /* display: inline-block; */
}

.resource-title {
    margin: 0.125rem 0 0.3125rem 0;
}

.resource-title img {
    width: 1.25rem;
}

input.form-control.active {
    background-color: white !important;
}


img.img-flag {
    width: 1.25rem;
}

.info-box {
    position: relative;
}


th.sorting {
    position: relative;
    cursor: pointer;
    color: #3f9ce8;
}

th.sorting:after {
    content: "";
    position: relative;
    left: 0.1875rem;

    bottom: -0.1875rem;
    font-weight: 900;
    font-size: 0.75rem;
    opacity: .6;
}

th.sorting.descending:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-sm text-dark icon-thick' width='15' height='15' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpolyline points='6 15 12 9 18 15'%3E%3C/polyline%3E%3C/svg%3E");
}

th.sorting.ascending:after {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon icon-tabler icon-tabler-chevron-down' width='15' height='15' viewBox='0 0 24 24' stroke-width='2' stroke='currentColor' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

.layout-top-nav .wrapper .main-header .brand-image {
    height: 2.8125rem;
}

#logo {
    height: 80px;
}

/** smaller logo on mobile **/
@media (max-width: 767px) {
    #logo {
        height: 50px;
    }
}

.py-100 {
    padding: 100px 0;
}


.clickable-row {
    cursor: pointer;
}

.clickable-row td a {
    padding: 5px;
}


.badge-used {
    color: #fff;
    background-color: #ffca28;
}

.badge-available {
    color: #fff;
    background-color: #9ccc65;
}


.unitinput {
    max-width: 250px;
}

.unitinput input[type=number]::-webkit-inner-spin-button,
.unitinput input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}


.notification {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 10000;
    min-width: 200px;
}

span.highlight {
    background-color: #fdeccc;
}

#hijack-notification {
    position: fixed;
    text-align: center;
    bottom: 20px;
    left: 20px;
    z-index: 4000;
    border-radius: 5px;
    background: #ffe761;
    padding: 20px 30px;
    font-size: 1.2em;
}

.has-error input {
    border: 1px solid #d63939;
}


th.sorting:after {
    content: "";
    display: inline-flex;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,<svg xmlns= 'http://www.w3.org/2000/svg' viewBox= '0 0 16 16' width= '16' height= '16' fill= 'none' stroke= 'currentColor' stroke-linecap= 'round' stroke-linejoin= 'round' stroke-width= '1' ><path d= 'M5 7l3 -3l3 3' /><path d= 'M5 10l3 3l3 -3' /></svg>") no-repeat center;
    opacity: .3;
}


th.sorting.sorting_asc:after {
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'><path fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M5 10l3 -3l3 3'/></svg>") no-repeat center;
    opacity: 1;
}

                        /* cleaned stray properties */

th.sorting.sorting_desc:after {
    background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'><path fill='none' stroke='currentColor' stroke-linecap='round' stroke-linejoin='round' stroke-width='1' d='M5 7l3 3l3 -3'/></svg>") no-repeat center;
    opacity: 1;
}

.dataTables_info {
    padding: 10px;
}

.navbar-expand-lg .navbar-collapse .navbar-nav .nav-link {
    margin: 4px 10px !important;
    padding: 5px 10px !important;
}


.lead {
    font-size: 1.5em;
    font-weight: 300;
    line-height: 1.4;
}

#map.loading::before {
    content: 'geolocation in progress...';
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    font-size: 1.3em;
    font-weight: bold;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
}

.nowrap {
    white-space: nowrap;
}

.podium {
    background: black;
    position: relative;
    border-radius: 5px 5px 0 0;
    color: black;
    border: 1px solid #F1F5F9;
}

.podium-title {
    position: absolute;
    top: -30px;
    color: black;
}

aside {
    z-index: 1001;
}

#sidebar-menu .nav-main-heading {
    color: #7186a3;
    padding: 1.375rem 1rem 0.375rem;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .0625rem;
}

.select2-selection {
    border-color: var(--tblr-border-color) !important;
}

.select2-container--default .select2-selection--single {
    height: auto !important; /* Allow height to adjust */
    min-height: 40px; /* Minimum height */
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px !important;
}

/* -----------------------------------------------
     Live sticker (CSS-only, no SVG) with halo
     Inspired by provided SVG: orange rounded pill + soft halo
     Use markup: <div class="sticker sticker-live">LIVE</div>
     Optional extra pulse: add class `pulse` (e.g. `sticker-live pulse`).
     Keeps sizing flexible and works on light/dark backgrounds.
     ----------------------------------------------- */
.sticker-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 0.18rem 0.7rem;
    min-width: 56px;
    height: 28px;
    border-radius: 999px;
    background: linear-gradient(180deg, #FF8B6B 0%, #FF6A45 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.02em;
    position: relative;
    z-index: 1;
    box-shadow: 0 6px 18px rgba(255,120,89,0.16), 0 2px 6px rgba(255,120,89,0.08);
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}

/* subtle glowing halo behind the pill */
/* Place halo above container background but below the pill itself.
    Use positive z-index values smaller than the sticker's z-index (10)
    so the glow remains behind the text but above the media container background. */
.sticker-live::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 28px);
    height: calc(100% + 28px);
    border-radius: 999px;
    background: radial-gradient(closest-side, rgba(255,120,89,0.36), rgba(255,120,89,0.14) 40%, transparent 65%);
    filter: blur(6px);
    z-index: 9;
    pointer-events: none;
}

/* secondary outer ring for extra halo depth */
/* secondary outer ring placed just under the primary halo */
.sticker-live::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% + 44px);
    height: calc(100% + 44px);
    border-radius: 999px;
    background: radial-gradient(closest-side, rgba(255,120,89,0.12), transparent 55%);
    filter: blur(10px);
    z-index: 8;
    pointer-events: none;
}

/* optional pulse animation for attention */
@keyframes livePulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
    50% { transform: translate(-50%, -50%) scale(1.06); opacity: 0.75; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.95; }
}
.sticker-live.pulse::before {
    animation: livePulse 2200ms ease-in-out infinite;
}

/* responsive tweaks: slightly smaller on compact UI */
@media (max-width: 420px) {
    .sticker-live { min-width: 48px; height: 24px; font-size: 11px; padding: 0.12rem 0.5rem; }
    .sticker-live::before { width: calc(100% + 22px); height: calc(100% + 22px); }
    .sticker-live::after { width: calc(100% + 36px); height: calc(100% + 36px); }
}

/* Force the sticker and its halo above most UI layers so the glow is visible.
     Use !important because the template defines `.sticker` inline and later. */
.sticker {
    z-index: 1061 !important;
}
.sticker-live::before {
    z-index: 1060 !important;
}
.sticker-live::after {
    z-index: 1059 !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 37px !important;
}

/* The container */
.select2-container--default .select2-selection--multiple {
    height: auto !important; /* Allow dynamic height */
    min-height: 40px; /* Minimum height */
    padding-top: 0px;
}

/* The selected items */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    height: 29px !important; /* 2px less to account for borders */
    line-height: 29px !important;
    margin-bottom: 3px !important; /* Center vertically */
    background-color: #eef3f6;
    border: 1px solid #dce1e7;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border-right: 1px solid #dce1e7;
}

/* The search field */
.select2-container--default .select2-selection--multiple .select2-search--inline .select2-search__field {
    height: 30px !important;
    line-height: 30px !important;
}


#map {
    /** max shoudl fill parent flex container **/
    max-width: 100%;
    max-height: 100%;
}


#legend {
    position: absolute;
    opacity: 0.95;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

.clustericon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #192433;
    color: white;
    font-size: 20px;
    text-align: center;
    line-height: 50px;
    font-weight: bold;
    margin-top: -20px;
    margin-left: -20px;
    z-index: 1000 !important;
}


.thumbnail {
    position: relative;
    display: block;
}

.thumbnail::after {
    content: "";
    display: block;
    padding-bottom: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' class='icon' width='24' height='24' viewBox='0 0 24 24' stroke-width='2' stroke='white' fill='white' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath stroke='none' d='M0 0h24v24H0z' fill='none'%3E%3C/path%3E%3Cpath d='M16 4l4 0l0 4'%3E%3C/path%3E%3Cpath d='M14 10l6 -6'%3E%3C/path%3E%3Cpath d='M8 20l-4 0l0 -4'%3E%3C/path%3E%3Cpath d='M4 20l6 -6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
}

#maplegend {
    z-index: 1000;
    right: 0;
    top: 0;
}

.leaflet-popup {
    z-index: 1100;
}


@media (max-width: 985px) {
    #maplegend {
        top: 80px;
    }
}


/** Add growing pulsing effect to svg circle path with class .pulse **/
.dropped {
    stroke: rgba(76, 175, 80, 1);
    animation: pulse 2s infinite;
    paint-order: stroke;
}

#map.zoomed .dropped {
    animation: smallpulse 2s infinite;
}

.upcoming {
    stroke: rgba(171, 178, 185, 1);
    animation: pulse 2s infinite;
    paint-order: stroke;
}

#map.zoomed .dropped {
    animation: smallpulse 2s infinite;
}


@keyframes pulse {
    0% {
        stroke-width: 2;
        stroke-opacity: 1;
    }
    100% {
        stroke-width: 60;
        stroke-opacity: 0;
    }
}


@keyframes smallpulse {
    0% {
        stroke-width: 2;
        stroke-opacity: 0.7;
    }
    100% {
        stroke-width: 30;
        stroke-opacity: 0;
    }
}



.img-placeholder {
    background-color: #eeeeee;
    border-radius: 5px;
    height:70vh;
    width:100%;
    animation: placeholder ease-in-out 2s infinite;
}

@keyframes placeholder {
    0% {
        background-color: #eeeeee;
    }
    50% {
        background-color: #cccccc;
    }
    100% {
        background-color: #eeeeee;
    }
}

  /* Mobile-specific styles - won't affect desktop */
  @media (max-width: 991.98px) {
    
    /* Live drops panel mobile optimization */
    #live-drops-panel {
      max-width: 100% !important;
    }
    
    #live-drops-panel .mb-3.fw-bold {
      font-size: 0.95rem !important;
    }
    
    #live-drops-panel .drop-item {
      padding: 6px !important;
      margin-bottom: 8px !important;
    }
    
    #live-drops-panel .drop-item .text-reset {
      font-size: 0.85rem !important;
    }
    
    #live-drops-panel .live-timer {
      font-size: 0.75rem !important;
      padding: 2px 6px !important;
    }
    
    #live-drops-panel .icon-tabler-clock {
      width: 14px !important;
      height: 14px !important;
    }
  }
/* New Navbar Styles */
.new-navbar {
    background-color: rgba(0,0,0,0.9);
    border-radius: 16px;
    margin: 16px;
    padding: 8px;
    color: white;
}

.new-navbar .navbar-brand-image {
    height: 40px;
}

.new-navbar .navbar-nav .nav-link {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
}

.new-navbar .navbar-nav .nav-link:hover,
.new-navbar .navbar-nav .nav-link.active {
    color: rgba(255,255,255,0.9);
    background-color: rgba(255,255,255,0.1);
}

.btn-yellow {
    background-color: #ffda61;
    color: rgba(0,0,0,0.9) !important;
    font-weight: 600;
    border-radius: 12px;
    border: 1px solid white;
    padding: 8px 16px;
}

.btn-yellow:hover {
    background-color: #ffcd30;
}

.btn-ghost-light {
    color: rgba(255,255,255,0.6) !important;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
}

.btn-ghost-light:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
}

.social-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: rgba(255,255,255,0.1); /* Default bg for icons in design? */
    color: white;
}
.social-icon-btn:hover {
    background-color: rgba(255,255,255,0.2);
    color: white;
}

/* Mobile Menu - Figma Design */
.offcanvas-mobile-menu {
    background-color: transparent;
    border: none;
    width: 280px;
}

.offcanvas-mobile-menu .offcanvas-body {
    padding: 0;
}

.mobile-menu-panel {
    /* Fix positioning so panel is flush with viewport edge to avoid seam */
    position: fixed;
    top: 80px;
    right: 16px;
    width: 280px;
    background-color: #1a1a1a;
    /* round only the left side so the panel sits flush on the right */
    border-radius: 24px 24px 24px 24px;
    /* subtle left shadow to separate panel from page without large spread */
    box-shadow: -8px 0 24px rgba(0,0,0,0.45);
    overflow: hidden;
    z-index: 1060; /* above the backdrop */
}

/* Use Bootstrap's backdrop for dimming when the offcanvas is open */
.offcanvas-backdrop {
    background-color: rgba(0,0,0,0.45) !important;
}

/* Prevent white seam artifacts from offcanvas/container edges */
.offcanvas,
.offcanvas-mobile-menu,
.offcanvas-end {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.mobile-menu-panel {
    /* ensure the panel renders on its own layer to avoid anti-alias seams */
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* subtle left divider to mask any remaining seam (adjust if too visible) */
    border-left: 1px solid rgba(0,0,0,0.12);
}

.mobile-menu-login {
    padding: 32px 32px 0 32px;
}

.mobile-menu-login .btn-yellow {
    height: 40px;
    padding: 8px 24px;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
}

.mobile-menu-login .btn-yellow svg {
    width: 24px;
    height: 24px;
    stroke: rgba(0, 0, 0, 0.9);
}

.mobile-menu-items {
    padding: 24px 0;
}

.mobile-menu-link {
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover {
    background-color: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}

.mobile-menu-link.active {
    color: rgba(255,255,255,0.9);
}

.mobile-menu-link svg {
    width: 24px;
    height: 24px;
}

.mobile-menu-pill {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.mobile-menu-social {
    padding: 0 32px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mobile-social-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.mobile-social-btn:hover {
    background-color: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.mobile-social-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-shop-btn {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: rgba(255,255,255,0.9);
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-shop-btn:hover {
    background-color: rgba(255,255,255,0.15);
    color: white;
    text-decoration: none;
}

.mobile-shop-btn svg {
    width: 20px;
    height: 20px;
}

/* Ensure mobile offcanvas icons render as solid shapes matching their surrounding text color
   (don't override text color here — links control their own color via `.mobile-menu-link`). */
.mobile-menu-panel svg {
    /* Default: prefer stroked icons (don't auto-fill shapes that were meant to be stroked) */
    color: inherit;
    stroke: currentColor !important;
    stroke-opacity: 1 !important;
    fill: none !important;
}

/* Social icons (instagram/discord/tiktok/youtube) are filled shapes — keep them filled */
.mobile-menu-panel .mobile-social-btn svg,
.mobile-menu-panel .mobile-social-btn svg * {
    fill: currentColor !important;
    fill-opacity: 1 !important;
    stroke: none !important;
}

/* Shop button uses a stroked icon — ensure it remains stroked and not filled */
.mobile-menu-panel .mobile-shop-btn svg,
.mobile-menu-panel .mobile-shop-btn svg * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-opacity: 1 !important;
}

/* Floating Logo Styles */
.floating-logo {
    position: fixed;
    top: 15px;
    left: 20px;
    z-index: 2000;
    width: 120px;
    transition: all 0.3s ease;
}

.floating-logo img {
    width: 100%;
    height: auto;
    display: block;
}

/* Adjust navbar to accommodate floating logo on desktop if needed */
/* desktop layout tweaks intentionally omitted */

/* Avoid logo overlap on desktop */
@media (min-width: 768px) {
    .new-navbar .navbar-collapse {
        padding-left: 140px; /* Logo width + spacing */
    }
}
