/* =============================================
   EmlakBANA Design System — Airbnb Light Theme
   Primary: #FF385C (Airbnb Red)
   Logo: Red + White  
   ============================================= */
:root {
  /* Surfaces */
  --ebp-surface:       #ffffff;
  --ebp-surface-soft:  #f7f7f7;
  --ebp-surface-hover: #f0f0f0;

  /* Text */
  --ebp-ink:      #222222;
  --ebp-ink-soft: #484848;
  --ebp-muted:    #717171;

  /* Borders */
  --ebp-line:        #DDDDDD;
  --ebp-line-strong: #b0b0b0;

  /* Brand - Airbnb red to match logo */
  --ebp-accent:       #FF385C;
  --ebp-accent-strong:#E31C5F;
  --ebp-accent-soft:  rgba(255, 56, 92, 0.08);

  /* Shadows */
  --ebp-shadow:     0 2px 16px rgba(0,0,0,0.12);
  --ebp-shadow-soft:0 1px 6px rgba(0,0,0,0.08);
  --ebp-shadow-lg:  0 16px 40px rgba(0,0,0,0.16);

  --ebp-header-height: 80px;
}

/* Dark mode support (preserved for optional use) */
html.dark {
  --ebp-surface:       #1a1a1a;
  --ebp-surface-soft:  #262626;
  --ebp-surface-hover: #2e2e2e;
  --ebp-ink:      #f7f7f7;
  --ebp-ink-soft: #b0b0b0;
  --ebp-muted:    #717171;
  --ebp-line:        rgba(255,255,255,0.12);
  --ebp-line-strong: rgba(255,255,255,0.22);
  --ebp-accent:       #FF385C;
  --ebp-accent-strong:#E31C5F;
  --ebp-shadow:     0 2px 16px rgba(0,0,0,0.4);
  --ebp-shadow-soft:0 1px 6px rgba(0,0,0,0.3);
  --ebp-shadow-lg:  0 16px 40px rgba(0,0,0,0.5);
}

.ebp-listings-page {
  background: var(--ebp-surface);
  color: var(--ebp-ink);
  font-family: 'Manrope', 'Inter', sans-serif;
  transition: background 0.5s ease, color 0.5s ease;
  padding-top: 0 !important; /* Zero gap for minimalist look */
}

.ebp-listings-page * { box-sizing: border-box; }
body.ebp-sheet-open, body.ebp-map-open { overflow: hidden; }
.ebp-shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto; }

.ebp-kicker, .ebp-panel-kicker {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px;
  border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.ebp-kicker { color: var(--ebp-accent-strong); background: var(--ebp-accent-soft); }
.ebp-panel-kicker { color: var(--ebp-muted); background: var(--ebp-surface-soft); }

.ebp-primary-btn, .ebp-secondary-btn, .ebp-mobile-control, .ebp-chip-button, .ebp-text-btn, .ebp-icon-btn, .ebp-ghost-toggle {
  appearance: none; border: 0; cursor: pointer; font: inherit;
}

.ebp-primary-btn, .ebp-secondary-btn, .ebp-mobile-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.ebp-primary-btn { background: linear-gradient(180deg, var(--ebp-accent) 0%, var(--ebp-accent-strong) 100%); color: #fff; box-shadow: 0 10px 24px rgba(255, 56, 92, .24); }
.ebp-primary-btn:hover, .ebp-secondary-btn:hover, .ebp-mobile-control:hover, .eb-card-v2__action:hover { transform: translateY(-1px); }
.ebp-primary-btn--large { width: 100%; }
.ebp-secondary-btn, .ebp-mobile-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 999px; font-size: 13px; font-weight: 800; text-decoration: none;
  transition: all .2s ease; background: var(--ebp-surface); color: var(--ebp-ink); border: 1px solid var(--ebp-line);
}
.ebp-text-btn { background: transparent; color: var(--ebp-muted); font-size: 12px; font-weight: 800; padding: 0 10px; }
.ebp-icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--ebp-surface); border: 1px solid var(--ebp-line); color: var(--ebp-ink); box-shadow: var(--ebp-shadow-soft);
}

.ebp-hero {
  position: relative; padding: 48px 0 24px; border-bottom: 1px solid var(--ebp-line);
  background: var(--ebp-surface); overflow: hidden;
}
.dark .ebp-hero { background: #000; }
.ebp-hero:before {
  content: ''; position: absolute; top: 34px; right: clamp(20px, 6vw, 92px); width: clamp(260px, 28vw, 420px);
  height: clamp(260px, 28vw, 420px); border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.34)), var(--hero-image) center/cover no-repeat;
  opacity: .14; filter: saturate(.9); pointer-events: none;
}
.ebp-hero:after {
  content: ''; position: absolute; inset: 88px auto auto 46%; width: 320px; height: 320px; border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 56, 92, .1), transparent 72%); pointer-events: none;
}

.ebp-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .94fr) minmax(420px, 1.06fr); gap: 24px; align-items: stretch; }
.ebp-hero__copy {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-height: 100%; padding: 40px;
  border-radius: 40px; border: 1px solid var(--ebp-line); background: var(--ebp-surface-soft);
  box-shadow: var(--ebp-shadow-soft); overflow: hidden;
}
.ebp-hero__copy:before {
  content: ''; position: absolute; right: -90px; bottom: -110px; width: 250px; height: 250px; border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 56, 92, .16), transparent 70%); pointer-events: none;
}
.ebp-hero__copy h1 { margin: 0; max-width: 10ch; color: var(--ebp-ink); font-size: clamp(2.8rem, 5vw, 4.75rem); line-height: .98; letter-spacing: -.05em; font-weight: 800; }
.ebp-hero__copy p { max-width: 640px; margin: 0; color: var(--ebp-muted); font-size: 16px; line-height: 1.75; }

.ebp-hero__metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ebp-hero__metrics article, .ebp-hero__spotlight {
  position: relative; border-radius: 28px; background: var(--ebp-surface); border: 1px solid var(--ebp-line); shadow: var(--ebp-shadow-soft);
}
.ebp-hero__metrics article { padding: 18px; }
.ebp-hero__metrics span { display: block; color: var(--ebp-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ebp-hero__metrics strong { display: block; margin-top: 6px; color: var(--ebp-ink); font-size: 24px; line-height: 1.1; font-weight: 800; }
.ebp-hero__spotlight { margin-top: auto; padding: 22px; }
.ebp-hero__spotlight h2 { margin: 10px 0 6px; color: var(--ebp-ink); font-size: 22px; line-height: 1.2; }
.ebp-hero__spotlight p { color: var(--ebp-muted); font-size: 14px; line-height: 1.6; }
.ebp-hero__spotlight-meta, .ebp-hero__spotlight-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ebp-hero__spotlight-meta { flex-wrap: wrap; margin-top: 18px; }
.ebp-hero__spotlight-meta span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--ebp-surface-soft); color: var(--ebp-ink); font-size: 12px; font-weight: 700; }
.ebp-hero__spotlight-footer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ebp-line); }
.ebp-hero__spotlight-footer strong { color: var(--ebp-ink); font-size: 24px; font-weight: 800; }
.ebp-hero__spotlight-footer a { color: var(--ebp-accent-strong); font-size: 13px; font-weight: 800; text-decoration: none; }

.ebp-hero__search-card {
  position: relative; z-index: 1; padding: 32px; border-radius: 40px; background: var(--ebp-surface);
  border: 1px solid var(--ebp-line); box-shadow: var(--ebp-shadow);
}
.ebp-hero__search-card h2 { margin: 12px 0 8px; font-size: 32px; line-height: 1.06; letter-spacing: -.04em; }
.ebp-hero__search-card > p { margin: 0 0 18px; color: var(--ebp-muted); font-size: 14px; line-height: 1.7; }
.ebp-hero-form { display: grid; gap: 16px; }
.ebp-field { display: grid; gap: 8px; }
.ebp-field > span, .ebp-inline-field span, .ebp-budget-control span {
  display: block; color: var(--ebp-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
/* Sheet / Hero form fields — tall bordered style */
.ebp-field input, .ebp-field select, .ebp-sort-select {
  width: 100%; min-height: 54px; border: 1px solid var(--ebp-line); border-radius: 18px;
  background: var(--ebp-surface-soft); padding: 0 16px;
  font-size: 15px; font-weight: 700; color: var(--ebp-ink); outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ebp-field input:focus, .ebp-field select:focus, .ebp-sort-select:focus {
  border-color: var(--ebp-accent);
  box-shadow: 0 0 0 3px var(--ebp-accent-soft);
}
.ebp-prompt-row {
  display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 0 20px; border-radius: 24px;
  border: 1px solid var(--ebp-line); background: var(--ebp-surface-soft);
}
.ebp-prompt-row input { min-height: 0; border: 0; padding: 0; background: transparent; box-shadow: none; font-size: 16px; }
.ebp-search-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -4px; }
.ebp-search-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid rgba(255, 56, 92, .12); background: var(--ebp-accent-soft); color: var(--ebp-accent-strong); font-size: 12px; font-weight: 700;
}
.ebp-search-pill i { color: inherit; }

.ebp-hero-form__grid {
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(140px, .75fr) minmax(140px, .8fr) minmax(140px, .9fr) 178px;
  gap: 12px; align-items: end;
}
/* Light-theme segment/toggle bar */
.ebp-segment, .ebp-view-toggle {
  display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px;
  border-radius: 999px; background: var(--ebp-surface-soft); border: 1px solid var(--ebp-line);
}
.ebp-segment button, .ebp-view-toggle button {
  min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ebp-muted); font-size: 13px; font-weight: 700;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease; cursor: pointer; font-family: inherit;
}
.ebp-segment button.is-active, .ebp-view-toggle button.is-active {
  background: var(--ebp-surface); color: var(--ebp-ink); box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}
.ebp-view-toggle button { width: 38px; height: 38px; padding: 0; }
.ebp-quick-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.ebp-chip-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--ebp-line); background: var(--ebp-surface); color: var(--ebp-ink); font-size: 13px; font-weight: 800;
  transition: all .2s ease;
}
.ebp-chip-button:hover { transform: translateY(-1px); border-color: var(--ebp-accent); background: var(--ebp-surface-soft); box-shadow: var(--ebp-shadow); }

/* ============================================
   SKELETON LOADERS — Shimmer Effect
   ============================================ */
@keyframes ebpShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.ebp-skeleton-card {
  position: relative;
  background: var(--ebp-surface);
  border: 1px solid var(--ebp-line);
  border-radius: 20px;
  overflow: hidden;
  height: 100%;
}

.ebp-skeleton-media {
  height: 200px;
  background: var(--ebp-surface-soft);
  position: relative;
  overflow: hidden;
}

.ebp-skeleton-media::after,
.ebp-skeleton-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: ebpShimmer 1.5s infinite;
}

.dark .ebp-skeleton-media::after,
.dark .ebp-skeleton-line::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
}

.ebp-skeleton-content {
  padding: 16px;
}

.ebp-skeleton-line {
  height: 12px;
  background: var(--ebp-surface-soft);
  margin-bottom: 12px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.ebp-skeleton-line.title { width: 85%; height: 16px; margin-bottom: 16px; }
.ebp-skeleton-line.meta { width: 40%; }
.ebp-skeleton-line.price { width: 30%; height: 20px; margin-top: 20px; }

/* ============================================
   FILTER BAR — Airbnb Light Theme
   White container, individual blocks per filter,
   red active state, clean minimal labels.
   ============================================ */
.ebp-sticky-filters {
  position: sticky !important;
  top: 96px !important;
  z-index: 999;
  padding: 0 !important;
  margin-top: 0 !important;
  background: var(--ebp-surface);
  border-bottom: 1px solid var(--ebp-line);
  transition: all 0.3s ease;
  backdrop-filter: blur(12px);
}
@media (min-width: 1024px) {
  .ebp-sticky-filters { top: 96px !important; margin-top: 0 !important; padding: 0 !important; }
}

/* === Main Row === */
.ebp-sticky-filters__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 1160px;
  margin: 0 auto;
  background: var(--ebp-surface);
  border: 1px solid var(--ebp-line);
  border-radius: 16px;
  box-shadow: var(--ebp-shadow);
  overflow: hidden;
}

/* === Each Filter Block (Airbnb style divider pattern) === */
.ebp-inline-field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 6px 16px 8px;
  background: var(--ebp-surface);
  border: 0;
  border-right: 1px solid var(--ebp-line);
  cursor: pointer;
  transition: background 0.15s ease;
}
.ebp-inline-field:last-of-type { border-right: 0; }

.ebp-inline-field:hover {
  background: var(--ebp-surface-soft);
}

.ebp-inline-field.is-active,
.ebp-inline-field:focus-within {
  background: var(--ebp-surface);
  box-shadow: inset 0 0 0 2px var(--ebp-accent);
  border-radius: 14px;
  z-index: 1;
}

/* Label */
.ebp-inline-field > span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 800;
  color: var(--ebp-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}

.ebp-inline-field > span i {
  width: 10px;
  height: 10px;
  color: var(--ebp-accent);
  flex-shrink: 0;
}

/* Input / Select */
.ebp-inline-field input,
.ebp-inline-field select {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ebp-ink);
  outline: none;
  width: 100%;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.ebp-inline-field input::placeholder { color: var(--ebp-muted); font-weight: 500; }
.ebp-inline-field select option { background: #fff; color: #222; }

.ebp-inline-field--small { flex: 0 0 auto; min-width: 105px; }

/* === İŞLEM Segment === */
.ebp-inline-segment {
  display: flex;
  gap: 4px;
  padding: 0;
  background: transparent;
  border: 0;
}

.ebp-inline-segment button {
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ebp-line);
  background: transparent;
  color: var(--ebp-muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: inherit;
}

.ebp-inline-segment button:hover {
  border-color: var(--ebp-ink);
  color: var(--ebp-ink);
}

.ebp-inline-segment button.is-active {
  background: var(--ebp-accent);
  border-color: var(--ebp-accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255,56,92,0.3);
}

/* === Budget Block === */
.ebp-budget-control {
  flex: 0 0 auto;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 6px 16px 8px;
  background: var(--ebp-surface);
  border-right: 1px solid var(--ebp-line);
  transition: background 0.15s;
}
.ebp-budget-control:hover { background: var(--ebp-surface-soft); }

.ebp-budget-control > span {
  font-size: 9px;
  font-weight: 800;
  color: var(--ebp-ink);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ebp-budget-control input[type="range"] {
  width: 100%;
  height: 2px;
  accent-color: var(--ebp-accent);
  cursor: pointer;
  margin: 2px 0 0;
}

.ebp-budget-control strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ebp-ink);
  letter-spacing: -0.01em;
}

/* === Actions === */
.ebp-sticky-filters__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 8px 8px;
  flex-shrink: 0;
}

.ebp-ghost-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  color: var(--ebp-muted);
  border: 1px solid var(--ebp-line);
  transition: all 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.ebp-ghost-toggle i { width: 16px; height: 16px; }
.ebp-ghost-toggle:hover {
  background: var(--ebp-surface-soft);
  border-color: var(--ebp-ink);
  color: var(--ebp-ink);
}
.ebp-ghost-toggle.is-active {
  background: var(--ebp-accent-soft);
  border-color: var(--ebp-accent);
  color: var(--ebp-accent);
}

/* === Airbnb-style "Search" button === */
.ebp-primary-btn.ebp-filter-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: var(--ebp-accent);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(255,56,92,0.35);
  transition: all 0.2s;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.ebp-primary-btn.ebp-filter-submit:hover {
  background: var(--ebp-accent-strong);
  box-shadow: 0 6px 18px rgba(255,56,92,0.45);
  transform: translateY(-1px);
}

/* === Tablet === */
@media (max-width: 1023px) {
  .ebp-sticky-filters__row {
    border-radius: 14px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .ebp-inline-field {
    flex: 1 1 calc(50% - 1px);
    border-right: 1px solid var(--ebp-line);
    border-bottom: 1px solid var(--ebp-line);
  }
  .ebp-budget-control { flex: 1 1 100%; border-right: 0; border-top: 1px solid var(--ebp-line); }
  .ebp-sticky-filters__actions { flex: 1 1 100%; justify-content: flex-end; border-top: 1px solid var(--ebp-line); padding: 10px; }
}

/* === Mobile Pill === */
@media (max-width: 767px) {
  .ebp-sticky-filters {
    top: 60px;
    padding: 8px 0;
    background: transparent;
    border: 0;
  }
  .ebp-sticky-filters__row { display: none !important; }
  .ebp-mobile-search-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--ebp-surface);
    border: 1px solid var(--ebp-line);
    border-radius: 999px;
    box-shadow: var(--ebp-shadow);
    margin: 0 16px;
    cursor: pointer;
  }
  .ebp-mobile-search-pill i { color: var(--ebp-accent); width: 18px; height: 18px; }
  .ebp-mobile-search-pill span {
    font-size: 14px;
    font-weight: 600;
    color: var(--ebp-muted);
  }
}





.ebp-results { padding: 12px 0 52px; }
.ebp-results__top { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.ebp-results__intro h2 { margin: 0 0 6px; font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1; letter-spacing: -.05em; }
.ebp-results__intro p, .ebp-rail__head p, .ebp-trust-card p, .ebp-conversion-panel p, .ebp-side-cta p, .ebp-map-shell__head p, .ebp-empty-state p, .ebp-section-head p {
  margin: 0; color: var(--ebp-muted); font-size: 14px; line-height: 1.75;
}
.ebp-active-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ebp-active-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--ebp-line); background: var(--ebp-surface); color: var(--ebp-ink); font-size: 12px; font-weight: 800;
}
html.dark .ebp-active-chip { background: #262626; border-color: #404040; }
.ebp-active-chip button { width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--ebp-surface-soft); color: var(--ebp-ink); font-size: 11px; cursor: pointer; }
.ebp-results__controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ebp-sort-select { min-width: 200px; border-radius: 999px; }

/* Discovery Chips Style */
.ebp-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--ebp-line);
  background: var(--ebp-surface);
  color: var(--ebp-ink);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1);
  white-space: nowrap;
}
.ebp-quick-chip i { width: 16px; height: 16px; color: var(--ebp-muted); }
.ebp-quick-chip:hover {
  border-color: var(--ebp-ink);
  background: var(--ebp-surface-soft);
  transform: translateY(-1px);
}
.ebp-quick-chip.is-active {
  background: var(--ebp-ink);
  border-color: var(--ebp-ink);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ebp-quick-chip.is-active i { color: #fff; }
html.dark .ebp-quick-chip.is-active {
  background: #fff;
  color: #000;
}
html.dark .ebp-quick-chip.is-active i { color: #000; }

.ebp-results__layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.ebp-listings-grid, .ebp-rail__grid, .ebp-listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .ebp-listings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .ebp-listings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1440px) {
  .ebp-listings-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1700px) {
  .ebp-listings-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.ebp-listings-grid.is-list {
  grid-template-columns: 1fr;
}
.ebp-listings-grid.is-list .eb-card-v2 { display: grid; grid-template-columns: minmax(290px, 350px) minmax(0, 1fr); align-items: stretch; }
.ebp-listings-grid.is-list .eb-card-v2__media { height: 100%; min-height: 100%; aspect-ratio: auto; }
.ebp-listings-grid.is-list .eb-card-v2__content { padding: 20px 22px 20px; }

.ebp-skeleton-media, .ebp-skeleton-line { background: linear-gradient(90deg, #efefef 0%, #e6e6e6 48%, #efefef 100%); background-size: 200% 100%; animation: ebpShimmer 1.4s infinite linear; }
.ebp-skeleton-media { height: 250px; }
.ebp-skeleton-body { padding: 20px; }
.ebp-skeleton-line { height: 14px; border-radius: 999px; margin-bottom: 12px; }
.ebp-skeleton-line.wide { width: 84%; }
.ebp-skeleton-line.medium { width: 62%; }
.ebp-skeleton-line.short { width: 42%; }
@keyframes ebpShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.ebp-empty-state { display: grid; place-items: center; gap: 14px; padding: 64px 18px; border-radius: 32px; background: var(--ebp-surface); border: 1px solid var(--ebp-line); text-align: center; }
.ebp-empty-state__icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: var(--ebp-surface-soft); color: var(--ebp-accent-strong); }
.ebp-empty-state h3, .ebp-hero__search-card h2, .ebp-map-shell__head h3, .ebp-section-head h2, .ebp-rail__head h3, .ebp-conversion-panel h2, .ebp-filter-sheet__head h3 { margin: 0; letter-spacing: -.04em; }
.ebp-empty-state__actions, .ebp-conversion-panel__actions, .ebp-side-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ebp-pagination-wrap { margin-top: 28px; }
.ebp-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ebp-page-btn, .ebp-page-gap { min-width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; }
.ebp-page-btn { border: 1px solid var(--ebp-line); background: #fff; color: var(--ebp-ink); }
.ebp-page-btn.is-active { background: var(--ebp-ink); color: #fff; border-color: var(--ebp-ink); }
.ebp-page-btn[disabled] { opacity: .45; cursor: not-allowed; }
.ebp-page-gap { color: var(--ebp-muted); }

.ebp-map-column { position: sticky; top: 146px; }
.ebp-map-shell, .ebp-rail, .ebp-trust-card, .ebp-conversion-panel {
  border-radius: 32px; background: var(--ebp-surface); border: 1px solid var(--ebp-line); box-shadow: var(--ebp-shadow-soft);
}
.ebp-map-shell { overflow: hidden; }
.ebp-map-shell__head, .ebp-map-shell__footer, .ebp-filter-sheet__head, .ebp-filter-sheet__body { padding: 20px; }
.ebp-map-shell__head {
  display: flex; align-items: start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ebp-line);
}
.ebp-map-shell__head h3 { margin: 8px 0 4px; font-size: 24px; }
.ebp-map-shell__actions { display: flex; align-items: center; gap: 8px; }
.ebp-map-canvas { width: 100%; height: 560px; background: #edf2f7; }
.ebp-side-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ebp-side-metrics article { padding: 14px; border-radius: 20px; background: var(--ebp-surface-soft); }
.ebp-side-metrics span { display: block; color: var(--ebp-muted); font-size: 11px; font-weight: 700; }
.ebp-side-metrics strong { display: block; margin-top: 6px; font-size: 22px; color: var(--ebp-ink); }
.ebp-side-cta {
  margin-top: 18px; padding: 18px; border-radius: 24px; background: linear-gradient(180deg, #fff7f8 0%, #fff 100%);
  border: 1px solid rgba(255,56,92,.12);
}
.ebp-side-cta__actions .ebp-secondary-btn { background: #fff; }

/* === Premium Map Price Pins === */
.ebp-map-pin-wrap {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ebp-map-pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-size: 13px;
  font-weight: 850;
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 4px 12px rgba(0,0,0,0.18), 0 2px 4px rgba(0,0,0,0.1);
  border: 1.5px solid #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

/* Sale: Purple/Indigo */
.ebp-map-pin.is-sale {
  background: #FF385C;
  color: #fff;
  border-color: #FF385C;
}

/* Rent: Emerald/Green */
.ebp-map-pin.is-rent {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

/* Featured/VIP: Amber/Gold */
.ebp-map-pin.is-featured {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

/* Premium İlan Pin */
.ebp-map-pin.is-premium {
  background: linear-gradient(135deg, #f59e0b 0%, #92400e 100%);
  color: #fff;
  border-color: #d97706;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.55);
  font-weight: 900;
  letter-spacing: -.01em;
  min-width: 68px;
}

/* Highlighted (Sync State) */
.ebp-map-pin.is-highlighted,
.ebp-map-pin-wrap:hover .ebp-map-pin {
  transform: scale(1.2) translateY(-4px);
  z-index: 1000;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  filter: brightness(1.1);
}

/* Pointy Indicator Arrow */
.ebp-map-pin::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fff;
  transition: border-top-color 0.2s;
}

.ebp-map-pin.is-sale::after { border-top-color: #FF385C; }
.ebp-map-pin.is-rent::after { border-top-color: #10b981; }
.ebp-map-pin.is-featured::after { border-top-color: #f59e0b; }
.ebp-popup { display: grid; gap: 10px; min-width: 220px; }
.ebp-popup img { width: 100%; height: 120px; object-fit: cover; border-radius: 14px; }
.ebp-popup strong { color: var(--ebp-ink); font-size: 14px; line-height: 1.4; }
.ebp-popup span { color: var(--ebp-muted); font-size: 12px; }
.ebp-popup a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 999px;
  background: var(--ebp-ink); color: #fff; font-size: 12px; font-weight: 800; text-decoration: none;
}

.ebp-recommendations { padding: 44px 0 42px; }
.ebp-section-head { display: grid; gap: 10px; margin-bottom: 22px; }
.ebp-section-head h2 { font-size: clamp(2rem, 3vw, 2.65rem); line-height: 1.04; }
.ebp-rails { display: grid; gap: 24px; }
.ebp-rail { padding: 24px; }
.ebp-rail__head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.ebp-rail__head h3 { margin: 8px 0 0; font-size: 26px; }
.ebp-trust-band { padding: 12px 0 96px; }
.ebp-trust-band__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ebp-trust-card { padding: 24px; }
.ebp-trust-card i { color: var(--ebp-accent-strong); }
.ebp-trust-card h3 { margin: 18px 0 10px; font-size: 22px; letter-spacing: -.04em; }
.ebp-conversion-panel {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; padding: 40px;
  background: var(--ebp-surface-soft);
}
.ebp-conversion-panel h2 { margin: 10px 0 8px; font-size: 32px; line-height: 1.08; }

.ebp-filter-sheet {
  position: fixed; inset: auto 12px 12px auto; width: min(480px, calc(100vw - 24px)); max-height: calc(100vh - 24px);
  padding: 0; border-radius: 32px; border: 1px solid var(--ebp-line); background: var(--ebp-surface); 
  box-shadow: var(--ebp-shadow-lg); transform: translateY(115%); transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 120;
}
body.ebp-sheet-open .ebp-filter-sheet { transform: translateY(0); }
.ebp-sheet-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); backdrop-filter: blur(8px); z-index: 110; opacity: 0; visibility: hidden; transition: all 0.3s; }
body.ebp-sheet-open .ebp-sheet-overlay { opacity: 1; visibility: visible; }
.ebp-filter-sheet__head {
  display: flex; align-items: start; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--ebp-line);
}
.ebp-filter-sheet__head h3 { margin-top: 8px; font-size: 28px; line-height: 1.08; }
.ebp-filter-sheet__body { display: grid; gap: 16px; overflow: auto; max-height: calc(100vh - 132px); }
.ebp-field-grid, .ebp-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ebp-check {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 18px;
  border: 1px solid var(--ebp-line); background: var(--ebp-surface-soft); color: var(--ebp-ink); font-size: 14px; font-weight: 700;
}
.ebp-check input { width: 18px; height: 18px; accent-color: var(--ebp-accent); }
.ebp-filter-sheet__actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; }

.ebp-mobile-dock {
  display: none;
  position: fixed;
  inset: auto 16px 20px;
  z-index: 2000;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.08);
}

.ebp-mobile-dock button, .ebp-mobile-dock a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 58px;
  border-radius: 20px;
  border: 0;
  background: transparent;
  color: var(--ebp-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ebp-mobile-dock .is-active {
  background: var(--ebp-accent-soft);
  color: var(--ebp-accent);
  transform: translateY(-2px);
}

.ebp-mobile-dock i { width: 22px; height: 22px; transition: transform 0.2s; }
.ebp-mobile-dock .is-active i { transform: scale(1.1); }

@media (max-width: 820px) {
  .ebp-mobile-dock { display: grid; }
  .ebp-trust-band { padding-bottom: 120px; }
}

.ebp-search-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--ebp-accent);
  background: var(--ebp-surface);
  color: var(--ebp-accent-strong);
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 4px 12px rgba(255, 56, 92, 0.1);
  animation: ebpPillPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes ebpPillPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.ebp-mobile-only, .ebp-mobile-control { display: none; }

.eb-card-v2 {
  position: relative; display: flex; flex-direction: column; min-height: 100%; overflow: hidden; border-radius: 24px;
  background: var(--ebp-surface); border: 1px solid var(--ebp-line); box-shadow: var(--ebp-shadow);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.eb-card-v2:hover, .eb-card-v2.is-highlighted {
  transform: translateY(-2px); border-color: var(--ebp-line-strong); box-shadow: 0 14px 34px rgba(0,0,0,.1);
}
.eb-card-v2__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f1f1f1; }
.eb-card-v2__media a { display: block; width: 100%; height: 100%; }
.eb-card-v2__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.eb-card-v2:hover .eb-card-v2__media img { transform: scale(1.03); }
.eb-card-v2__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 8px; z-index: 2; }

.eb-badge, .eb-badge--type {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 10px; font-weight: 850; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.eb-badge {
  border: 1px solid rgba(0,0,0,.08); background: rgba(255,255,255,0.95); color: #222; backdrop-filter: blur(8px);
}
.eb-badge--verified { background: #222; border-color: transparent; color: #fff; }
.eb-badge--vip { background: #fff1f2; color: #E31C5F; border: 1px solid rgba(255, 56, 92, 0.2); }
.eb-badge--video, .eb-badge--cobroke, .eb-badge--new { background: #fff; color: #222; border-color: #eee; }
.eb-badge--type {
  position: absolute; right: 60px; top: 14px; z-index: 2; border: 1.5px solid #222;
  background: #222; color: #fff;
}
html.dark .eb-badge { background: #262626; color: #fff; border-color: rgba(255,255,255,0.1); }
html.dark .eb-badge--type { background: #fff; color: #222; border-color: #fff; }
html.dark .eb-badge--vip { background: #4c0519; color: #fda4af; border-color: #881337; }
html.dark .eb-badge--verified { background: #FF385C; color: #fff; }

.eb-card-v2__photo-count {
  position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.92); color: var(--ebp-ink); font-size: 11px; font-weight: 800;
}
.eb-card-v2__fav {
  position: absolute; right: 14px; top: 14px; z-index: 3; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid rgba(0,0,0,.06); background: rgba(255,255,255,0.96);
  color: #222; box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: all 0.2s;
}
html.dark .eb-card-v2__fav { background: rgba(38,38,38,0.95); color: #fff; border-color: rgba(255,255,255,0.1); }
.eb-card-v2__fav:hover { transform: scale(1.1); }
.eb-card-v2__fav.active { background: #FF385C; color: #fff; border-color: #FF385C; }

.eb-card-v2__content { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: 18px 18px 20px; }
.eb-card-v2__meta-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.eb-card-v2__eyebrow { color: var(--ebp-muted); font-size: 13px; font-weight: 700; line-height: 1.45; }
.eb-card-v2__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ebp-ink); font-size: 13px; font-weight: 700; white-space: nowrap; }
.eb-card-v2__rating i { color: var(--ebp-accent); }
.eb-card-v2__title { margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.03em; }
.eb-card-v2__title a { color: var(--ebp-ink); text-decoration: none; }
.eb-card-v2__location { display: inline-flex; align-items: center; gap: 8px; color: var(--ebp-muted); font-size: 13px; font-weight: 700; }
.eb-card-v2__location--subtle { color: var(--ebp-muted); }
.eb-card-v2__summary { margin: 0; color: var(--ebp-muted); font-size: 13px; line-height: 1.55; }

.eb-card-v2__features {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 14px; border-top: 1px solid var(--ebp-line);
}
.eb-feature {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 14px;
  background: var(--ebp-surface-soft); color: var(--ebp-ink-soft); font-size: 12px; font-weight: 700;
}
.eb-feature i { color: var(--ebp-accent-strong); }
.eb-card-v2__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eb-card-v2__chip {
  display: inline-flex; align-items: center; min-height: 30px; padding: 0 10px; border-radius: 999px;
  border: 1px solid #f0f0f0; background: var(--ebp-surface-soft); color: var(--ebp-ink-soft); font-size: 11px; font-weight: 700;
}

.eb-card-v2__advisor { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #f1f1f1; }
.eb-card-v2__advisor-img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.eb-card-v2__advisor-info { flex: 1; }
.eb-card-v2__advisor-name { color: var(--ebp-ink); font-size: 14px; font-weight: 800; }
.eb-card-v2__advisor-badge, .eb-card-v2__advisor-meta {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ebp-muted); font-size: 11px; font-weight: 700; margin-top: 4px;
}
.eb-card-v2__advisor-badge i, .eb-card-v2__advisor-meta i { color: var(--ebp-accent-strong); }

.eb-card-v2__footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.eb-card-v2__price-block { display: grid; gap: 4px; }
.eb-card-v2__price { color: var(--ebp-ink); font-size: 23px; line-height: 1; letter-spacing: -.04em; font-weight: 800; }
.eb-card-v2__price-note { color: var(--ebp-muted); font-size: 12px; font-weight: 700; }
.eb-card-v2__actions { display: flex; align-items: center; gap: 8px; }
.eb-card-v2__actions.is-single { width: auto; }
.eb-card-v2__action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--ebp-line); background: #fff; color: var(--ebp-ink); text-decoration: none; font-size: 12px; font-weight: 800;
  transition: all .2s ease; cursor: pointer; font-family: inherit;
}
.eb-card-v2__action:hover { border-color: var(--ebp-ink); }
/* Airbnb-style — primary CTA is red */
.eb-card-v2__action--primary { min-width: 92px; background: var(--ebp-accent); color: #fff; border-color: var(--ebp-accent); }
.eb-card-v2__action--primary:hover { background: var(--ebp-accent-strong); border-color: var(--ebp-accent-strong); }
.eb-card-v2__action--whatsapp, .eb-card-v2__action--call { width: 40px; padding: 0; }
.eb-card-v2__action--whatsapp { color: #12835f; border-color: rgba(18,131,95,.2);  }
.eb-card-v2__action--call { color: var(--ebp-accent); border-color: rgba(255,56,92,.2); }

@media (max-width: 1320px) {
  .ebp-hero__grid { grid-template-columns: 1fr; }
  .ebp-hero__copy h1 { max-width: none; }
  .ebp-hero:after { inset: 120px auto auto 62%; }
}

@media (max-width: 1240px) {
  .ebp-results__layout { grid-template-columns: 1fr; }
  .ebp-map-column { position: relative; top: 0; }
}

@media (max-width: 1120px) {
  .ebp-hero-form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ebp-listings-grid, .ebp-rail__grid, .ebp-loading-grid, .ebp-trust-band__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1024px) {
  .ebp-sticky-filters { top: 68px; }
  .ebp-map-column { display: none; }
  body.ebp-map-open .ebp-map-column {
    display: block; position: fixed; inset: 0; z-index: 105; padding: 12px;
    background: rgba(34,34,34,.26); backdrop-filter: blur(6px);
  }
  body.ebp-map-open .ebp-map-shell { height: calc(100vh - 24px); }
  body.ebp-map-open .ebp-map-canvas { height: calc(100vh - 320px); }
  .ebp-mobile-only, .ebp-mobile-control { display: inline-flex; }
}

@media (max-width: 820px) {
  .ebp-shell { width: min(100%, calc(100% - 20px)); }
  .ebp-hero { padding-top: 18px; }
  .ebp-hero:before, .ebp-hero:after { display: none; }
  .ebp-hero__copy, .ebp-hero__search-card { padding: 22px; border-radius: 28px; }
  .ebp-hero__copy h1 { font-size: clamp(2.5rem, 10vw, 3.8rem); }
  .ebp-hero__metrics, .ebp-field-grid, .ebp-checkbox-grid, .ebp-side-metrics, .ebp-trust-band__grid, .ebp-listings-grid, .ebp-rail__grid, .ebp-loading-grid {
    grid-template-columns: 1fr;
  }
  .ebp-results__top, .ebp-rail__head, .ebp-conversion-panel { flex-direction: column; align-items: stretch; }
  .ebp-sticky-filters { position: static; padding-bottom: 12px; }
  .ebp-sticky-filters__row { border-radius: 16px; }
  /* Full width on mobile for filter fields but NOT the submit button */
  .ebp-secondary-btn, .ebp-mobile-control, .ebp-inline-field, .ebp-budget-control { width: 100%; }
  .ebp-ghost-toggle { flex: 1 1 calc(33% - 8px); }
  .ebp-sort-select { width: 100%; border-radius: 14px; }
  .ebp-mobile-dock { display: grid; }
}

/* === Live Discovery UI === */
.ebp-map-refresh-btn {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ebp-line);
  color: #222;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ebp-map-refresh-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.ebp-map-refresh-btn:hover {
  background: #fff;
  border-color: var(--ebp-ink);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.ebp-map-refresh-btn i { color: var(--ebp-accent); }

.ebp-quick-discovery {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 4px;
  margin-top: -8px;
  -webkit-overflow-scrolling: touch;
}

.ebp-quick-discovery::-webkit-scrollbar { display: none; }

.ebp-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  background: var(--ebp-surface);
  border: 1px solid var(--ebp-line);
  color: var(--ebp-ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
}
html.dark .ebp-quick-chip { background: #1e293b; border-color: #334155; color: #fff; }
html.dark .ebp-quick-chip:hover { background: #334155; border-color: #475569; }

.ebp-quick-chip:hover {
  border-color: var(--ebp-ink);
  background: var(--ebp-surface-soft);
}

.ebp-quick-chip.is-active {
  background: var(--ebp-ink);
  color: #fff;
  border-color: var(--ebp-ink);
}

.ebp-quick-chip i { width: 14px; height: 14px; color: var(--ebp-accent); }
.ebp-quick-chip.is-active i { color: #fff; }

/* ── Premium İlan Sistemi ─────────────────────────────────── */
.eb-badge--premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  border-color: rgba(245,158,11,.3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 900;
  letter-spacing: .06em;
}
.eb-badge--premium i { width: 12px; height: 12px; }

/* ── Premium Card V2 Enhancements ── */
.eb-card-v2 {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, box-shadow;
}

.eb-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.eb-card-v2__media img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.eb-card-v2:hover .eb-card-v2__media img {
    transform: scale(1.08);
}

.eb-card-v2__title a {
    transition: color 0.2s ease;
}

.eb-card-v2__title a:hover {
    color: #FF385C;
}

.eb-card-v2__action--primary {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.eb-card-v2__action--primary:hover {
    background-color: #E31C5F;
    transform: scale(1.02);
}

@media (max-width: 1024px) {
  .ebp-map-refresh-btn { top: 20px; }
}

@media (max-width: 640px) {
  .ebp-map-canvas { height: 420px; }
  .ebp-filter-sheet { inset: auto 0 0; width: calc(100vw - 16px); margin: 8px; }
  .ebp-listings-grid.is-list .eb-card-v2, .eb-card-v2 { display: flex; flex-direction: column; }
  .ebp-listings-grid.is-list .eb-card-v2__media { height: auto; aspect-ratio: 4 / 3; }
  .ebp-listings-grid.is-list .eb-card-v2__content, .eb-card-v2__content { padding: 18px; }
  .eb-card-v2__footer { flex-direction: column; align-items: stretch; }
  .eb-card-v2__actions { width: 100%; justify-content: space-between; }
  .eb-card-v2__action--primary { flex: 1; }
  .eb-badge--type { right: 58px; }
}

/* ── Listings page: hide footer floating nav (page has its own dock) ── */
.eb-page-listings .eb-mobile-floating-nav { display: none !important; }

/* ── Extra bottom padding so content doesn't hide behind ebp-mobile-dock ── */
@media (max-width: 820px) {
  .ebp-listings-page .ebp-results { padding-bottom: 120px; }
  .ebp-listings-page { padding-top: 0; }
}

/* ── Desktop: clear fixed header (80px) ── */
@media (min-width: 821px) {
  .ebp-listings-page { padding-top: 0 !important; }
  .ebp-sticky-filters { top: 96px; }
}

/* ── Safari backdrop-filter fix (both prefixed + unprefixed required) ── */
.ebp-map-refresh-btn {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.ebp-mobile-dock {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* ── Remove obsolete webkit-overflow-scrolling (handled by momentum scrolling natively) ── */
.ebp-quick-discovery { scroll-behavior: smooth; }

/* ── Premium Marker Clusters ── */
.ebp-cluster-overlay {
    background: transparent;
    border: none;
}

.ebp-cluster {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FF385C;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.2), 0 8px 16px rgba(0,0,0,0.15);
    border: 2px solid #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.ebp-cluster:hover {
    transform: scale(1.1);
    background: #E31C5F;
    box-shadow: 0 0 0 6px rgba(255, 56, 92, 0.3), 0 12px 20px rgba(0,0,0,0.2);
}

.ebp-cluster-small { width: 34px; height: 34px; font-size: 12px; }
.ebp-cluster-medium { width: 42px; height: 42px; font-size: 14px; box-shadow: 0 0 0 5px rgba(255, 56, 92, 0.2); }
.ebp-cluster-large { width: 50px; height: 50px; font-size: 16px; box-shadow: 0 0 0 6px rgba(255, 56, 92, 0.2); }

/* Dark mode adjustments for clusters */
.dark .ebp-cluster {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 4px rgba(255, 56, 92, 0.15), 0 10px 20px rgba(0,0,0,0.4);
}

/* ── Discovery Chips Enhancement ── */
.ebp-quick-chip {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ebp-quick-chip:hover:not(.is-active) {
    border-color: rgba(255, 56, 92, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.ebp-quick-chip:active {
    transform: scale(0.96);
}

.ebp-quick-chip.is-active {
    animation: chipSelected 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chipSelected {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ── Premium Mobile UI ────────────────────────────────────── */

/* Mobile Search Pill */
.ebp-mobile-search-pill {
    display: none;
    position: fixed;
    top: 72px; /* Positioned below the 64px fixed header */
    left: 12px;
    right: 12px;
    z-index: 9999;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: var(--ebp-surface);
    border: 1px solid var(--ebp-line);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    transform: translateY(-100px);
    opacity: 0;
    width: auto;
    appearance: none;
    outline: none;
}

.ebp-mobile-search-pill.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.ebp-m-pill-icon {
    width: 36px;
    height: 36px;
    background: var(--ebp-surface-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebp-accent);
}

.ebp-m-pill-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
}

.ebp-m-pill-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--ebp-ink);
    line-height: 1.2;
}

.ebp-m-pill-meta {
    font-size: 11px;
    color: var(--ebp-muted);
    font-weight: 600;
}

.ebp-m-pill-filter {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ebp-ink-soft);
}

/* Mobile Dock Enhancement */
.ebp-mobile-dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--ebp-line);
    display: none;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 12px max(8px, env(safe-area-inset-bottom));
    gap: 4px;
}

.ebp-dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--ebp-muted);
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
}

.ebp-dock-item i {
    width: 22px;
    height: 22px;
    transition: transform 0.2s ease;
}

.ebp-dock-item span {
    font-size: 10px;
    font-weight: 700;
}

.ebp-dock-item.is-active {
    color: var(--ebp-accent);
}

.ebp-dock-item:active i {
    transform: scale(0.9);
}

.ebp-dock-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--ebp-accent);
}

.ebp-dock-plus {
    width: 44px;
    height: 44px;
    background: var(--ebp-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.3);
    margin-top: -16px;
}

.ebp-dock-plus i {
    width: 20px;
    height: 20px;
}

.ebp-dock-action span {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

/* Filter Sheet Refinement */
.ebp-filter-sheet {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 200;
    background: var(--ebp-surface);
    border-radius: 24px 24px 0 0;
    display: flex;
    flex-direction: column;
    max-height: 92vh;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

body.ebp-sheet-open .ebp-filter-sheet {
    transform: translateY(0);
}

.ebp-filter-sheet__head {
    padding: 20px 24px;
    border-bottom: 1px solid var(--ebp-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ebp-filter-sheet__body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.ebp-filter-sheet__foot {
    padding: 16px 24px max(16px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--ebp-line);
    background: var(--ebp-surface);
    display: flex;
    gap: 12px;
}

.ebp-sheet-section-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: var(--ebp-ink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.ebp-mobile-segments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--ebp-surface-soft);
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
}

.ebp-m-seg-btn {
    border: none;
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ebp-muted);
    cursor: pointer;
    transition: all 0.2s;
}

.ebp-m-seg-btn.is-active {
    background: var(--ebp-surface);
    color: var(--ebp-ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ebp-sheet-checkbox {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--ebp-surface-soft);
    border-radius: 12px;
    cursor: pointer;
}

.ebp-sheet-checkbox span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ebp-ink-soft);
}

.ebp-sheet-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--ebp-accent);
}

@media (max-width: 767px) {
    .ebp-mobile-dock {
        display: grid;
    }
    .ebp-mobile-search-pill {
        display: flex;
    }
    .ebp-sticky-filters {
        display: none !important;
    }
}
