:root {
  --brand-primary: #0d6efd;
  --brand-accent: #ffc107;
}

body {
  background: #f3f5f9;
}

a {
  text-decoration: none;
}

.container-fluid { max-width: 1200px; }

.navbar-brand .brand-icon {
  font-size: 1.4rem;
}

.card-hover:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08);
  transform: translateY(-2px);
  transition: all 0.2s ease-in-out;
}

/* MAP */
.leaflet-container {
  min-height: 520px;
  border-radius: 12px;
  box-shadow: 0 0 30px rgba(0,0,0,0.05);
  position: relative;
}
#map { width: 100%; height: 520px; }

/* Eski marker base (şimdilik dursun) */
.custom-div-icon .marker-pin {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.custom-div-icon .marker-label {
  position: absolute;
  top: -10px;
  left: 8px;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
}

.badge-pill { border-radius: 50rem; }

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 0.25rem 0.75rem rgba(0,0,0,0.05);
  margin-bottom: 10px;
}
.meta-chip {
  background: #e7f1ff;
  color: #0d6efd;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  margin-right: 6px;
}

.busy-chart {
  width: 100%;
  max-width: 100%;
  height: 260px;
  max-height: 300px;
  display: block;
}

.extra-panel {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f8f9fb;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.extra-row {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.extra-label {
  font-weight: 700;
  color: #0d6efd;
  word-break: break-word;
}
.extra-value {
  color: #333;
  word-break: break-word;
}
.photo-frame {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

/* ========= DROPZONE ========= */
#dzUpload {
  border: 2px dashed #c9d3e0 !important;
  border-radius: 12px;
  background: #f8fafc;
  padding: 35px 20px;
  cursor: pointer;
  transition: 0.25s ease;
}
#dzUpload:hover {
  background: #f1f5f9;
  border-color: #0d6efd !important;
}
#dzUpload.dz-started {
  padding: 20px;
}
#dzUpload .dz-message {
  font-size: 1rem;
  color: #6c7a91;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
#dzUpload .dz-message svg {
  width: 44px;
  height: 44px;
  opacity: 0.5;
}
/* default ikonları kapat */
#dzUpload .dz-default.dz-message {
  background: none !important;
  border: none !important;
  padding: 0 !important;
}
#dzUpload .dz-default.dz-message span,
#dzUpload .dz-default.dz-message img,
#dzUpload .dz-default.dz-message .dz-button {
  display: none !important;
}
/* success / error ikonları gizle */
#dzUpload .dz-preview .dz-success-mark,
#dzUpload .dz-preview .dz-error-mark {
  display: none !important;
}
/* preview */
#dzUpload .dz-preview {
  display: inline-block;
  margin: 10px 0;
}
#dzUpload .dz-preview .dz-image {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  overflow: hidden;
}
#dzUpload .dz-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#dzUpload .dz-preview .dz-details {
  display: none;
}
#dzUpload .dz-error-message {
  display: none !important;
}
/* sil butonu */
#dzUpload .dz-remove {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #e63946;
  color: #fff !important;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
#dzUpload .dz-remove:hover {
  background: #c62828;
}

.hero-img {
  border-radius: 12px;
  max-height: 240px;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}
.hero-img.minimal {
  max-height: 200px;
  width: 220px;
  object-fit: cover;
}

.table-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.05);
}

.two-col-list { columns: 2; column-gap: 16px; }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.avatar.placeholder { color: #6c757d; }

.review-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0.25rem 0.5rem rgba(0,0,0,0.08);
}

.selectable-tag {
  cursor: pointer;
  border: 1px solid #dee2e6;
  border-radius: 999px;
  padding: 6px 10px;
}
.selectable-tag.active {
  background: #0d6efd;
  color: #fff;
  border-color: #0d6efd;
}

.table-card h6,
.table-card h5 { font-weight: 700; }

.map-card { max-width: 260px; }

/* ===========================
   3D SINGLE PIN – SENDKİ GÖRSELE YAKIN
   =========================== */
.marker-3d-icon {
  position: relative;
}

.pin-3d {
  position: relative;
  width: 44px;
  height: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pin-3d-main {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 10%;
  transform: rotate(-45deg);
  background: radial-gradient(circle at 30% 15%, #ffffff, #5b8dff 55%, #0040d0 100%);
  box-shadow: 0 10px 24px rgba(15,23,42,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pin-3d-main::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.25));
}
.pin-3d-text {
  position: relative;
  transform: rotate(45deg);
  color: #0b1220;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(255,255,255,0.7);
}
.pin-3d-shadow {
  margin-top: 4px;
  width: 30px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15,23,42,0.4), transparent 70%);
  opacity: 0.7;
}

/* Altın tonlu pin (kuaför vs.) */
.pin-3d.pin-3d-gold .pin-3d-main {
  background: radial-gradient(circle at 30% 15%, #fff7e6, #fbbf24 55%, #b45309 100%);
}

/* Marker aktifken öne çıksın */
.leaflet-marker-icon.marker-active .pin-3d-main {
  transform: rotate(-45deg) translateY(-2px) scale(1.12);
  box-shadow: 0 16px 30px rgba(15,23,42,0.65);
  z-index: 1000;
}

/* ===========================
   3D CLUSTER – DROP STYLE
   =========================== */
.cluster-pill-wrapper {
  pointer-events: auto;
}

.cluster-drop {
  position: relative;
  width: 52px;
  height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cluster-drop-main {
  width: 52px;
  height: 52px;
  border-radius: 50% 50% 50% 12%;
  transform: rotate(-45deg);
  box-shadow: 0 12px 28px rgba(15,23,42,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cluster-drop-main::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 15%, rgba(255,255,255,0.9), transparent 65%);
}
.cluster-count {
  position: relative;
  transform: rotate(45deg);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  text-shadow: 0 1px 3px rgba(15,23,42,0.85);
}
.cluster-drop-shadow {
  margin-top: 4px;
  width: 32px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15,23,42,0.55), transparent 70%);
  opacity: 0.85;
}

/* renk seviyeleri */
.cluster-lv1 .cluster-drop-main {
  background: radial-gradient(circle at 30% 15%, #e0edff, #2563eb 55%, #1d4ed8 100%);
}
.cluster-lv2 .cluster-drop-main {
  background: radial-gradient(circle at 30% 15%, #e6fff6, #10b981 55%, #059669 100%);
}
.cluster-lv3 .cluster-drop-main {
  background: radial-gradient(circle at 30% 15%, #fff3e6, #f97316 55%, #ea580c 100%);
}
.cluster-lv4 .cluster-drop-main {
  background: radial-gradient(circle at 30% 15%, #ffe5e5, #ef4444 55%, #b91c1c 100%);
}

/* ===========================
   ROTA ÇİZGİSİ + KULLANICI
   =========================== */
.leaflet-overlay-pane .route-line-3d {
  stroke: #2563eb;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 3px 5px rgba(15,23,42,0.55));
}

.user-location-marker {
  filter: drop-shadow(0 3px 6px rgba(37,99,235,0.65));
}

/* ===========================
   ROUTE BOX (FLOATING PANEL)
   =========================== */
.route-box {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1100;
  max-width: 360px;
  width: calc(100% - 40px);
}
.route-box-inner {
  background: rgba(17, 24, 39, 0.96);
  color: #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 35px rgba(15,23,42,0.65);
  padding: 10px 12px;
  font-size: 0.82rem;
}
.route-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.route-box-title {
  font-weight: 700;
  font-size: 0.9rem;
}
.route-box-close {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.route-box-close:hover {
  color: #f9fafb;
}
.route-box-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.route-label {
  color: #9ca3af;
}
.route-value {
  font-weight: 600;
}
.route-box-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.route-box-actions .btn-sm {
  font-size: 0.75rem;
  padding: 3px 8px;
  flex: 1 1 32%;
  white-space: nowrap;
}

/* ===========================
   MAP POPUP KARTI
   =========================== */
.map-card-pro {
  font-size: 0.85rem;
}

.map-card-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}
.map-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1f2933;
}
.map-card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-card-rating-sub {
  font-size: 0.75rem;
  color: #6c757d;
}
.map-card-body {
  margin-top: 4px;
}
.map-card-cat {
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
}
.map-card-address {
  font-size: 0.8rem;
  color: #4b5563;
}
.map-card-route-info {
  border-radius: 8px;
  background: #f3f4ff;
  padding: 6px 8px;
}
.map-card-actions .btn-xs {
  padding: 3px 8px;
  font-size: 0.75rem;
}

/* =======================
   YOĞUN SAATLER – PRO UI
   ======================= */

/* Tabs */
.busy-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.busy-tab-btn {
    padding: 8px 18px;
    border-radius: 12px;
    border: 1px solid #d5d9e2;
    background: #f4f6f9;
    color: #444;
    font-weight: 600;
    cursor: pointer;
    transition: .25s;
}

.busy-tab-btn:hover {
    background: #e7eaf0;
}

.busy-tab-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 16px rgba(13,110,253,.35);
}

/* Panel */
.busy-panel {
    background: #fff;
    border: 1px solid #eee;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 3px 15px rgba(0,0,0,.07);
    animation: fadeIn .25s ease;
}
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }

.busy-container {
    display: flex;
}

/* --- MODERN SLIM SIDEBAR --- */
.busy-side {
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 10px;
}

.busy-side-btn {
    padding: 10px 14px;
    border-radius: 8px;
    background: #f5f6f7;
    border: 1px solid #e3e4e6;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: 0.15s ease;
    text-align: left;
}

.busy-side-btn:hover {
    background: #eef0f2;
    border-color: #d6d8da;
}

.busy-side-btn.active {
    background: #e8f1ff;
    border-color: #b7d4ff;
    color: #0d6efd;
    box-shadow: inset 0 0 0 1px #0d6efd33;
}

/* SAĞ PANEL */
.busy-content {
    flex: 1;
}

.busy-panel {
    display: none;
}

.busy-panel.active {
    display: block;
}

/* Heatmap bar */
.heatmap-row {
    display: flex;
    margin-top: 15px;
    gap: 2px;
}
.heatmap-cell {
    flex: 1;
    height: 8px;
    border-radius: 3px;
}

/* Legend */
.busy-legend {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.busy-legend span {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.busy-legend i {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

/* Busy chart container sabit yükseklik */
.busy-chart-wrapper {
    height: 320px;
    margin-bottom: 20px;
}

/* Canvas her zaman container'a otursun */
.busy-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

#busyCompareChart {
    width: 100% !important;
    height: 320px !important;
}

/* HEATMAP */
.heatmap-row {
    display: grid;
    grid-template-columns: repeat(18, 1fr);
    gap: 6px;
}

.heat-box {
    width: 100%;
    padding-top: 100%;
    border-radius: 6px;
    position: relative;
}

.heat-box span {
    position: absolute;
    bottom: 3px;
    left: 4px;
    font-size: 10px;
    color: #fff;
    opacity: 0.9;
}

.lazy-img {
    transition: opacity .4s ease;
    opacity: 1;
}
.lazy-img.fade-in {
    opacity: 0.5;
}

.iti {
	display: inherit;
}	

/* MOBIL */
@media(max-width: 768px) {
    .busy-container {
        flex-direction: column;
    }
    .busy-side {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 6px;
    }

    .busy-side-btn {
        flex: 1;
        white-space: nowrap;
        text-align: center;
    }
}

/* küçük ekran */
@media (max-width: 576px){
  .map-card { max-width: 220px; }
  .map-card-actions .btn-xs {
    width: 100%;
  }
  .route-box {
    bottom: 10px;
    width: calc(100% - 24px);
  }
  .route-box-actions .btn-sm {
    flex: 1 1 48%;
  }
}

/* Mobilde grafik daha küçük ve dikey stretch yapmasın */
@media (max-width: 576px) {
  .busy-chart {
    height: 300px !important;
    max-height: 300px !important;
  }
}