/* Kampüs haritası — pastel kampüs + prototip kat planı */
.kampus-page {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: calc(100vh - 120px);
  background: #e8f5e9;
}

/* Kampüs sayfası — panel koyu modundan bağımsız sabit açık tema renkleri */
.kampus-page,
.kampus-modal-host,
.kampus-thought-bubble,
.kampus-bubble-content,
.kampus-detail-content {
  color: #1b3a2f;
}

.kampus-page .page-head h1,
.kampus-bubble-content h1,
.kampus-bubble-content h2,
.kampus-bubble-content h3,
.kampus-bubble-content label,
.kampus-bubble-content span,
.kampus-bubble-content p,
.kampus-bubble-content strong,
.kampus-detail-content span,
.kampus-detail-content p,
.kampus-detail-content strong,
.kampus-history-item,
.kampus-history-head strong {
  color: inherit;
}

.kampus-page .page-head h1 {
  color: #1b3a2f;
}

.kampus-page .page-head p,
.kampus-page .muted,
.kampus-bubble-content .muted,
.kampus-bubble-content .muted.sm,
.kampus-detail-content .muted,
.kampus-detail-content .muted.sm {
  color: #5f7a6e !important;
}

.kampus-field-label {
  color: #1b3a2f !important;
}

.kampus-detail-label {
  color: #5f7a6e !important;
}

.kampus-floor-meta,
.kampus-floor-tab:not(.kampus-floor-tab--active),
.room-card__no {
  color: #1b3a2f !important;
}

.kampus-detail-row > span:not(.kampus-detail-label) {
  color: #1b3a2f !important;
}

.kampus-bubble-content .input,
.kampus-bubble-content textarea.input,
.kampus-bubble-content select.input {
  color: #1b3a2f !important;
  background: #ffffff !important;
  border-color: rgba(46, 125, 50, 0.22) !important;
}

.kampus-bubble-content .input::placeholder,
.kampus-bubble-content textarea.input::placeholder {
  color: #64748b !important;
  opacity: 1;
}

.kampus-bubble-content .btn.secondary,
.kampus-photo-panel .btn.secondary {
  background: #ffffff !important;
  color: #1b3a2f !important;
  border-color: rgba(46, 125, 50, 0.22) !important;
}

.kampus-bubble-content .btn.primary,
.kampus-save-btn {
  color: #ffffff !important;
}

.kampus-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.kampus-floor-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.kampus-floor-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 12px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.kampus-floor-tabs::-webkit-scrollbar {
  display: none;
}

.kampus-floor-tab {
  flex-shrink: 0;
  scroll-snap-align: start;
  border: 1px solid #a5d6a7;
  background: #fff;
  color: #1b3a2f;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.kampus-floor-tab--active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

.kampus-floor-meta {
  margin: 0;
  padding: 0 16px 6px;
  font-size: 12px;
  color: #5f7a6e;
}

.kampus-stage {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(300px, 52vh, 720px);
  position: relative;
  padding: 0 clamp(4px, 2vw, 16px) 16px;
  overflow: auto;
}

.kampus-overview-wrap {
  width: min(100%, clamp(320px, 92vw, 1120px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kampus-overview-header {
  text-align: center;
  padding: 22px 20px 16px;
}

.kampus-overview-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1b3a2f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.kampus-overview-hint {
  margin: 6px 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.45;
  color: #5f7a6e;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.kampus-overview-scene {
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
}

.kampus-overview-svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1000 / 820;
  max-height: min(72vh, 700px);
}

.kampus-bina-hit {
  cursor: pointer;
}

.kampus-bina-hit:hover,
.kampus-bina-hit:focus {
  filter: brightness(1.1);
  outline: none;
}

.kampus-bina-label {
  fill: #263238;
  font-size: clamp(11px, 2.2vw, 15px);
  font-weight: 700;
  text-anchor: start;
  dominant-baseline: central;
}

.kampus-floor-wrap {
  width: min(100%, 520px);
  margin: 0 auto;
}

.kampus-floor {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: min(72vh, 640px);
  border-radius: 18px;
  background: linear-gradient(180deg, #fafdfb 0%, #f0f7f1 100%);
  box-shadow: 0 4px 18px rgba(46, 125, 50, 0.12), inset 0 0 0 1px rgba(46, 125, 50, 0.08);
  overflow: hidden;
}

.kampus-floor__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 125, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 125, 50, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.kampus-room.room-card {
  position: absolute !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 8px;
  background: #fff !important;
  color: #1b3a2f !important;
  box-shadow: 0 2px 6px rgba(27, 58, 47, 0.08);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-width: 0;
  min-height: 0;
}

.kampus-room.room-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 6px;
  background: #cbd5e1;
  pointer-events: none;
}

.kampus-room.room-card.kampus-room--done::before {
  background: #059669;
}

.kampus-room.room-card.kampus-room--pending::before {
  background: #dc2626;
}

.kampus-room.room-card:active {
  transform: scale(0.98);
}

.kampus-room.room-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(27, 58, 47, 0.12);
  z-index: 2;
}

.room-card__no {
  font-size: clamp(0.625rem, 2vw, 0.8125rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #1b3a2f;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding-top: 6px;
}

.kampus-modal-host {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
}

.kampus-modal-host[hidden] {
  display: none !important;
  pointer-events: none;
}

.kampus-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.kampus-thought-bubble {
  position: relative;
  z-index: 1;
  width: min(100%, 600px);
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: kampusBubbleIn 0.22s ease;
}

@keyframes kampusBubbleIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kampus-bubble-body {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 48px);
  min-height: 0;
  background: #fafdfb;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
}

.kampus-bubble-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: #365f87;
  flex-shrink: 0;
  color: #fff;
}

.kampus-bubble-hero h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.kampus-bubble-hero p {
  margin: 4px 0 0;
  font-size: 0.875rem;
  opacity: 0.88;
}

.kampus-bubble-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.kampus-bubble-content {
  padding: clamp(16px, 3vw, 24px);
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.kampus-field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1b3a2f;
}

.kampus-status-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.kampus-status-chip {
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 12px;
  background: #fff;
  color: #1b3a2f;
  padding: 12px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.kampus-status-chip:not(.kampus-status-chip--active) {
  color: #2e7d32;
  font-weight: 600;
}

.kampus-status-chip--active {
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.kampus-status-chip[data-kampus-durum-opt="Tamamlandı"].kampus-status-chip--active {
  background: #059669;
}

.kampus-status-chip[data-kampus-durum-opt="Tamamlanmadı"].kampus-status-chip--active {
  background: #dc2626;
}

.kampus-detail-content {
  max-height: none;
  overflow-y: auto;
}

.kampus-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
}

.kampus-status-badge.done {
  color: #059669;
  background: rgba(5, 150, 105, 0.12);
}

.kampus-status-badge.pending {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.12);
}

.kampus-detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.kampus-detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f7a6e;
}

.kampus-proof-img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-top: 6px;
}

.kampus-history-block {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(46, 125, 50, 0.12);
}

.kampus-history-item {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  margin-top: 8px;
}

.kampus-history-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.kampus-history-status {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 4px;
}

.kampus-history-status.done { color: #059669; }
.kampus-history-status.pending { color: #dc2626; }

.kampus-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
}

.kampus-photo-grid .kampus-photo-preview-wrap {
  aspect-ratio: 1;
}

.kampus-photo-grid .kampus-photo-preview {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.kampus-video-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(46, 125, 50, 0.12);
}

.kampus-video-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f1f5f9;
  color: #1b3a2f;
  font-size: 0.8125rem;
}

.kampus-proof-video {
  display: block;
  width: 100%;
  max-height: 220px;
  border-radius: 14px;
  background: #000;
}

.kampus-photo-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(46, 125, 50, 0.18);
  border-radius: 16px;
  background: #fff;
}

.kampus-photo-preview-wrap {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
}

.kampus-photo-preview {
  display: block;
  width: 100%;
  max-height: 160px;
  object-fit: cover;
}

.kampus-photo-preview-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.kampus-photo-btn {
  margin: 0;
}

.kampus-photo-ready {
  color: #059669 !important;
}

.kampus-photo-required {
  color: #dc2626 !important;
}

.kampus-save-btn {
  min-height: 50px;
  font-weight: 600;
}

.kampus-bubble-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.kampus-bubble-head h2 {
  margin: 0;
  font-size: 1.15rem;
}

.kampus-bubble-tail {
  display: none;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 16px solid #fafdfb;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.08));
}

@media (max-width: 640px) {
  .kampus-stage {
    min-height: clamp(260px, 48vh, 420px);
  }

  .kampus-overview-svg {
    max-height: min(58vh, 420px);
  }
}

@media (min-width: 1200px) {
  .kampus-overview-scene {
    width: min(100%, 1040px);
  }
}
