/* Center Gayrimenkul · Sahibinden Aktarım paneli (uygulamanın mavi marka renkleri). */
:root {
  --brand: #034881;
  --brand-dark: #02315a;
  --accent: #1d6fe0;
  --brand-soft: #e6effb;
  --bg: #f3f6fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0e1a2b;
  --text-2: #475569;
  --muted: #8392a6;
  --success: #16a34a;
  --success-soft: #e5f7ec;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warning-fg: #8a4b00;
  --warning-soft: #fef3e2;
  --sahibinden: #8a6500;
  --sahibinden-soft: #fff6d6;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 'Inter',
    'Segoe UI',
    system-ui,
    -apple-system,
    Roboto,
    Arial,
    sans-serif;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fff;
  color: var(--brand);
  font-weight: 800;
  font-size: 14px;
}
.brand-text {
  font-weight: 700;
  font-size: 16px;
}
.user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.user-name {
  font-weight: 600;
  opacity: 0.95;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 16px;
}
.card.narrow {
  max-width: 420px;
  margin: 40px auto;
}
h1 {
  font-size: 22px;
  margin: 0 0 6px;
}
h2 {
  font-size: 17px;
  margin: 0 0 8px;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 10px;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-2);
  margin: 10px 0 4px;
}
input,
select,
textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 11px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 110px;
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand);
}
.btn-outline {
  background: #fff;
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn-ghost {
  background: transparent;
  color: var(--text-2);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--brand-soft);
}
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  padding: 6px 12px;
}
.btn-ghost-light:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.26);
}
.btn-block {
  width: 100%;
  margin-top: 16px;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.bm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 6px 0 12px;
}
.bookmarklet {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: grab;
  border: 2px dashed rgba(255, 255, 255, 0.5);
}

.notice {
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 12px;
}
.notice-danger {
  background: var(--danger-soft);
  color: #9b1c1c;
}
.notice-warning {
  background: var(--warning-soft);
  color: var(--warning-fg);
}
.notice-info {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.notice-success {
  background: var(--success-soft);
  color: #14532d;
}
.notice ul {
  margin: 0;
  padding-left: 18px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.badge-sahibinden {
  background: var(--sahibinden-soft);
  color: var(--sahibinden);
}
.badge-active {
  background: var(--success-soft);
  color: var(--success);
}
.badge-passive {
  background: var(--danger-soft);
  color: var(--danger);
}
.badge-muted {
  background: #eef2f6;
  color: var(--text-2);
}

.title {
  font-size: 19px;
  font-weight: 700;
  margin: 4px 0;
}
.price {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  margin: 2px 0 6px;
}
.thumbs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 6px;
}
.thumbs img {
  width: 104px;
  height: 78px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--brand-soft);
  flex: 0 0 auto;
}

.facts {
  width: 100%;
  border-collapse: collapse;
}
.facts td {
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.facts td:first-child {
  color: var(--text-2);
  width: 42%;
  padding-right: 12px;
}
.facts tr:last-child td {
  border-bottom: 0;
}

.note {
  white-space: pre-wrap;
  max-height: 220px;
  overflow: auto;
  font-size: 14px;
  color: var(--text-2);
}

progress {
  width: 100%;
  height: 10px;
  accent-color: var(--accent);
}

@media (max-width: 560px) {
  .brand-text {
    font-size: 14px;
  }
  .card {
    padding: 14px;
  }
}
