/* ============================================================
   kirada.com.tr – Public Site Styles
   Renk: Navy #1B2D6B + Blue #2563EB
   ============================================================ */

/* ── Variables ── */
:root {
  --primary:        #1B2D6B;
  --primary-dark:   #0F1E4A;
  --primary-light:  #2D4A9E;
  --accent:         #2563EB;
  --accent-dark:    #1D4ED8;
  --accent-light:   #DBEAFE;
  --accent-xlight:  #EFF6FF;
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border:         #E5E7EB;
  --border-dark:    #D1D5DB;
  --bg-light:       #F9FAFB;
  --white:          #FFFFFF;
  --success:        #10B981;
  --success-bg:     #ECFDF5;
  --warning:        #F59E0B;
  --warning-bg:     #FFFBEB;
  --danger:         #EF4444;
  --danger-bg:      #FEF2F2;
  --info:           #3B82F6;
  --info-bg:        #EFF6FF;
  --shadow-sm:      0 1px 2px rgba(0,0,0,.05);
  --shadow:         0 1px 3px rgba(0,0,0,.1),0 1px 2px rgba(0,0,0,.06);
  --shadow-md:      0 4px 6px rgba(0,0,0,.07),0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:      0 10px 25px rgba(0,0,0,.12);
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      20px;
  --transition:     .18s ease;
}

/* ── Reset ── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
button { cursor: pointer; }
input,textarea,select { font-family: inherit; }

/* ── Layout ── */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 48px;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar-logo img {
  height: 42px;
  width: auto;
}
.navbar-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}
.navbar-nav a {
  color: var(--text-muted);
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  font-size: .95rem;
  text-decoration: none;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--accent);
  background: var(--accent-xlight);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  font-size: .92rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37,99,235,.35);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-xlight);
  text-decoration: none;
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-dark:hover {
  background: var(--primary-dark);
  color: var(--white);
  text-decoration: none;
}
.btn-success {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn-danger {
  background: var(--danger);
  color: var(--white);
  border-color: var(--danger);
}
.btn-sm  { padding: 6px 14px; font-size: .83rem; }
.btn-lg  { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 30px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
}
.badge-success   { background: var(--success-bg); color: #059669; }
.badge-warning   { background: var(--warning-bg); color: #B45309; }
.badge-danger    { background: var(--danger-bg);  color: #DC2626; }
.badge-info      { background: var(--info-bg);    color: #1D4ED8; }
.badge-secondary { background: var(--bg-light);   color: var(--text-muted); }
.badge-primary   { background: var(--accent-light); color: var(--primary); }

/* ── Alerts / Flash ── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: .93rem;
  border: 1px solid transparent;
  position: relative;
}
.alert-success { background: var(--success-bg); color: #065F46; border-color: #A7F3D0; }
.alert-error   { background: var(--danger-bg);  color: #991B1B; border-color: #FECACA; }
.alert-warning { background: var(--warning-bg); color: #92400E; border-color: #FDE68A; }
.alert-info    { background: var(--info-bg);    color: #1E40AF; border-color: #BFDBFE; }
.alert-close {
  position: absolute; right: 12px; top: 12px;
  background: none; border: none; font-size: 18px; cursor: pointer; opacity: .6;
  line-height: 1; padding: 0;
}
.alert-close:hover { opacity: 1; }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 450px; height: 450px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  left: -80px; bottom: -80px;
  width: 350px; height: 350px;
  background: rgba(37,99,235,.15);
  border-radius: 50%;
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: #93C5FD;
  font-size: .82rem;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 30px;
  margin-bottom: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero h1 span { color: #93C5FD; }
.hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.12rem;
  max-width: 560px;
  margin: 0 auto 36px;
}

/* ── Search Form ── */
.search-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.search-group { display: flex; flex-direction: column; gap: 6px; }
.search-group label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.search-group select,
.search-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.search-group select:focus,
.search-group input:focus { border-color: var(--accent); }

/* ── Hero Stats ── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; color: var(--white); }
.hero-stat-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #93C5FD;
  line-height: 1;
}
.hero-stat-lbl {
  font-size: .82rem;
  opacity: .7;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

/* ── Property Grid ── */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--border);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.property-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-light);
}
.property-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.property-card:hover .property-card-img img { transform: scale(1.04); }
.property-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
}
.property-card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,.55);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}
.property-card-body { padding: 18px 20px; }
.property-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.property-location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: .87rem;
  margin-bottom: 12px;
}
.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.property-feature {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--text-muted);
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 20px;
}
.property-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.property-price {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--accent);
}
.property-price span {
  font-size: .78rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* ── Filter Bar ── */
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 32px;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: .8rem; font-weight: 600; color: var(--text-muted); }
.filter-group select,
.filter-group input {
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text);
  min-width: 150px;
  outline: none;
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--accent); }

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 48px;
}
.step-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--bg-light);
  transition: box-shadow var(--transition);
}
.step-card:hover { box-shadow: var(--shadow-md); }
.step-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-xlight);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.step-num {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  width: 28px; height: 28px;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  line-height: 28px;
  text-align: center;
  margin-bottom: 14px;
}
.step-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.step-card p { color: var(--text-muted); font-size: .93rem; }

/* ── No-Image SVG Placeholder ── */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--text-light);
  font-size: 3rem;
}

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.form-label .required { color: var(--danger); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control.is-invalid { border-color: var(--danger); }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--text-muted); }
.form-error { font-size: .82rem; color: var(--danger); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  padding: 40px 20px;
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 440px;
  padding: 40px 36px;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 52px; margin: 0 auto 12px; }
.auth-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  text-align: center;
  margin-bottom: 6px;
}
.auth-sub { text-align: center; color: var(--text-muted); font-size: .92rem; margin-bottom: 28px; }
.auth-divider {
  text-align: center;
  color: var(--text-light);
  font-size: .85rem;
  margin: 20px 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 28px);
  height: 1px;
  background: var(--border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }
.auth-footer { text-align: center; margin-top: 20px; font-size: .9rem; color: var(--text-muted); }

/* ── Pagination ── */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  text-decoration: none;
  transition: all var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

/* ── Property Detail ── */
.detail-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 480px;
}
.detail-gallery .main-img { grid-row: span 2; }
.detail-gallery img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  margin-top: 32px;
}
.detail-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}
.detail-sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  margin: 8px 0 4px;
}
.detail-deposit { font-size: .9rem; color: var(--text-muted); margin-bottom: 20px; }
.detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
  text-align: left;
}
.detail-meta-item { display: flex; flex-direction: column; gap: 2px; }
.detail-meta-lbl { font-size: .78rem; color: var(--text-light); text-transform: uppercase; letter-spacing: .05em; }
.detail-meta-val { font-size: .95rem; font-weight: 600; color: var(--text); }
.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}
.feature-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-xlight);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 500;
}

/* ── Footer ── */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.75);
  padding: 56px 0 28px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: .9rem; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-gallery { grid-template-columns: 1fr; max-height: none; }
  .detail-gallery .main-img { grid-row: auto; }
}
@media (max-width: 768px) {
  .navbar-nav, .navbar-actions { display: none; }
  .navbar-nav.open, .navbar-actions.open { display: flex; }
  .navbar-toggle { display: flex; }
  .navbar-inner { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .navbar-nav {
    flex-direction: column;
    width: 100%;
    padding-bottom: 12px;
  }
  .section { padding: 48px 0; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 1.9rem; }
  .search-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .property-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .auth-card { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .hero h1 { font-size: 1.6rem; }
}
