/**
 * NCKF Listings v5 - Integrated desktop + mobile UI
 * Compact top bar + drawer + mobile plan/list layout
 */

/* ==========================================================================
   ROOT & VARIABLES
   ========================================================================== */

:root {
  --nckf-primary: #040c31;
  --nckf-primary-dark: #040c31;
  --nckf-primary-grey: #e2e7ec;
  --nckf-green: #10b981;
  --nckf-red: #cd2d43;
  --nckf-bc: #faf6f0;
  --nckf-nn: #040c31;
  --nckf-border-color: #ddd;
  --nckf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --nckf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --nckf-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --nckf-radius: 12px;
  --nckf-spacing: 20px;
  --nckf-topbar-height: 80px;
}

/* ==========================================================================
   MAIN CONTAINER
   ========================================================================== */

.nckf-app {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* ==========================================================================/* ==========================================================================
   FULLSCREEN MENU
   ========================================================================== */

.nckf-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 999px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.nckf-menu-btn:hover {
  background: var(--nckf-bc);
  border: 1px solid var(--nckf-red);
}

.nckf-menu-btn:hover .bar {
  border: 1px solid var(--nckf-red);
  background: var(--nckf-red);
}

.nckf-menu-btn-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
}

.nckf-menu-btn .bar {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--nckf-primary);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  transform-origin: center;
}

.nckf-app.menu-open .nckf-menu-btn .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nckf-app.menu-open .nckf-menu-btn .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nckf-app.menu-open .nckf-menu-btn .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay */
.nckf-fullscreen-menu {
  position: fixed;
  inset: 10px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  border-radius: var(--nckf-radius);
  overflow: hidden;
  box-shadow: var(--nckf-shadow-md);
}
.nckf-app.menu-open::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(4, 12, 49, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 499;
  animation: fadeIn 0.3s ease;
}
.nckf-fullscreen-menu.open {
  opacity: 1;
  pointer-events: all;
}

/* Header */
.nckf-fullscreen-menu-header {
  flex-shrink: 0;
  height: var(--nckf-topbar-height);
  background: var(--nckf-red);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 0 var(--nckf-spacing);
  z-index: 10;
}

.nckf-fullscreen-menu-branding img {
  height: 36px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nckf-fullscreen-menu-close {
  width: 40px;
  height: 40px;
  background: var(--nckf-bc);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nckf-red);
  scale: 1;
  transition: scale 0.2s ease;
  flex-shrink: 0;
}

.nckf-fullscreen-menu-close:hover {
  scale: 1.1;
}

.nckf-fullscreen-menu-close svg {
  width: 20px;
  height: 20px;
}

/* Body */
.nckf-fullscreen-menu-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 38%;
  min-height: 0;
}

/* Column entrance animations — resting state */
.nckf-fullscreen-menu-header {
  transform: translateY(-60px);
  opacity: 0;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}

.nckf-fullscreen-menu-left {
  transform: translateY(-120px);
  opacity: 0;
  transition:
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.8s,
    opacity 0.25s ease 0.8s;
}

.nckf-fullscreen-menu-right {
  transform: translateY(-180px);
  opacity: 0;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
    opacity 0.6s ease 0.3s;
}

/* Open state — everything lands */
.nckf-fullscreen-menu.open .nckf-fullscreen-menu-header {
  transform: translateY(0);
  opacity: 1;
}

.nckf-fullscreen-menu.open .nckf-fullscreen-menu-left {
  transform: translateY(0);
  opacity: 1;
}

.nckf-fullscreen-menu.open .nckf-fullscreen-menu-right {
  transform: translateY(0);
  opacity: 1;
}

/* Close — quick snap back up, stagger reversed */
.nckf-fullscreen-menu:not(.open) .nckf-fullscreen-menu-right {
  transform: translateY(-80px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.35s ease;
}

.nckf-fullscreen-menu:not(.open) .nckf-fullscreen-menu-left {
  transform: translateY(-50px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 1, 1) 0.05s,
    opacity 0.35s ease 0.05s;
}

.nckf-fullscreen-menu:not(.open) .nckf-fullscreen-menu-header {
  transform: translateY(-30px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 1, 1) 0.1s,
    opacity 0.35s ease 0.1s;
}

/* Left column */
.nckf-fullscreen-menu-left {
  background: #eee;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.nckf-fullscreen-menu-image-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.nckf-fullscreen-menu-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100vh !important;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.nckf-fullscreen-menu-image.visible {
  opacity: 1;
}

/* Right column */
.nckf-fullscreen-menu-right {
  background: var(--nckf-bc);
  display: flex;
  align-items: center;
  overflow-y: auto;
  padding: 32px 0;
}

.nckf-fullscreen-menu-nav {
  width: 100%;
}

.nckf-fullscreen-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nckf-fullscreen-menu-list li {
  position: relative;
}

.nckf-fullscreen-menu-list li a {
  display: flex;
  align-items: center;
  font-size: clamp(18px, 2.2vw, 48px);
  justify-content: flex-end;
  color: var(--nckf-primary);
  text-decoration: none;
  padding: 16px 32px;
  position: relative;
  transition:
    color 0.2s ease,
    padding-left 0.2s ease;
  border-bottom: 1px solid rgba(4, 12, 49, 0.07);
}

/* Hover indicator — red line from left edge */
.nckf-fullscreen-menu-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--nckf-red);
  transform: scaleY(0);
  transition: transform 0.2s ease;
  transform-origin: bottom;
}

.nckf-fullscreen-menu-list li a:hover::before,
.nckf-fullscreen-menu-list li.current-menu-item a::before {
  transform: scaleY(1);
}

.nckf-fullscreen-menu-list li a:hover,
.nckf-fullscreen-menu-list li.current-menu-item a {
  color: var(--nckf-red);
  padding-left: 40px;
  border-bottom: 1px solid var(--nckf-red);
}

/* Stagger in */
.nckf-fullscreen-menu.open .nckf-fullscreen-menu-list li {
  animation: menuItemIn 0.35s ease forwards;
  opacity: 0;
}

.nckf-fullscreen-menu-list li:nth-child(1) {
  animation-delay: 0.06s;
}
.nckf-fullscreen-menu-list li:nth-child(2) {
  animation-delay: 0.12s;
}
.nckf-fullscreen-menu-list li:nth-child(3) {
  animation-delay: 0.18s;
}
.nckf-fullscreen-menu-list li:nth-child(4) {
  animation-delay: 0.24s;
}
.nckf-fullscreen-menu-list li:nth-child(5) {
  animation-delay: 0.3s;
}
.nckf-fullscreen-menu-list li:nth-child(6) {
  animation-delay: 0.36s;
}
.nckf-fullscreen-menu-list li:nth-child(7) {
  animation-delay: 0.42s;
}
.nckf-fullscreen-menu-list li:nth-child(8) {
  animation-delay: 0.48s;
}

@keyframes menuItemIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .nckf-fullscreen-menu-body {
    grid-template-columns: 1fr;
  }

  .nckf-fullscreen-menu-left {
    display: none;
  }

  .nckf-fullscreen-menu-right {
    padding: 20px 0;
  }

  .nckf-fullscreen-menu-list li a {
    padding: 14px 24px;
    font-size: clamp(18px, 5vw, 24px);
  }

  .nckf-fullscreen-menu-list li a:hover {
    padding-left: 32px;
  }
}
/* ==========================================================================
   FULL-WIDTH MAP BACKGROUND
   ========================================================================== */

.nckf-map-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

#nckf-map {
  width: 100%;
  height: 100%;
}

/* Dim overlay when drawer is open */
.nckf-app.drawer-open .nckf-map-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   TOP BAR - Compact Filters + Branding
   ========================================================================== */

.nckf-topbar {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: var(--nckf-topbar-height);
  background: #fff;

  box-shadow: var(--nckf-shadow-sm);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 var(--nckf-spacing);
  gap: 20px;
  border-radius: var(--nckf-radius);
}

/* Optional wrappers for future header structure */
.nckf-topbar-left,
.nckf-topbar-center,
.nckf-topbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nckf-topbar-center {
  flex: 1 1 auto;
  min-width: 0;
}

.nckf-topbar-right {
  justify-content: flex-end;
}

.nckf-branding {
  min-width: 110px;
  max-width: 220px;
  height: 40px;
}

.nckf-branding-link {
  display: inline-flex;
  align-items: center;
  width: 160px;
  height: 100%;
}

.nckf-branding img,
.nckf-branding-logo {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.nckf-branding-text {
  display: inline-block;
  max-width: 100%;
  color: var(--nckf-primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact Filters in Top Bar */
.nckf-topbar-filters {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
}

.nckf-topbar-filters::-webkit-scrollbar {
  height: 0;
}

/* Transaction Toggle - Compact */
.nckf-transaction-toggle-compact {
  flex-shrink: 0;
}

.nckf-toggle-wrapper-compact {
  display: flex;
  gap: 4px;
  background: #fafafa;
  padding: 4px;
  border-radius: 10px;
  /* box-shadow: inset var(--nckf-shadow-sm); */
  border: 1px solid var(--nckf-border-color);
}

.nckf-toggle-btn-compact {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;

  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nckf-toggle-btn-compact:hover {
  color: var(--nckf-red);
}

.nckf-toggle-btn-compact.active {
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--nckf-red);
  background: var(--nckf-red);
}
.nckf-reset-all-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--nckf-radius);
  border: 1px solid var(--nckf-border-color);
  background: #fff;
  color: #999;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}
#nckf-projet-neuf-btn,
#nckf-mobile-projet-neuf-btn {
  color: var(--nckf-green) !important;
  border: 1px solid var(--nckf-green);
}

#nckf-projet-neuf-btn.active,
#nckf-mobile-projet-neuf-btn.active {
  background: var(--nckf-green);
  color: #fff !important;
  border: 1px solid var(--nckf-green);
}

#nckf-projet-neuf-btn.active:hover,
#nckf-mobile-projet-neuf-btn.active:hover {
  background: var(--nckf-green);
  color: var(--nckf-bc) !important;
  border: 1px solid var(--nckf-green);
}

#nckf-projet-neuf-btn:hover,
#nckf-mobile-projet-neuf-btn:hover {
  color: var(--nckf-green) !important;
  border: 1px solid var(--nckf-green) !important;
}

.nckf-projet-neuf-btn {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: visible;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.nckf-reset-all-btn svg {
  width: 16px;
  height: 16px;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
}

.nckf-reset-all-btn:hover {
  border-color: var(--nckf-red);
  color: var(--nckf-red);
  background: var(--nckf-bc);
}

.nckf-reset-all-btn:hover svg {
  transform: rotate(-180deg);
}
/* Compact Filter Button (for multi-selects) */
.nckf-filter-btn {
  position: relative;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--nckf-border-color);
  border-radius: 10px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 140px;
}

.nckf-filter-btn:hover {
  border: 1px solid var(--nckf-red) !important;
  background-color: var(--nckf-bc) !important;
  color: var(--nckf-red) !important;
}

.nckf-filter-btn.active {
  border-color: var(--nckf-red);
  background: var(--nckf-bc);
  color: var(--nckf-red);
}

.nckf-filter-btn-arrow {
  width: 16px;
  height: 16px;
  color: #999;
  transition: transform 0.2s ease;
  margin-left: auto;
}

.nckf-filter-btn.open .nckf-filter-btn-arrow {
  transform: rotate(180deg);
}

.nckf-filter-btn-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--nckf-red);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 4px;
}

/* Slider Modal Trigger Buttons */
.nckf-slider-trigger {
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--nckf-border-color);
  border-radius: 10px;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nckf-slider-trigger:hover {
  border-color: var(--nckf-red);
  color: var(--nckf-red) !important;
  background: var(--nckf-bc);
}

/* Menu Trigger Button */
.nckf-menu-trigger {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-trigger {
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-trigger .bars {
  width: 24px;
  height: 18px;
}

.nav-trigger .bars-inner {
  width: 100%;
  height: 100%;
  justify-content: space-between;
}

.nav-trigger .bar {
  width: 100%;
  height: 2px;
  background: var(--nckf-nn);
  transition: all 0.3s ease;
}

.nav-trigger:hover .bar {
  background: var(--nckf-red);
}

/* ==========================================================================
   DROPDOWN PANELS (for multi-selects from top bar)
   ========================================================================== */

.nckf-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  max-height: 400px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--nckf-shadow-lg);
  display: none;
  z-index: 200;
  overflow: hidden;
}

.nckf-dropdown-panel.open {
  display: flex;
  flex-direction: column;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nckf-dropdown-search {
  padding: 12px;
  border-bottom: 1px solid #eee;
}

.nckf-dropdown-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nckf-border-color);
  border-radius: 8px;
  font-size: 14px;
}

.nckf-dropdown-search input:focus {
  outline: none;
  border-color: var(--nckf-red);
}

.nckf-dropdown-options {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.nckf-dropdown-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.nckf-dropdown-option:hover {
  background: var(--nckf-bc);
}

.nckf-dropdown-option.selected {
  background: #e8f0fe;
}

.nckf-dropdown-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--nckf-red);
}

.nckf-dropdown-option-label {
  flex: 1;
  font-size: 14px;
  color: #333;
}

/* ==========================================================================
   SLIDER MODAL (Surface & Budget)
   ========================================================================== */

.nckf-slider-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.nckf-slider-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.nckf-slider-modal-content {
  width: 90%;
  max-width: 500px;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--nckf-shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nckf-slider-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.nckf-slider-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.nckf-slider-modal-close {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nckf-slider-modal-close:hover {
  background: var(--nckf-bc);
}

.nckf-slider-container {
  padding: 20px 12px 12px;
}

.nckf-slider {
  margin-bottom: 16px;
}

.nckf-slider-values {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  padding-top: 2rem;
}

/* Loyer Toggle (Par mois / Par m²/an) */
.nckf-loyer-toggle {
  display: inline-flex;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 2px;
  margin-bottom: 16px;
}

.nckf-loyer-toggle button {
  padding: 8px 16px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nckf-loyer-toggle button.active {
  background: #fff;
  color: var(--nckf-red);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nckf-slider-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.nckf-slider-modal-btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.nckf-slider-modal-btn.primary {
  background: var(--nckf-red);
  color: #fff;
}

.nckf-slider-modal-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 138, 236, 0.3);
}

.nckf-slider-modal-btn.secondary {
  background: #f5f5f5;
  color: #666;
}

.nckf-slider-modal-btn.secondary:hover {
  background: var(--nckf-bc);
}
.nckf-price-quick-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.nckf-price-extend-btn {
  padding: 8px 12px;
  border: 1px solid var(--nckf-border-color);
  border-radius: 999px;
  background: #fff;
  color: #666;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nckf-price-extend-btn:hover {
  border-color: var(--nckf-red);
  color: var(--nckf-red);
  background: var(--nckf-bc);
}

.nckf-price-extend-btn.active {
  background: var(--nckf-red);
  border-color: var(--nckf-red);
  color: #fff;
  font-weight: 600;
}
/* ==========================================================================
   NOUISLIDER STYLES FOR SLIDER MODAL
    (Surface & Budget)
   ========================================================================== */

/* Prevent sliders from bleeding outside their container */
.nckf-slider-container {
  padding: 12px 14px 8px;
  overflow: visible;
}

.nckf-slider {
  margin: 0 11px;
  box-sizing: border-box;
}

/* Clamp handles at track edges so they never overflow */
.noUi-origin {
  overflow: visible;
}

.noUi-base {
  overflow: visible;
}


/* Track base */
.noUi-target {
  background: var(--nckf-primary-grey);
  border: none;
  border-radius: 999px;
  box-shadow: none;
  height: 4px;
}

/* Active range */
.noUi-connect {
  background: var(--nckf-red);
  border-radius: 999px;
}

/* Handle base — hide noUiSlider's default before/after pseudo elements */
.noUi-handle {
  width: 22px !important;
  height: 22px !important;
  right: -11px !important;
  top: -9px !important;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow:
    0 0 0 2.5px var(--nckf-red),
    0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: grab;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.noUi-handle::before,
.noUi-handle::after {
  display: none;
}

/* Handle — active / drag state */
.noUi-handle:active,
.noUi-handle.noUi-active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow:
    0 0 0 2.5px var(--nckf-red),
    0 6px 20px rgba(205, 45, 67, 0.3);
}

/* Handle — hover */
.noUi-handle:hover {
  box-shadow:
    0 0 0 2.5px var(--nckf-red),
    0 0 0 5px rgba(205, 45, 67, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Tooltip — hidden by default on desktop */
.noUi-tooltip {
  display: none;
  background: var(--nckf-primary);
  color: #fff;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip arrow */
.noUi-tooltip::before {
  border-top-color: var(--nckf-primary);
}

/* Tooltip — only visible on mobile */
@media (max-width: 768px) {
  .noUi-tooltip {
    display: block;
  }
  .nckf-slider-values {
    display: none;
  }
  /* Slightly larger handle for touch */
  .noUi-handle {
    width: 26px !important;
    height: 26px !important;
    right: -13px !important;
    top: -11px !important;
  }

  /* More generous tap area */
  .noUi-target {
    height: 5px;
    margin: 8px 0;
  }
   .nckf-slider {
    margin: 0 13px;
  }
}
/* ==========================================================================
   FILTER MODALS (Locations & Types)
   ========================================================================== */

.nckf-filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
}

.nckf-filter-modal.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.nckf-filter-modal-content {
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--nckf-shadow-lg);
  animation: slideUp 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Header */
.nckf-filter-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.nckf-filter-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
}

.nckf-filter-modal-close {
  width: 32px;
  height: 32px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nckf-filter-modal-close:hover {
  background: var(--nckf-bc);
}

/* Search input (locations only) */
.nckf-filter-modal-search {
  margin-bottom: 20px;
  flex-shrink: 0;
}

.nckf-filter-modal-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--nckf-border-color);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #333;
  box-sizing: border-box;
}

.nckf-filter-modal-search input:focus {
  outline: none;
  border-color: var(--nckf-red);
  box-shadow: 0 0 0 3px rgba(205, 45, 67, 0.08);
}

/* Pills container */
.nckf-filter-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  overflow-y: auto;
  padding: 4px 2px 16px;
  flex: 1;
  min-height: 0;
}

.nckf-filter-modal-pills::-webkit-scrollbar {
  width: 4px;
}

.nckf-filter-modal-pills::-webkit-scrollbar-track {
  background: transparent;
}

.nckf-filter-modal-pills::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 2px;
}

/* Individual pill */
.nckf-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #444;
  user-select: none;
  white-space: nowrap;
}
.nckf-pill.unavailable {
    opacity: 0.35;
    cursor: not-allowed;
    border-color: #ddd;
    color: #999;
    background: #fafafa;
}

.nckf-pill.unavailable:hover {
    border-color: #ddd;
    color: #999;
    background: #fafafa;
}
.nckf-pill:hover {
  border-color: var(--nckf-red);
  color: var(--nckf-red);
  background: var(--nckf-bc);
}

.nckf-pill.selected {
  background: var(--nckf-red);
  border-color: var(--nckf-red);
  color: #fff;
  font-weight: 600;
}

.nckf-pill.selected:hover {
  background: var(--nckf-primary-dark);
  border-color: var(--nckf-primary-dark);
  color: #fff;
}
/* Parent pill explicitly clicked by the user */
.nckf-pill.selected.group-root {
  background: var(--nckf-red);
  border-color: var(--nckf-red);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px var(--nckf-red) inset;
}

/* Auto-selected children inherited from a parent group */
.nckf-pill.selected.group-child {
  background: var(--nckf-bc);
  border-color: var(--nckf-red);
  color: var(--nckf-red);
  font-weight: 500;
}

/* Root keeps the current white check */
.nckf-pill.selected.group-root::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}

/* Children get a subtler red dot instead of a full check */
.nckf-pill.selected.group-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nckf-red);
  flex-shrink: 0;
}

/* Optional: keep hover calm on inherited children */
.nckf-pill.selected.group-child:hover {
  background: var(--nckf-bc);
  border-color: var(--nckf-red);
  color: var(--nckf-red);
}
/* Checkmark icon inside selected pill */
.nckf-pill.selected::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
}
/* Explicit parent pill clicked by the user */
.nckf-pill.selected.group-root {
  background: var(--nckf-red);
  border-color: var(--nckf-red);
  color: #fff;
  font-weight: 600;
}

/* Auto-selected children from a grouped locality */
.nckf-pill.selected.group-child {
  background: var(--nckf-bc);
  border-color: var(--nckf-red);
  color: var(--nckf-red);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(177, 0, 32, 0.45);
}

/* No checkmark on inherited children */
.nckf-pill.selected.group-child::before {
  content: none;
  display: none;
}

/* Keep children subtle on hover */
.nckf-pill.selected.group-child:hover {
  background: var(--nckf-bc);
  border-color: var(--nckf-red);
  color: var(--nckf-red);
  box-shadow: inset 0 0 0 1px currentColor;
}
/* Actions */
.nckf-filter-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-shrink: 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.nckf-mobile-pill-search {
  margin-bottom: 12px;
}

.nckf-mobile-pill-search input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--nckf-border-color);
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.nckf-mobile-pill-search input:focus {
  outline: none;
  border-color: var(--nckf-red);
  box-shadow: 0 0 0 3px rgba(205, 45, 67, 0.08);
}

.nckf-mobile-filter-group .nckf-filter-modal-pills {
  padding-bottom: 4px;
}
/* Mobile */
@media (max-width: 768px) {
  .nckf-filter-modal-content {
    width: 100%;
    max-width: none;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    animation: slideUp 0.3s ease;
  }

  .nckf-filter-modal {
    align-items: flex-end;
  }

  .nckf-pill {
    padding: 10px 16px;
    font-size: 14px;
  }
}
/* ==========================================================================
   RESULTS PANEL - MASSIVE (30% width)
   ========================================================================== */

.nckf-results-panel {
  position: absolute;
  top: calc(var(--nckf-topbar-height) + 30px);
  left: 13px;
  width: calc(30% - 40px);
  max-width: 516px;
  height: calc(100vh - var(--nckf-topbar-height) - 40px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: var(--nckf-radius);
  box-shadow: var(--nckf-shadow-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  transition: all 0.4s ease;
}
.nckf-drawer-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.nckf-drawer-left,
.nckf-drawer-right {
  min-width: 0; /* prevents overflow issues with long content */
}

/* Gallery Mode - Full Width */
.nckf-results-panel.gallery-mode {
  width: calc(100% - 25px);
  max-width: none;
}

.nckf-results-header {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nckf-results-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nckf-results-title {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  margin: 0;
}

.nckf-results-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 24px;
  padding: 0 8px;
  background: var(--nckf-red);
  color: #fff;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

.nckf-results-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sort Dropdown */
.nckf-sort-dropdown {
  position: relative;
}

.nckf-sort-btn {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--nckf-border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nckf-sort-btn:hover {
  background: var(--nckf-bc);
  color: #333;
}

.nckf-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #fefefe;
  border-radius: 8px;
  box-shadow: var(--nckf-shadow-sm);
  display: none;
  padding: 8px;
  z-index: 100;
  border: 1px solid var(--nckf-border-color);
}

.nckf-sort-menu.open {
  display: block;
  animation: slideDown 0.2s ease;
}

.nckf-sort-option {
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-size: 14px;
  color: #333;
}

.nckf-sort-option:hover {
  background: #f5f5f5;
}

.nckf-sort-option.active {
  background: var(--nckf-bc);
  border: 1px solid var(--nckf-red);
  color: var(--nckf-red);
}

/* Gallery Toggle Button */
.nckf-gallery-toggle {
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--nckf-border-color);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.nckf-gallery-toggle:hover {
  background: var(--nckf-bc);
  color: #333;
}

.nckf-gallery-toggle.active {
  background: var(--nckf-red);
  color: #fff;
}

.nckf-gallery-toggle svg {
  width: 16px;
  height: 16px;
}

#nckf-results {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

#nckf-results::-webkit-scrollbar {
  width: 6px;
}

#nckf-results::-webkit-scrollbar-track {
  background: transparent;
}

#nckf-results::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

/* Gallery Mode - Grid Layout */
#nckf-results.gallery-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  padding: 24px;
  grid-auto-rows: auto;
}

/* Result Cards */
.nckf-card {
  background: #fff;
  border-radius: var(--nckf-radius);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  box-shadow: var(--nckf-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

#nckf-results:not(.gallery-grid) .nckf-card {
  max-height: 300px;
}

#nckf-results.gallery-grid .nckf-card {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 340px;
  max-height: none;
}

.nckf-card:not(:last-child) {
  margin-bottom: 16px;
}

#nckf-results.gallery-grid .nckf-card:not(:last-child) {
  margin-bottom: 0;
}

.nckf-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--nckf-shadow-md);
}

#nckf-results.gallery-grid .nckf-card:hover {
  transform: translateY(-4px);
}

/* Images
   List view stays flexible.
   Grid view stays consistent. */
.nckf-card-image {
  position: relative;
  width: 100%;
  background: #f5f5f5;
  overflow: hidden;
}

#nckf-results:not(.gallery-grid) .nckf-card-image {
  height: 200px;
}

#nckf-results:not(.gallery-grid) .nckf-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

#nckf-results.gallery-grid .nckf-card-image {
  height: clamp(190px, 18vw, 220px);
  flex-shrink: 0;
}

#nckf-results.gallery-grid .nckf-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

#nckf-results.gallery-grid .nckf-card:hover .nckf-card-image img {
  transform: scale(1.03);
}

.nckf-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

/* Projet Neuf Badge */
.nckf-badge-new {
  padding: 6px 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.nckf-card-price-badge {
  padding: 10px 16px;
  background: var(--nckf-red);
  backdrop-filter: blur(10px);
  color: #fff;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(205, 45, 67, 0.25);
}

.nckf-card-content {
  padding: 14px;
}

#nckf-results.gallery-grid .nckf-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.nckf-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#nckf-results.gallery-grid .nckf-card-title {
  margin: 0;
  font-size: 17px;
}

.nckf-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #666;
}

#nckf-results.gallery-grid .nckf-card-meta {
  margin-top: auto;
  gap: 10px 12px;
}

.nckf-card-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.nckf-card-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--nckf-primary);
  flex-shrink: 0;
}

/* Type Badge in Meta */
.nckf-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: rgba(4, 12, 49, 0.08);
  color: var(--nckf-primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.2px;
}

/* Empty State */
.nckf-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.nckf-empty-state svg {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.nckf-empty-state h3 {
  font-size: 18px;
  color: #666;
  margin: 0 0 8px 0;
}

.nckf-empty-state p {
  font-size: 14px;
  margin: 0;
}

/* ==========================================================================
   LISTING DETAIL DRAWER - MASSIVE (80%)
   ========================================================================== */

.nckf-listing-drawer {
  position: fixed;
  top: 12px;
  right: -100%;
  width: 86%;
  max-width: 1600px;
  height: calc(100vh - 23px);
  background: #fff;
  z-index: 1000;
  transition:
    right 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.2);
  border-radius: 32px 0 0 32px;
  border: 1px solid #eee;
}
.nckf-listing-drawer.open {
  right: 0;
}

.nckf-listing-drawer-header {
  position: sticky;
  top: 0;
  background: #ffffffde;
  backdrop-filter: blur(8px);
  padding: 20px 32px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nckf-drawer-close {
  width: 40px;
  height: 40px;
  background: var(--nckf-bc);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nckf-drawer-close:hover {
  background: #e5e5e5;
  transform: rotate(90deg);
}

.nckf-drawer-close svg {
  width: 20px;
  height: 20px;
}

.nckf-listing-drawer-content {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Drawer header actions group */
.nckf-drawer-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nckf-drawer-action-btn {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border: 1px solid var(--nckf-border-color);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  color: var(--nckf-primary);
  padding: 0;
}

.nckf-drawer-action-btn svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.nckf-drawer-action-btn:hover {
  background: #e5e5e5;
}

.nckf-drawer-close.nckf-drawer-action-btn:hover {
  transform: rotate(90deg);
}

.nckf-listing-drawer.expanded {
  width: 100vw;
  max-width: calc(100vw - 12px) !important;
  border-radius: var(--nckf-radius) 0 0 var(--nckf-radius);
}
.nckf-listing-drawer.expanded .nckf-drawer-columns {
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.75fr);
}

.nckf-listing-drawer.expanded .nckf-drawer-map {
  height: 460px;
}
.nckf-drawer-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.nckf-drawer-spec-item:nth-child(odd) {
  border-right: 1px solid #eee;
}

/* Gallery Swiper */
.nckf-drawer-gallery {
  position: relative;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
}

.nckf-drawer-gallery .swiper {
  border-radius: 12px;
}

.nckf-drawer-gallery .swiper-slide {
  aspect-ratio: 5 / 3;
  background: #f5f5f5;
}

.nckf-drawer-gallery img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

.nckf-drawer-gallery .swiper-button-prev,
.nckf-drawer-gallery .swiper-button-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nckf-drawer-gallery .swiper-button-prev::after,
.nckf-drawer-gallery .swiper-button-next::after {
  font-size: 20px;
  color: #333;
  font-weight: bold;
}

.nckf-drawer-gallery .swiper-pagination {
  bottom: 20px;
}

.nckf-drawer-gallery .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #fff;
  opacity: 0.5;
}

.nckf-drawer-gallery .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--nckf-red);
}

/* Drawer Content Sections */

#nckf-drawer-title {
  font-size: 36px;

  color: #333;
  margin: 0 0 8px 0;
}

.nckf-drawer-info,
.nckf-drawer-details,
.nckf-drawer-agent {
  margin-bottom: 32px;
}

.nckf-drawer-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--nckf-red);
  margin-bottom: 16px;
}

.nckf-drawer-description {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 24px;
}

.nckf-drawer-details h3,
.nckf-drawer-agent h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0 0 16px 0;
}

.nckf-drawer-details > div {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

.nckf-drawer-agent p {
  margin: 0 0 8px 0;
  font-size: 15px;
}

.nckf-drawer-agent a {
  color: var(--nckf-red);
  text-decoration: none;
  display: block;
  margin: 8px 0;
}

.nckf-drawer-agent a:hover {
  text-decoration: underline;
}

.nckf-drawer-view-full {
  display: inline-block;
  padding: 12px 24px;
  background: var(--nckf-red);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
  margin-top: 16px;
}

.nckf-drawer-view-full:hover {
  background: var(--nckf-primary-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   MAP ENHANCEMENTS
   ========================================================================== */

/* Glassmorphic Marker */
.nckf-marker-glass {
  width: 32px;
  height: 32px;
  background: rgba(102, 138, 236, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(102, 138, 236, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nckf-marker-glass::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--nckf-red);
  border-radius: 50%;
}

.nckf-marker-glass:hover {
  transform: scale(1.2);
  box-shadow: 0 6px 16px rgba(102, 138, 236, 0.4);
}

/* Cluster Marker */
.nckf-cluster-marker {
  width: 48px;
  height: 48px;
  background: rgba(102, 138, 236, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--nckf-red);
  box-shadow: 0 4px 16px rgba(102, 138, 236, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nckf-cluster-marker:hover {
  transform: scale(1.1);
  background: rgba(102, 138, 236, 0.25);
}

/* Rich Popup Card */
.mapboxgl-popup {
  z-index: 10;
}
.mapboxgl-popup-tip {
  z-index: 11;
}
.mapboxgl-popup-content {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden;
  box-shadow: var(--nckf-shadow-lg) !important;
  min-width: 280px;
  z-index: 10;
}

.nckf-popup-card {
  cursor: pointer;
}

.nckf-popup-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background: #f5f5f5;
}

.nckf-popup-content {
  padding: 12px;
}

.nckf-popup-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.nckf-popup-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--nckf-primary);
  margin-bottom: 8px;
}

.nckf-popup-meta {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #666;
  align-items: center;
  flex-wrap: wrap;
}

.nckf-message-form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.nckf-message-form-status {
  min-height: 1.5em;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.nckf-message-form-consent {
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid #e6e6e6;
  border-radius: 10px;
  background: #fafafa;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nckf-message-form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
}

.nckf-message-form-consent-label input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--nckf-red);
  flex-shrink: 0;
}

.nckf-message-form-consent-label a {
  color: var(--nckf-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nckf-message-form-consent.is-error {
  border-color: #cd2d43;
  background: rgba(205, 45, 67, 0.06);
  box-shadow: 0 0 0 3px rgba(205, 45, 67, 0.08);
}

.nckf-message-form-consent.is-checked {
  border-color: rgba(205, 45, 67, 0.35);
  background: rgba(205, 45, 67, 0.05);
}

.nckf-message-form-consent.is-animating {
  animation: nckfConsentPop 0.42s ease;
}
label {
    display: inline-block;
    max-width: 100%;
    margin-bottom: 0 !important;
}

@keyframes nckfConsentPop {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(205, 45, 67, 0);
  }
  40% {
    transform: scale(1.01);
    box-shadow: 0 0 0 6px rgba(205, 45, 67, 0.10);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(205, 45, 67, 0);
  }
}

.nckf-message-modal-subtitle {
  display: none;
}

.nckf-message-form-status.is-error {
  color: #b42318;
}

.nckf-message-form-status.is-success {
  color: #027a48;
}

.nckf-message-form-status.is-loading {
  color: #475467;
}

/* ==========================================================================
   MESSAGE MODAL — CONSENT
   ========================================================================== */

.nckf-message-form-consent {
  margin-top: -2px;
  margin-bottom: 2px;
}

.nckf-message-form-consent-label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, #fafafa 0%, #f4f4f4 100%);
  color: #5f6368;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.nckf-message-form-consent-label:hover {
  border-color: rgba(177, 0, 32, 0.22);
  background: linear-gradient(180deg, #fcfcfc 0%, #f7f7f7 100%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

.nckf-message-form-consent-label:focus-within {
  border-color: var(--nckf-red);
  box-shadow: 0 0 0 4px rgba(177, 0, 32, 0.08);
}

.nckf-message-form-consent-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 1px 0 0 0;
  border: 1.5px solid rgba(0, 0, 0, 0.22);
  border-radius: 5px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
  flex-shrink: 0;
}

.nckf-message-form-consent-label input[type="checkbox"]::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0.85);
  opacity: 0;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.nckf-message-form-consent-label input[type="checkbox"]:hover {
  border-color: var(--nckf-red);
}

.nckf-message-form-consent-label input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(177, 0, 32, 0.12);
}

.nckf-message-form-consent-label input[type="checkbox"]:checked {
  background: var(--nckf-red);
  border-color: var(--nckf-red);
  box-shadow: 0 4px 10px rgba(177, 0, 32, 0.16);
}

.nckf-message-form-consent-label input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

.nckf-message-form-consent-label span {
  min-width: 0;
}

.nckf-message-form-consent-label a {
  color: var(--nckf-red);
  font-weight: 500;
  text-decoration: none;
  text-underline-offset: 2px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
  border-bottom: 1px solid rgba(177, 0, 32, 0.2);
}

.nckf-message-form-consent-label a:hover {
  color: var(--nckf-primary-dark, var(--nckf-red));
  border-bottom-color: currentColor;
}

.nckf-message-form-consent-label a:focus-visible {
  outline: none;
  border-bottom-color: currentColor;
  box-shadow: 0 2px 0 0 currentColor;
}

@media (max-width: 768px) {
  .nckf-message-form-consent {
    margin-top: 0;
  }

  .nckf-message-form-consent-label {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 13px;
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.45;
  }

  .nckf-message-form-consent-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
  }

  .nckf-message-form-consent-label input[type="checkbox"]::after {
    width: 8px;
    height: 4px;
  }
}

.iti--container {
  z-index: 9999 !important;
}
/* Empty thumb placeholder when listing has no image */
.nckf-popup-thumb-empty {
  display: block;
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f4ff 100%);
}

/* Type label inside popup meta */
.nckf-popup-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #e8f0fe;
  color: var(--nckf-primary);
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Spider spoke markers (same glass look, slightly smaller) */
.nckf-spider-marker {
  width: 26px;
  height: 26px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.nckf-spider-marker:hover {
  transform: scale(1.25);
}

/* Mapbox popup close button — make it visible */
.nckf-popup .mapboxgl-popup-close-button {
  font-size: 18px;
  color: var(--nckf-primary);
  padding: 4px 8px;
  line-height: 1;
  background: #ffffffe6;
  border-radius: 8px;
  margin: 4px;
  box-shadow: var(--nckf-shadow-sm);
  backdrop-filter: blur(8px);
  border: 1px solid var(--nckf-border-color);
}

.nckf-popup .mapboxgl-popup-close-button:hover {
  color: var(--nckf-primary-dark);
  background: #fff;
  z-index: 10;
}

/* ==========================================================================
   MOBILE FILTERS BUTTON
   ========================================================================== */
.nckf-mobile-filters-row {
  display: none;
}

.nckf-mobile-filters-btn {
  display: flex !important;
  flex: 0 0 80%;
  height: 44px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  position: static;
  transform: none;
  width: auto;
  background: var(--nckf-red);
  border: none;
  color: #f5f5f5;
  box-shadow: var(--nckf-shadow-lg);
}

.nckf-mobile-filters-btn svg {
  width: 20px;
  height: 20px;
}

.nckf-mobile-view-toggle,
.nckf-mobile-view-toggle[hidden] {
  display: none;
}

.nckf-mobile-filters-panel {
  position: fixed;
  bottom: 0;
  left: 8px;
  right: 8px;
 
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.2);
  z-index: 400;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nckf-mobile-filters-panel.open {
  transform: translateY(0);
}

.nckf-mobile-filters-panel::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: var(--nckf-border-color);
  border-radius: 2px;
}

.nckf-mobile-filters-header {
  flex-shrink: 0;
  padding: 0px 20px 0px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nckf-mobile-filters-content {
  padding: 20px;
  overflow-y: auto;
  /* fill available space between header and actions */
  flex: 1;
  min-height: 0;
}

.nckf-mobile-filters-actions {
  /* always pinned to bottom inside the flex panel */
  flex-shrink: 0;
  padding: 16px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 12px;
  background: #fff;
}

.nckf-mobile-filter-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.nckf-mobile-filter-btn.primary {
  background: var(--nckf-red);
  color: #fff;
}

.nckf-mobile-filter-btn.secondary {
  background: #f5f5f5;
  color: #666;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .nckf-results-panel {
    width: calc(46% - 40px);
  }

  .nckf-listing-drawer {
    width: 100%;
    max-width: 100%;
  }

  .nckf-topbar-filters {
    overflow-x: auto;
  }

  .nckf-drawer-columns {
    grid-template-columns: 1fr;
  }

  #nckf-results.gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  #nckf-results.gallery-grid .nckf-card {
    min-height: 320px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nckf-topbar-height: 68px;
    --nckf-topbar-offset: 8px;
    --nckf-filters-row-height: 60px;
    --nckf-chrome-height: calc(
      var(--nckf-topbar-height) + var(--nckf-topbar-offset) * 2
    );
  }

  .mapboxgl-ctrl-bottom-right,
  .mapboxgl-ctrl-bottom-left,
  .mapboxgl-ctrl-top-right,
  .mapboxgl-ctrl-top-left {
    display: none !important;
  }

  .nckf-app {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    background: #fff;
  }

  .nckf-topbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    top: 8px;
    left: 8px;
    right: 8px;
  }

  .nckf-topbar-center {
    display: none;
  }
  .nckf-single-topbar-meta {
    display: none;
  }
  .nckf-mobile-filters-panel .nckf-toggle-wrapper-compact {
    width: 100%;
  }

  .nckf-mobile-filters-panel .nckf-toggle-btn-compact {
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .nckf-branding {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 1 auto;
    width: auto;
    min-width: 120px;
    max-width: min(62vw, 220px);
    height: 40px;
  }
  .nckf-branding-link {
    display: inline-flex;
    align-items: center;
    width: 160px;
    max-width: 100%;
    min-width: 123px;
    height: 100%;
  }
  .nckf-branding img,
  .nckf-branding-logo {
    display: block;
    width: 160px;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .nckf-menu-trigger {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: 0;
  }

  .nckf-menu-trigger .nav-trigger,
  .nckf-menu-trigger button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(4, 12, 49, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.98);
    
  }

  .nckf-menu-trigger .bars {
    width: 22px;
    height: 16px;
  }

  .nckf-menu-trigger .bar {
    background: var(--nckf-primary);
  }
  /* Popup */
  .nckf-popup-thumb {
    height: 120px;
  }

  .nckf-popup-title {
    font-size: 14px;
  }

  .nckf-popup-price {
    font-size: 15px;
  }

  .nckf-popup-content {
    padding: 10px;
  }

  .nckf-popup .mapboxgl-popup-close-button {
    width: 32px;
    height: 32px;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffffe6;
    border-radius: 8px;
    margin: 4px;
    box-shadow: var(--nckf-shadow-sm);
    backdrop-filter: blur(8px);
    border: 1px solid var(--nckf-border-color);
  }
  /*
  .nckf-map-background {
   top: calc(var(--nckf-topbar-height) + var(--nckf-topbar-offset) * 2);
    height: calc(100dvh - var(--nckf-topbar-height) - var(--nckf-topbar-offset) * 2)
  }
*/
.nckf-mobile-results-badge.no-results {
    background: var(--nckf-primary);
    color: #fff;
  }
  .nckf-mobile-results-badge {
    position: absolute;
    top: -62px;
    left: 50%;
    transform: translateX(-50%);
    height: 22px;
    padding: 0 10px;
    background: var(--nckf-red);
    color: #fff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-50%) translateY(4px);
    pointer-events: none;
  }

  .nckf-mobile-results-badge.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .nckf-mobile-reset-all-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--nckf-radius);
    border: 1px solid var(--nckf-border-color);
    background: #fff;
    color: var(--nckf-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: var(--nckf-shadow-lg);
  }

  .nckf-mobile-reset-all-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .nckf-mobile-reset-all-btn:hover svg,
  .nckf-mobile-reset-all-btn:active svg {
    transform: rotate(-180deg);
  }

   #nckf-drawer-expand-btn {
    display: none !important;
  } 
  .nckf-results-panel {
    position: absolute;
    top: calc(var(--nckf-topbar-height) + var(--nckf-topbar-offset) * 2);
    width: calc(100% - 16px);
    max-width: none;
    height: calc(
      100dvh - var(--nckf-topbar-height) - var(--nckf-topbar-offset) * 2
    );
    padding-bottom: calc(var(--nckf-filters-row-height) + 8px);
    min-height: 0;
    border-radius: var(--nckf-radius);
    box-shadow: none;
    transform: translateX(0);
    transition: transform 0.28s ease;
    z-index: 3;
    backdrop-filter: var(--nckf-shadow-sm);
    left: 8px;
  }

  .nckf-results-panel.gallery-mode {
    width: 100%;
  }
.nckf-gallery-toggle {
    display: none;
  }
  .nckf-app.mobile-view-map .nckf-results-panel {
    transform: translateX(100%);
    pointer-events: none;
  }

  .nckf-app.mobile-view-list .nckf-results-panel {
    transform: translateX(0);
    pointer-events: auto;
  }

  #nckf-results {
    max-height: 100%;
  }

  #nckf-results.gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  #nckf-results.gallery-grid .nckf-card {
    min-height: auto;
  }

  #nckf-results.gallery-grid .nckf-card-content {
    padding: 16px;
  }

  #nckf-results.gallery-grid .nckf-card-image {
    height: 200px;
  }

  .nckf-mobile-filters-row {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(
      var(--nckf-filters-row-height) + env(safe-area-inset-bottom, 0px)
    );
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px calc(env(safe-area-inset-bottom, 0px));
    z-index: 90;
  }

  .nckf-mobile-filters-btn {
    display: flex !important;
    flex: 0 0 calc(80% - 4px);
    height: 44px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: var(--nckf-radius);
    position: static;
    transform: none;
    max-width: 60vw;
  }

  .nckf-mobile-view-toggle {
    display: inline-flex;
    flex: 1;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--nckf-radius);
    position: static;
    bottom: auto;
    right: auto;
    min-width: 0;
    padding: 0;
    font-size: 13px;
    background: #fff;
    border: 1px solid var(--nckf-border-color);
    box-shadow: var(--nckf-shadow-lg);
  }

  .nckf-listing-drawer {
    top: 0;
    right: -100%;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    border-radius: 0;
  }

  .nckf-listing-drawer.open {
    right: 0;
  }

  .nckf-listing-drawer-content {
    padding: 20px 20px calc(env(safe-area-inset-bottom, 0px) + 24px);
  }

  .nckf-drawer-map-section {
    padding: 0 16px 16px;
  }

  .nckf-listing-drawer-header {
    padding: 20px 16px;
  }
  #nckf-projet-neuf-btn.active {
    background: var(--nckf-green);
    color: #fff !important;
    border: 1px solid var(--nckf-green);
  }

  .nckf-drawer-map {
    height: 300px;
    border-radius: 8px;
  }
  #nckf-drawer-title {
    font-size: 24px;

    color: #333;
    margin: 0 0 8px 0;
  }
}

@media (max-width: 480px) {
  .nckf-topbar {
    gap: 10px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .nckf-branding {
    min-width: 96px;
    max-width: 64vw;
    height: 34px;
  }

  .nckf-branding-text {
    font-size: 16px;
  }

  .nckf-menu-trigger,
  .nckf-menu-trigger .nav-trigger,
  .nckf-menu-trigger button {
    width: 42px;
    height: 42px;
  }

  #nckf-results:not(.gallery-grid) .nckf-card-image {
    height: 180px;
  }

  #nckf-results.gallery-grid .nckf-card-image {
    height: 180px;
  }

  .nckf-drawer-gallery .swiper-slide {
    aspect-ratio: 4 / 3;
  }
}

/* ==========================================================================
   DRAWER SHARE BUTTON
   ========================================================================== */

.nckf-drawer-share-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--nckf-bc);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--nckf-primary);
  padding: 0;
}

.nckf-drawer-share-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.nckf-drawer-share-btn:hover {
  background: rgba(102, 138, 236, 0.15);
  transform: scale(1.05);
}

.nckf-drawer-share-btn:active {
  transform: scale(0.95);
}
.nckf-copy-feedback {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;

  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(4, 12, 49, 0.92);
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
  box-shadow: 0 10px 24px rgba(4, 12, 49, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.nckf-copy-feedback.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.nckf-copy-feedback::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: rgba(4, 12, 49, 0.92);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

@media (max-width: 767px) {
  .nckf-copy-feedback {
    font-size: 12px;
    padding: 9px 12px;
    max-width: min(240px, 90vw);
    white-space: normal;
    text-align: center;
  }
}
/* ==========================================================================
   DRAWER MAP
   ========================================================================== */

.nckf-drawer-map-section {
  margin-top: 32px;
  padding: 0 20px 20px;
}

.nckf-drawer-map {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

@media (max-width: 768px) {
  .nckf-drawer-map-section {
    padding: 0 16px 16px;
  }

  .nckf-drawer-map {
    height: 300px;
    border-radius: 8px;
  }
}
