/* 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: 1000px;
}

span.label-tag {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    margin-right: 5px;
    font-size: 12px;
    font-weight: 400;
    padding: 2px 3px;
    color: black;
}

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

.text-muted {
    color: lightgray;
}

section.content {
    margin-top: 20px;
}

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: 20px;
}

pre {
    background-color: #fafafa;
}

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

.label-default {
    color: white;
}

.info-box-icon {
    font-size: 40px;
}

p.resource-description {
    color: black;
    margin: 0;
    max-height: 40px;
    overflow-y: hidden;
}

.resource-title {
    margin: 2px 0 5px 0;
}

.resource-title img {
    width: 20px;
}

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


img.img-flag {
    width: 20px;
}

.info-box {
    position: relative;
}


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

th.sorting:after {
    content: "";
    position: relative;
    left: 3px;

    bottom: -3px;
    font-weight: 900;
    font-size: 12px;
    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: 45px;
}

#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;
}

                        position: relative; /* ensure z-index applies */
                        z-index: 1085; /* above mobile menu panel (1060) */

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;
}

.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);
    -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;
}

/* 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 */
@media (min-width: 768px) {
    .new-navbar .container-xl {
        /* Push content to the right slightly if needed, or center it */
        /* Since we removed the logo from the flow, the menu might be too far left. */
        /* Let's add some padding-left to the container or the first nav item to balance it. */
        /* Or maybe the user wants the menu centered? */
        /* Default behavior is left-aligned. */
        /* Let's leave it for now, as "floating" implies independence. */
    }
}

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