/* views.css — View'a özgü stiller: projects, detail, log, login, bölge, intro animasyonu */

/* Şantiye kartları */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.project-card {
  padding: 16px;
  cursor: pointer;
  transition: 0.15s;
  text-align: left;
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.project-card:active {
  transform: translateY(0);
}
.project-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Hava durumu chip + tooltip */
.hava-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--card2);
  border: 1px solid var(--border);
  font-size: 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.hava-chip.btn-gps {
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
}
.hava-chip.btn-gps:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(132, 204, 22, 0.08);
}
.hava-chip.loading {
  animation: havaSpin 1s linear infinite;
}
@keyframes havaSpin {
  to {
    transform: rotate(360deg);
  }
}
/* Tooltip: fixed konumlu, kart sınırını taşmaz */
.hava-tip {
  position: fixed;
  background: #1e293b;
  color: #fff;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 1000;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  min-width: 140px;
}
.hava-tip.show {
  opacity: 1;
  pointer-events: auto;
}
.hava-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: var(--arrow-left, 50%);
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}
.hava-tip.below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #1e293b;
}
.hava-tip-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #cbd5e1;
}
.hava-tip-row b {
  color: #fff;
  font-weight: 600;
}
.hava-tip-head {
  color: #fff;
  font-weight: 600;
  margin-bottom: 4px;
  text-align: center;
}

.project-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin-top: 10px;
  overflow: hidden;
}
.project-bar > div {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s;
}
.project-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-d);
  margin-top: 6px;
}

/* İstatistik kartları */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 600;
}
.stat-value {
  font-size: 24px;
  font-weight: 800;
  margin-top: 6px;
  line-height: 1.1;
}

/* Kayıt kartları */
.records-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.record-card {
  padding: 0;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.record-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 14px;
  cursor: pointer;
  user-select: none;
  background: var(--bg-warn);
  transition: background 0.15s;
  border-radius: var(--radius);
}
.record-card-head.open {
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
}
.record-card-head:hover {
  background: var(--bg-warn-2);
}
.record-card-head.open:hover {
  background: var(--card2);
}
.record-card-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}
.record-card-body.closed {
  display: none;
}
.record-title {
  font-size: 16px;
  font-weight: 800;
  color: #78350f;
  margin-top: 2px;
}
.record-card-head.open .record-title {
  color: var(--text);
}
.record-meta {
  font-size: 11px;
  color: #92400e;
  margin-top: 3px;
}
.record-card-head.open .record-meta {
  color: var(--muted);
}
.record-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.record-progress-bar {
  flex: 1;
  max-width: 120px;
  height: 4px;
  border-radius: 999px;
  background: rgba(146, 64, 14, 0.2);
  overflow: hidden;
}
.record-progress-bar > div {
  height: 100%;
  background: var(--accent);
  transition: width 0.4s;
}
.record-progress-text {
  font-size: 10px;
  font-weight: 700;
  color: #78350f;
}
.record-card-head.open .record-progress-text {
  color: var(--accent-d);
}
.record-card-head.open .record-progress-bar {
  background: var(--border);
}

/* Aşama kartları (detay view içi) — PC ve mobilde aynı: alt alta tek kolon
   Eskiden PC'de 3 kolon idi; çok aşamalı kayıtlarda yatay sığmıyordu. */
.stages-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}
.stage-card {
  background: var(--card2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
}
.stage-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}
.stage-card-title {
  font-size: 12px;
  font-weight: 700;
}

/* Log */
.log-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.log-filter {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  color: var(--text);
}
.log-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}
.log-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--card);
}
.log-table th {
  background: var(--card2);
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 600;
}
.log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  max-width: 200px;
}
.log-table td:last-child {
  max-width: 250px;
  line-height: 1.7;
}
.log-table tr:last-child td {
  border-bottom: none;
}
.log-table tr:hover td {
  background: var(--card2);
}
/* Mobil log kartları */
.log-cards {
  display: none;
  flex-direction: column;
  gap: 10px;
}
.log-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.log-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
}
.log-card-tarih {
  font-size: 11px;
  color: var(--muted);
}
.log-card-title {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}
.log-card-meta {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px;
}
.log-card-meta b {
  color: var(--text);
}

/* ── Intro Animasyonu (kurumsal logo) ─────────────────────────────────── */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.intro-screen.intro-out {
  opacity: 0;
  pointer-events: none;
}
.intro-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(
    ellipse 60% 50% at 50% 50%,
    #f8fafc 0%,
    #eef2f7 50%,
    #ffffff 100%
  );
  animation: iBgPulse 3.4s ease-out forwards;
}
.intro-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(27, 44, 94, 0.05) 1px, transparent 1px) 0 0 /
      100% 56px,
    linear-gradient(90deg, rgba(27, 44, 94, 0.05) 1px, transparent 1px) 0 0 /
      56px 100%;
  mask-image: radial-gradient(
    ellipse 50% 45% at 50% 50%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 50% 45% at 50% 50%,
    #000 30%,
    transparent 75%
  );
  opacity: 0;
  animation: iGridIn 0.8s ease 0.15s forwards;
}
@keyframes iBgPulse {
  0% {
    filter: brightness(0.96);
  }
  40% {
    filter: brightness(1.02);
  }
  100% {
    filter: brightness(1);
  }
}
@keyframes iGridIn {
  to {
    opacity: 0.6;
  }
}

.intro-skip {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  z-index: 3;
  background: rgba(27, 44, 94, 0.06);
  border: 1px solid rgba(27, 44, 94, 0.18);
  color: #1b2c5e;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  font-family: "Segoe UI", sans-serif;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: 0.2s;
  opacity: 0;
  animation: iSkipShow 0.4s ease 0.9s forwards;
}
.intro-skip:hover {
  background: rgba(27, 44, 94, 0.12);
  color: #0a173a;
  border-color: rgba(27, 44, 94, 0.35);
}
@keyframes iSkipShow {
  to {
    opacity: 1;
  }
}

.intro-stage {
  position: relative;
  width: min(94vw, 1000px);
  aspect-ratio: 1000 / 320;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.intro-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 6px 18px rgba(27, 44, 94, 0.15));
}

.i-ring-blue {
  stroke-dasharray: 754;
  stroke-dashoffset: -754;
  animation: iRingDraw 1.4s cubic-bezier(0.65, 0.05, 0.3, 1) 0.25s forwards;
}
.i-ring-red {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: iRingRedDraw 0.45s cubic-bezier(0.65, 0.05, 0.3, 1) 1.55s forwards;
}
@keyframes iRingDraw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes iRingRedDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.i-ring-tip {
  opacity: 0;
  animation: iTipPulse 1s ease 1.55s forwards;
}
@keyframes iTipPulse {
  0% {
    opacity: 0;
    transform: scale(0.4);
  }
  30% {
    opacity: 1;
    transform: scale(1.3);
  }
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}

.i-letter {
  opacity: 0;
  animation: iLetterIn 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.i-A {
  animation-delay: 1.95s;
}
.i-S {
  animation-delay: 2.2s;
}
.i-E {
  animation-delay: 2.4s;
}
.i-L {
  animation-delay: 2.6s;
}
@keyframes iLetterIn {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-6px);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateX(0);
  }
}

.i-underline {
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: iUnderDraw 0.8s cubic-bezier(0.6, 0.05, 0.3, 1) 2.85s forwards;
}
@keyframes iUnderDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.i-group {
  opacity: 0;
  letter-spacing: 18px;
  transform: translateY(4px);
  animation: iGroupIn 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 3.2s forwards;
}
@keyframes iGroupIn {
  to {
    opacity: 1;
    letter-spacing: 6px;
    transform: translateY(0);
  }
}

.i-sweep {
  position: absolute;
  top: 50%;
  left: 0;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 3;
}
.i-sweep::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 35%;
  background: linear-gradient(
    95deg,
    transparent 0%,
    rgba(27, 44, 94, 0) 30%,
    rgba(27, 44, 94, 0.18) 50%,
    rgba(27, 44, 94, 0) 70%,
    transparent 100%
  );
  transform: skewX(-18deg);
  filter: blur(2px);
  opacity: 0;
  animation: iSweep 1s cubic-bezier(0.55, 0.05, 0.3, 1) 2.95s forwards;
}
@keyframes iSweep {
  0% {
    opacity: 0;
    left: -30%;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    left: 130%;
  }
}

.i-reflection {
  display: none;
}
.i-burst {
  display: none;
}

.intro-stage.intro-stage-out {
  animation: iStageOut 0.55s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes iStageOut {
  to {
    transform: scale(1.06);
    opacity: 0;
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .intro-screen {
    display: none !important;
  }
}
@media (max-width: 600px) {
  .intro-skip {
    padding: 7px 13px;
    font-size: 11px;
  }
}

/* Login */
.login-screen {
  background: radial-gradient(
    ellipse 70% 60% at 50% 40%,
    #0e2d5e 0%,
    #071732 40%,
    #03070f 90%
  ) !important;
}
.login-card {
  animation: iLoginIn 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes iLoginIn {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.login-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(
    135deg,
    #0f172a 0%,
    #1e293b 50%,
    #0f3460 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}
.login-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 32px 28px;
  width: min(100%, 420px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
}
.login-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
}
.login-title {
  text-align: center;
  color: #1e293b;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 18px;
}
.login-input {
  width: 100%;
  height: 46px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 12px;
  transition: all 0.15s;
}
.login-input:focus {
  outline: none;
  border-color: #84cc16;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}
.login-input::placeholder {
  color: #94a3b8;
}
.login-btn {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.login-btn-admin {
  background: #84cc16;
  color: #1f2a0a;
}
.login-btn-admin:hover:not(:disabled) {
  background: #65a30d;
  color: #fff;
}
.login-btn-admin:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.login-btn-guest {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-weight: 600;
}
.login-btn-guest:hover {
  border-color: #84cc16;
  color: #1e293b;
}
.login-err {
  color: #dc2626;
  font-size: 12px;
  text-align: center;
  margin-top: -4px;
  margin-bottom: 8px;
  min-height: 18px;
  font-weight: 500;
}
.logout-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 10px;
  height: 32px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}
.logout-btn:hover {
  border-color: #888;
  color: var(--text);
}
.role-badge {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.role-badge.admin {
  background: #dcfce7;
  color: #065f46;
}
.role-badge.guest {
  background: #e0f2fe;
  color: #0369a1;
}

/* Bölge seçimi */
.bolge-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f3460 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9998;
  padding: max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
}
.bolge-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 32px 28px;
  width: min(100%, 520px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  text-align: center;
}
.bolge-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}
.bolge-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 24px;
}
.bolge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.bolge-btn {
  padding: 24px 14px;
  border-radius: 16px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.bolge-btn:hover {
  border-color: #84cc16;
  background: #f7fee7;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132, 204, 22, 0.18);
}
.bolge-btn-icon {
  font-size: 32px;
  margin-bottom: 6px;
}
.bolge-btn-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}
.bolge-btn-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
}
.bolge-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  cursor: pointer;
}
.bolge-indicator:hover {
  background: #d1fae5;
}

/* ── Harita bilgi paneli (Direction B — Status-strip) ───────────────── */
#harita-wrap {
  display: flex;
  height: calc(100dvh - 200px);
  min-height: 520px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}
#harita-container { flex: 1; min-width: 0; background: #dde7ee; }

.harita-info-panel {
  width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-right: 1px solid var(--border);
  color: var(--text);
  overflow: hidden;
}
/* Boşken panel komple gizli — sadece marker tıklanınca açılır */
.harita-info-panel.is-empty { display: none; }

/* Empty state */
.harita-info-panel .hip-empty {
  margin: auto;
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.harita-info-panel .hip-empty-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: #eff4ff;
  color: var(--accent, #2563eb);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.harita-info-panel .hip-empty-title { font-weight: 600; color: var(--text); font-size: 13px; }
.harita-info-panel .hip-empty-sub { font-size: 12px; color: var(--muted); max-width: 220px; }

/* Header */
.harita-info-panel .hip-header {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  position: relative;
}
.harita-info-panel .hip-eyebrow {
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.harita-info-panel .hip-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #2563eb);
}
.harita-info-panel .hip-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
  padding-right: 28px;
  color: var(--text);
}
.harita-info-panel .hip-coord {
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
.harita-info-panel .hip-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  line-height: 1;
}
.harita-info-panel .hip-close:hover { background: #f1f5f9; color: var(--text); }

/* Weather chip row */
.harita-info-panel .hip-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  background: linear-gradient(180deg, #fbfcfd, var(--card));
}
.harita-info-panel .hip-weather-main {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--text);
}
.harita-info-panel .hip-weather-main .ikon { font-size: 22px; line-height: 1; }
.harita-info-panel .hip-weather-main .deg { font-variant-numeric: tabular-nums; }
.harita-info-panel .hip-weather-main .durum { color: var(--muted); font-weight: 500; font-size: 12px; }
.harita-info-panel .hip-weather-meta {
  margin-left: auto;
  display: flex; gap: 10px;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.harita-info-panel .hip-weather-meta span::before {
  content: ""; display: inline-block; width: 1px; height: 10px;
  background: var(--border); margin-right: 10px; vertical-align: middle;
}
.harita-info-panel .hip-weather-meta span:first-child::before { display: none; margin: 0; }

/* Summary block */
.harita-info-panel .hip-summary {
  padding: 12px 16px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.harita-info-panel .hip-summary-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.harita-info-panel .hip-summary-stats {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.harita-info-panel .hip-summary-stats b { color: var(--text); font-weight: 600; }
.harita-info-panel .hip-summary-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.harita-info-panel .hip-bar {
  height: 6px;
  background: #eef0f3;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
}
.harita-info-panel .hip-bar > .seg {
  height: 100%;
  transition: width .35s cubic-bezier(.4,0,.2,1);
}
.harita-info-panel .hip-bar > .seg.done { background: #186a3b; }
.harita-info-panel .hip-bar > .seg.prog { background: #d4a020; }

/* Section header */
.harita-info-panel .hip-section-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  flex-shrink: 0;
}
.harita-info-panel .hip-section-h .count {
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #94a3b8;
  font-size: 11px;
}

/* Alanlar list (scrollable) */
.harita-info-panel .hip-alanlar {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 8px 8px;
}
.harita-info-panel .hip-empty-alan {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  font-size: 12px;
  padding: 20px 12px;
}

/* Direction B — alan kartı + status-strip */
.harita-info-panel .hip-alan-row {
  padding: 12px 12px 10px;
  margin: 4px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
}
.harita-info-panel .hip-alan-row + .hip-alan-row { margin-top: 8px; }
.harita-info-panel .hip-alan-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 9px;
  gap: 8px;
}
.harita-info-panel .hip-alan-name {
  font-weight: 600; font-size: 13px; color: var(--text);
}
.harita-info-panel .hip-alan-pct {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}
.harita-info-panel .hip-strip {
  display: flex;
  gap: 3px;
  height: 24px;
}
.harita-info-panel .hip-strip .seg {
  flex: 1;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  cursor: default;
  user-select: none;
  position: relative;
  border: 1px solid transparent;
  transition: transform .12s;
}
.harita-info-panel .hip-strip .seg:hover { transform: translateY(-1px); }
.harita-info-panel .hip-strip .seg.done {
  background: #186a3b; color: #fff; border-color: #186a3b;
}
.harita-info-panel .hip-strip .seg.progress {
  background: #f5b800; color: #4d3500; border-color: #d99e00;
}
.harita-info-panel .hip-strip .seg.wait {
  background: #f1f3f6; color: #5b6473; border-color: #dfe3ea;
}
.harita-info-panel .hip-strip .seg .ico { font-size: 11px; margin-right: 2px; }
.harita-info-panel .hip-alan-foot {
  margin-top: 6px;
  display: flex; gap: 10px;
  font-size: 10.5px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.harita-info-panel .hip-alan-foot .legend-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 2px;
  vertical-align: middle; margin-right: 4px;
}

/* Buttons (sticky bottom) */
.harita-info-panel .hip-buttons {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--border);
  background: var(--card);
  flex-shrink: 0;
}
.harita-info-panel .hip-btn {
  flex: 1;
  appearance: none;
  font: inherit;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s, border-color .15s, transform .05s;
}
.harita-info-panel .hip-btn:active { transform: translateY(1px); }
.harita-info-panel .hip-btn-primary {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}
.harita-info-panel .hip-btn-primary:hover { background: #1e293b; }
.harita-info-panel .hip-btn-ghost {
  background: var(--card);
  color: var(--text);
  border: 1px solid #d1d5db;
}
.harita-info-panel .hip-btn-ghost:hover { background: #f8fafc; border-color: #94a3b8; }

/* Tooltip (DOM API ile, lib gerek yok) */
.hip-tip {
  position: fixed;
  z-index: 5000;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 9px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px -4px rgba(15,23,42,.35);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .12s, transform .12s;
}
.hip-tip.show { opacity: 1; transform: translateY(0); }

/* Mobile — column layout, panel as bottom sheet */
@media (max-width: 640px) {
  #harita-wrap {
    flex-direction: column;
    height: calc(100dvh - 140px);
    min-height: 0;
  }
  #harita-container { flex: 1 1 auto; min-height: 220px; }
  .harita-info-panel {
    width: 100%;
    border-right: none;
    border-top: 1px solid var(--border);
    flex: 0 0 auto;
    max-height: 60vh;
    box-shadow: 0 -8px 24px -12px rgba(15,23,42,.18);
  }
  .harita-info-panel::before {
    content: "";
    display: block;
    width: 36px; height: 4px;
    background: #d1d5db;
    border-radius: 999px;
    margin: 7px auto 2px;
    flex-shrink: 0;
  }
  .harita-info-panel .hip-header { padding: 8px 14px 10px; }
  .harita-info-panel .hip-title { font-size: 16px; }
  .harita-info-panel .hip-weather { padding: 8px 14px; }
  .harita-info-panel .hip-summary { padding: 10px 14px; }
  .harita-info-panel .hip-section-h { padding: 10px 14px 4px; }
  .harita-info-panel .hip-alanlar { padding: 0 6px 6px; }
}
