/* Kubo Application Styles */
@import url("global.css");
/* Variables  */



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--kubo-text-color);
        display: flex;
    background: var(--kubo-background-color);
    flex-direction: column;
    min-height: 100vh;
}

/* Mobile touch optimizations - remove tap delay and improve responsiveness */
a, button, .nav-link, [role="button"] {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.navbar, #inner-content, footer {
    max-width: 1600px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.navbar, footer {
    background: var(--kubo-background-color);
}



.kubo-button {
  --bs-btn-active-bg: var(--kubo-primary-color);
  --bs-btn-active-color: #fff;
  --bs-btn-active-border-color: transparent;
  --bs-btn-hover-bg: var(--kubo-primary-color);
  --bs-btn-hover-color: #fff;
  background: var(--kubo-button-background);
  color: var(--kubo-button-text-color);
  font-weight: 500;
  border-radius: var(--kubo-radius-pill);
  box-shadow: var(--kubo-shadow-sm);
  border: none;
  transition: background var(--kubo-transition-fast), color var(--kubo-transition-fast), box-shadow var(--kubo-transition-fast), transform 0.15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(204, 122, 63, 0.2);
}

@media (hover: hover) {
  .kubo-button:hover {
    background: var(--kubo-primary-color);
    color: #fff;
    box-shadow: var(--kubo-shadow-md);
    transform: translateY(-2px) scale(1.03);
  }
}

.kubo-button:active {
  background: var(--kubo-primary-color);
  color: #fff;
  box-shadow: var(--kubo-shadow-lg);
  transform: translateY(-1px) scale(0.98);
}

.kubo-button.kubo-button-primary,
.kubo-button.kubo-button-main {
  background: var(--kubo-primary-color);
  color: #fff;
}

@media (hover: hover) {
  .kubo-button.kubo-button-primary:hover,
  .kubo-button.kubo-button-main:hover {
    background: var(--kubo-primary-color);
    color: #fff;
    box-shadow: var(--kubo-shadow-lg);
    transform: translateY(-2px) scale(1.04);
  }
}

/* Avoid vertical misalignment for search icon button inside input groups */
.search-box .kubo-button {
  transform: none;
}

@media (hover: hover) {
  .search-box .kubo-button:hover {
    transform: none;
  }
}

.search-box .kubo-button:active {
  transform: none;
}

/* Same for search button in search results header */
.search-header-form .kubo-button {
  transform: none;
}

@media (hover: hover) {
  .search-header-form .kubo-button:hover {
    transform: none;
  }
}

.search-header-form .kubo-button:active {
  transform: none;
}

/* Keep message send buttons aligned with inputs in profile page */
.profile-page .input-group .kubo-button {
  transform: none;
}

@media (hover: hover) {
  .profile-page .input-group .kubo-button:hover {
    transform: none;
  }
}

.profile-page .input-group .kubo-button:active {
  transform: none;
}




.btn-add-listing-sm, .btn-add-listing-sm:focus, .btn-add-listing-sm:active
{
    color:  var(--kubo-primary-color);
    font-weight: bold;
}

/* Only apply hover effects on devices with hover capability (desktop) */
@media (hover: hover) {
    .btn-add-listing-sm:hover
    {
        color: var(--kubo-secondary-color);
        font-weight: bold;
    }
}

/* Only apply hover effects on devices with hover capability (desktop) */
@media (hover: hover) {
    .nav-icon:hover {
        color: var(--kubo-primary-color);
    }
}

/* Desktop navbar icon buttons */
.navbar .nav-link.nav-icon {
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* Only apply hover effects on devices with hover capability (desktop) */
@media (hover: hover) {
    .navbar .nav-link.nav-icon:hover {
        background-color: var(--kubo-secondary-background-color);
        color: var(--kubo-primary-color);
    }
}

/* Text label next to icons in desktop nav */
.nav-label {
    font-size: 0.9rem;
}

/* Accessible focus styles for desktop nav */
.navbar .nav-link:focus-visible,
.navbar-brand:focus-visible {
    outline: 2px solid var(--kubo-primary-color);
    outline-offset: 2px;
}

.bottom-nav,
.kubo-bottom-nav {
    opacity: 1;
    transform: translateX(0) translateY(0);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
    z-index: 1030; /* Ensure bottom nav is always on top */
    will-change: transform; /* Optimize for animation */
    background: var(--kubo-background-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

/* Bottom nav list with cutout for FAB */
.bottom-nav-list {
    position: relative;
}

.bottom-nav-list::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--kubo-background-color);
    border-radius: 50%;
    z-index: -1;
}

/* FAB spacer to create gap in navigation */
.fab-spacer {
    pointer-events: none;
}

/* Floating Action Button */
.fab-button {
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--kubo-primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4), 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1031;
    text-decoration: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.fab-button i {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

/* FAB hover effect (desktop only) */
@media (hover: hover) {
    .fab-button:hover {
        transform: translateX(-50%) scale(1.08);
        box-shadow: 0 6px 16px rgba(239, 68, 68, 0.5), 0 3px 6px rgba(0, 0, 0, 0.15);
        background: var(--kubo-primary-color-hover);
    }
}

/* FAB active/pressed state */
.fab-button:active {
    transform: translateX(-50%) scale(0.95);
}

/* Mobile touch optimizations for bottom nav */
.bottom-nav .nav-link {
    touch-action: manipulation; /* Remove 300ms tap delay and prevent zoom on double-tap */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* Visual feedback on tap */
    cursor: pointer;
    /* Ensure minimum touch target size (44x44px recommended) */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none; /* Prevent text selection on tap */
    -webkit-user-select: none;
}

/* Hidden state: keep in flow for smooth animation, disable pointer events */
.bottom-nav.hide {
    transform: translateX(0) translateY(120%);
    opacity: 0;
    pointer-events: none;
}

.bottom-nav .nav-link.active {
    color: var(--kubo-primary-color);
}

.nav-icon-label {
    font-size: 0.7rem;
    line-height: 1.1;
    margin-top: 0.1rem;
}

/* Desktop nav active state */
.navbar .nav-link.active,
.navbar-brand.active {
    color: var(--kubo-primary-color);
}

.navbar .nav-link.active.nav-icon {
    background-color: var(--kubo-secondary-background-color);
    box-shadow: var(--kubo-shadow-sm);
    border-radius: 999px;
}

/* Ensure primary CTA in navbar keeps white text when active */
.navbar .nav-link.kubo-button.kubo-button-main,
.navbar .nav-link.kubo-button.kubo-button-main.active {
    color: #fff;
}



/* Navbar brand sizing based on viewport */
.navbar-brand img {
    height: 70px;
    width: auto;
}

    .nav-item .nav-link .bi {
        font-size: 1.6rem;
    }


/* Medium desktops */
@media (min-width: 768px) {
    .navbar-brand img {
        height: 80px;
    }
}

/* Large desktops */
@media (min-width: 1200px) {
    .navbar-brand img {
        height: 90px;
    }
}

/* Extra large desktops */
@media (min-width: 1400px) {
    .navbar-brand img {
        height: 90px;
    }

}

.content{
    background: var(--kubo-secondary-background-color); ;
}

/* Make main/content take remaining viewport height so footer stays at bottom
   when content is short. Center main content vertically when there's extra space. */
main {
    flex: 1 0 auto;
    display: flex;

    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    width: 100%;
}

#inner-content {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

footer {
    margin-top: auto;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}





.footer-container {
    border-top: 1px solid var(--kubo-border-color-soft);
    background: var(--kubo-background-color);
}

.footer-content {
    max-width: 1600px;
    padding-left: 20px;
    padding-right: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--kubo-border-color-soft);
}

@media (min-width: 768px) and (hover: hover) {
    .user-dropdown:hover .dropdown-menu {
        display: block; /* This makes it show on hover for desktop */
        margin-top: 0;
    }

    .user-dropdown .dropdown-menu {
        top: 100%;
        right: 0;
        left: auto;
    }
}

/* Bootstrap adds .show on click. This ensures it's always visible when .show is present. */
/* The !important ensures it overrides any other display property, which is good here. */
.user-dropdown .dropdown-menu.show {
  display: block !important;
}





        .hero {
            position: relative;
            background-image: url('/static/images/banner-optimized.webp');
            background-position: top center;
            background-size: cover;
            background-repeat: no-repeat;
            min-height: 420px;
            display: flex;
            align-items: center;
        }

    .hero::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.35);
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .search-box {
      max-width: 720px;
      margin: 0 auto;
    }

    .search-box .form-control {
      height: 56px;
      font-size: 1.1rem;
    }

    .search-box .btn {
      width: 56px;
    }




    .category-item {
  color: #cc7a3f; /* Kubo-like orange */
  transition: transform 0.2s ease, color 0.2s ease;
}

.category-icon {
    flex-shrink: 0;
    margin-right: 1rem;
      width: 100px;
  height: 100px;
}





.category-label {
  font-size: 1.4rem;
  font-weight: 500;
}

.category-item {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(204, 122, 63, 0.15);
}

@media (hover: hover) {
  .category-item:hover {
    color: #a85f2c;
    transform: translateY(-2px);
  }
}



.product-card {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(204, 122, 63, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f7f7f7;
}

.product-card .card-body {
  text-align: left;
}

@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.08);
  }
}

#profiledropdown .dropdown-item:active,
#profiledropdown .dropdown-item:focus {
    background-color: var(--kubo-secondary-background-color); /* your color */
    color: #212529;
}


.profile-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--kubo-button-background); /* Kubo accent color */
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-size: 14px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGINATION - Custom Kubo Style
   ══════════════════════════════════════════════════════════════════════════ */

.pagination {
    gap: 0.5rem;
}

.pagination .page-item .page-link {
    border: 1px solid var(--kubo-border-color-soft);
    border-radius: 8px;
    color: var(--kubo-text-color);
    background: var(--kubo-surface-color);
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.pagination .page-item .page-link:hover {
    background: var(--kubo-surface-muted);
    border-color: var(--kubo-border-color-strong);
    color: var(--kubo-primary-color);
    transform: translateY(-1px);
}

.pagination .page-item.active .page-link {
    background: var(--kubo-primary-color);
    border-color: var(--kubo-primary-color);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--kubo-primary-color) 30%, transparent);
}

.pagination .page-item.disabled .page-link {
    background: var(--kubo-surface-muted);
    border-color: var(--kubo-border-color-soft);
    color: var(--kubo-text-muted-color);
    opacity: 0.5;
    cursor: not-allowed;
}

/* Touch optimization for mobile */
@media (max-width: 767.98px) {
    .pagination .page-item .page-link {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        touch-action: manipulation;
    }
}

/* ========================================
   VIEW TOGGLE (Grid/List)
   ======================================== */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.view-toggle-buttons {
    display: flex;
    gap: 0.25rem;
    background: var(--kubo-surface-muted);
    padding: 0.25rem;
    border-radius: 8px;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    color: var(--kubo-text-muted-color);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.view-toggle-btn:hover {
    background: var(--kubo-surface-color);
    color: var(--kubo-text-color);
}

.view-toggle-btn.active {
    background: var(--kubo-primary-color);
    color: white;
}

/* card-price-panel hidden in grid view (price shown in search-result-footer instead) */
.card-price-panel {
    display: none;
}

/* listing-meta default (grid view) — tiny, subtle */
.listing-meta {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--kubo-text-light-color);
    margin-top: 0.15rem;
}

.listing-meta .listing-author {
    font-weight: 500;
}

.listing-meta .listing-separator {
    opacity: 0.5;
}

/* listing-location base (grid view) */
.listing-location {
    font-size: 0.78rem;
    color: var(--kubo-text-muted-color);
    margin-bottom: 0.15rem;
}

/* search-result-footer (price + category badge row inside card) */
.search-result-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.search-result-card .card-title {
    font-size: 0.95rem;
}

.search-result-card .card-title,
.search-result-card .card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-badges {
    font-size: 0.78rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Wishlist button always on top of stretched-link overlay */
.wishlist-icon-card {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
    line-height: 1;
    color: var(--kubo-text-muted-color);
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.15s, color 0.15s;
    pointer-events: auto !important;
    z-index: 3 !important;
}

.wishlist-icon-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.wishlist-icon-card:hover {
    transform: scale(1.15);
}

.wishlist-icon-card.saved .bi-heart-fill,
.wishlist-icon-card:hover .bi-heart {
    color: var(--kubo-primary-color);
}

.wishlist-icon-card .bi-heart-fill {
    color: var(--kubo-primary-color);
}

/* Mobile filter button active-filter counter badge */
.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: var(--kubo-primary-color);
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 6px;
    position: relative;
    top: -1px;
}

/* Mobile modal: location + currency sections */
.modal-filter-section {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}
.modal-filter-section .filter-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--kubo-text-muted-color);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    text-align: left;
}
.modal-filter-section .form-control,
.modal-filter-section .form-select {
    font-size: 0.95rem;
}

/* Hide grid-view wishlist button in list view (replaced by wishlist-btn-list in price panel) */
.search-results-container[data-view="list"] .wishlist-icon-card {
    display: none;
}

/* ── List view ────────────────────────────────────────────────────── */
.search-results-container[data-view="list"] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-results-container[data-view="list"] > div {
    width: 100% !important;
    max-width: 100%;
    flex: 0 0 100%;
}

.search-results-container[data-view="list"] .product-card {
    display: grid;
    grid-template-columns: 190px 1fr auto;
    grid-template-rows: 1fr;
    height: auto !important;
    min-height: 130px;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    overflow: hidden;
}

.search-results-container[data-view="list"] .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
}

/* Image: column 1 */
.search-results-container[data-view="list"] .product-card .card-img-top {
    grid-column: 1;
    grid-row: 1;
    width: 190px;
    height: 100%;
    min-height: 130px;
    object-fit: cover;
    border-radius: 0;
    flex-shrink: 0;
    align-self: stretch;
}

/* Text info: column 2 */
.search-results-container[data-view="list"] .product-card .card-body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.3rem;
    padding: 1rem 1.25rem;
}

.search-results-container[data-view="list"] .product-card .card-body .search-result-footer {
    display: none; /* hidden — price shown in card-price-panel instead */
}

.search-results-container[data-view="list"] .card-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    color: var(--kubo-text-color);
}

.search-results-container[data-view="list"] .listing-location {
    font-size: 0.875rem;
    color: var(--kubo-text-muted-color);
    margin-bottom: 0;
}

.search-results-container[data-view="list"] .listing-meta {
    gap: 0.4rem;
    font-size: 0.8rem;
    margin-top: 0;
    padding: 0;
}

.search-results-container[data-view="list"] .listing-meta .listing-author {
    font-weight: 500;
    color: var(--kubo-text-muted-color);
}

/* Price panel: column 3 */
.search-results-container[data-view="list"] .card-price-panel {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    min-width: 160px;
    border-left: 1px solid var(--kubo-border-color-soft);
    background: var(--kubo-secondary-background-color);
    position: relative;
    z-index: 2;
}

.search-results-container[data-view="list"] .card-price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--kubo-text-color);
    white-space: nowrap;
    text-align: right;
}

.search-results-container[data-view="list"] .card-price-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.search-results-container[data-view="list"] .card-price-meta .badge {
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.3rem 0.65rem;
}

/* Wishlist button in list view */
.wishlist-btn-list {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--kubo-text-muted-color);
    font-size: 1.15rem;
    position: relative;
    z-index: 3;
    pointer-events: auto !important;
    transition: color 0.2s ease, transform 0.15s ease;
    touch-action: manipulation;
}

.wishlist-btn-list:hover {
    color: var(--kubo-primary-color);
    transform: scale(1.15);
}

.wishlist-btn-list.saved {
    color: var(--kubo-primary-color);
}

/* Mobile: hide toggle, fallback to grid */
@media (max-width: 767.98px) {
    .view-toggle-buttons {
        display: none;
    }
}
/* Explore modal styles */
.explore-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Category navigation header */
.category-nav-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: var(--kubo-background-color);
    border-bottom: 1px solid var(--kubo-secondary-background-color);
    flex-shrink: 0;
}

.back-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kubo-text-color);
    transition: all 0.2s;
}

.back-button:hover {
    background-color: var(--kubo-primary-color);
    color: white;
}

.breadcrumb-trail {
    font-size: 0.9rem;
    color: var(--kubo-text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.breadcrumb-trail .breadcrumb-link {
    color: var(--kubo-primary-color);
    text-decoration: none;
    cursor: pointer;
}

.breadcrumb-trail .breadcrumb-link:hover {
    text-decoration: underline;
}

.breadcrumb-trail .separator {
    margin: 0 0.5rem;
}

/* Category list viewport and animations */
.category-view-port {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
}

.category-list {
    list-style: none;
    padding: 0.5rem 0;
    margin: 0;
    position: relative;
    width: 100%;
    max-height: 100%;
    overflow-y: auto;
    background-color: var(--kubo-background-color);
    transition: transform 0.3s ease-in-out;
}

.category-list.entering {
    transform: translateX(100%);
}

.category-list.exiting {
    transform: translateX(-100%);
}

.category-list.entering-back {
    transform: translateX(-100%);
}

.category-list.exiting-back {
    transform: translateX(100%);
}

.category-view-port.is-transitioning {
    min-height: 100px;
}

/* Category item styling */
.category-list .category-item {
    display: flex;
    align-items: center;
    padding: 0.9rem 1rem;
    cursor: pointer;
    color: var(--kubo-text-color);
    transition: background-color 0.2s ease-in-out;
    font-size: 1rem;
}

.category-list .category-item:hover {
    background: var(--kubo-secondary-background-color);
}

.category-list .category-item .name {
    flex-grow: 1;
}

.category-list .category-item .category-item-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
    font-size: 1.25rem;
    color: var(--kubo-primary-color);
    width: 24px;
    text-align: center;
}

.category-list .category-item i.bi-chevron-compact-right {
    margin-left: auto;
    color: var(--kubo-text-color);
    opacity: 0.7;
}

/* Old explore category button styles (kept for compatibility if needed elsewhere) */
.explore-category-btn {
    transition: all 0.2s ease;
    border: 2px solid #e5e7eb !important;
    color: var(--kubo-text-color);
}

.explore-category-btn:hover {
    border-color: var(--kubo-primary-color) !important;
    background: rgba(224, 64, 64, 0.05);
    transform: translateY(-2px);
}

.explore-category-btn.active {
    background: var(--kubo-primary-color);
    color: white;
    border-color: var(--kubo-primary-color) !important;
}

.explore-category-btn.active i {
    color: white;
}

.explore-step-indicator {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--kubo-text-muted-color);
}

.explore-step-current {
    color: var(--kubo-primary-color);
    font-weight: 700;
}

.modal-subtitle {
    font-size: 0.85rem !important;
}

/* Search & Filter styles (used in category listings and explore modal) */
.search-filter-group {
    margin-bottom: 1rem;
}

.search-filter-group-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kubo-text-muted-color);
    margin-bottom: 0.35rem;
}

.search-filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--kubo-text-color);
    display: block;
}

.search-filter-checkbox-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.search-filter-checkbox-list li + li {
    margin-top: 0.2rem;
}

.search-filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--kubo-text-color);
    cursor: pointer;
}

.search-filter-checkbox-label .form-check-input {
    margin-top: 0;
}

.search-price-inputs {
    display: flex;
    gap: 0.5rem;
}

.search-price-inputs .form-control {
    font-size: 0.85rem;
}

.search-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.search-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: var(--kubo-surface-muted);
    font-size: 0.78rem;
    color: var(--kubo-text-muted-color);
}

.search-filter-chip i {
    font-size: 0.9rem;
}

.search-filter-chip-radio {
    cursor: pointer;
    user-select: none;
    border: 1.5px solid transparent;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.search-filter-chip-radio:hover {
    background: #fef2f2;
    color: var(--kubo-primary-color);
}

.search-filter-chip-active {
    background: var(--kubo-primary-color) !important;
    color: var(--kubo-dark-text-color, #fff) !important;
    border-color: var(--kubo-primary-color) !important;
}

/* Location & Autocomplete styles */
.search-location-input .input-group-text {
    border-top-left-radius: var(--kubo-radius-pill, 20px);
    border-bottom-left-radius: var(--kubo-radius-pill, 20px);
}

.search-location-input .form-control {
    border-top-right-radius: var(--kubo-radius-pill, 20px);
    border-bottom-right-radius: var(--kubo-radius-pill, 20px);
}

.autocomplete-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(214, 220, 230, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    z-index: 1050;
    max-height: 200px;
    overflow-y: auto;
    margin-top: 4px;
}

.autocomplete-suggestion {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: var(--kubo-text-color);
}

.autocomplete-suggestion:last-child {
    border-bottom: none;
}

.autocomplete-suggestion:hover,
.autocomplete-suggestion.active {
    background-color: var(--kubo-secondary-background-color);
}

.search-radius-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-radius-wrapper .form-range {
    padding: 0;
    flex-grow: 1;
}

.search-radius-badge {
    font-size: 0.78rem;
    flex-shrink: 0;
    min-width: 50px;
    text-align: center;
}

/* Kubo-themed range slider */
.kubo-range {
    height: 6px;
    background: var(--kubo-surface-muted);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.kubo-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--kubo-primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kubo-range::-webkit-slider-thumb:hover {
    background: var(--kubo-primary-color-hover);
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(239, 68, 68, 0.3);
}

.kubo-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: none;
    border-radius: 50%;
    background: var(--kubo-primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kubo-range::-moz-range-thumb:hover {
    background: var(--kubo-primary-color-hover);
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(239, 68, 68, 0.3);
}

.kubo-range::-webkit-slider-runnable-track {
    height: 6px;
    background: linear-gradient(to right, var(--kubo-primary-color) var(--range-progress, 0%), var(--kubo-surface-muted) var(--range-progress, 0%));
    border-radius: 3px;
}

.kubo-range::-moz-range-track {
    height: 6px;
    background: var(--kubo-surface-muted);
    border-radius: 3px;
}

.kubo-range::-moz-range-progress {
    height: 6px;
    background: var(--kubo-primary-color);
    border-radius: 3px;
}

/* Kubo-themed badge for radius */
.kubo-badge {
    background-color: var(--kubo-primary-color) !important;
    color: white !important;
    font-weight: 600;
}

/* Kubo-themed select */
.kubo-select {
    border: 1px solid var(--kubo-border-color);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 16px;
    color: var(--kubo-text-color);
    background-color: var(--kubo-surface-color);
    transition: all 0.2s ease;
}

.kubo-select:focus {
    border-color: var(--kubo-primary-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    outline: none;
}

.kubo-select:hover {
    border-color: var(--kubo-primary-color-hover);
}

/* Kubo-themed spinner */
.kubo-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.3rem;
    border-color: var(--kubo-surface-muted);
    border-right-color: var(--kubo-primary-color);
    animation: kubo-spin 0.8s linear infinite;
}

@keyframes kubo-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Centered loading container for explore modal */
.explore-loading-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

