/*
Theme Name: Hatay Kiralık Daire
Theme URI: https://hataykiralikdaire.com
Author: Görkem Zeyfe
Author URI: https://hataykiralikdaire.com
Description:
Version: 1.3.0
Text Domain: hatay-housing
*/

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.header {
  background: #1e3c72;
  color: #fff;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo {
  font-weight: 700;
  font-size: 1.1rem;
}

.header nav a {
  color: #fff;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 600;
}

.hero {
  background: linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0.6)), url('https://picsum.photos/1600/600?city') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.hero .btn {
  background: #28a745;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

.search {
  background: #f7f7f7;
  padding: 20px;
  text-align: center;
}

.search form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.search select,
.search input,
.search button {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  min-width: 140px;
}

.search button {
  background: #1e3c72;
  color: #fff;
  cursor: pointer;
  border: none;
}

.neden, .ilanlar, .mahalleler, .blog, .yorumlar, .istatistik, .sss, .iletisim {
  
  text-align: center;
}

.istatistik, .iletisim, .sss, .ilanlar, .neden, .yorumlar, .mahalleler  {
	
	padding: 50px 20px;
}

.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.card, .ilan-card, .mahalle-card, .blog-card, .yorum-card, .istatistik-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 20px;
  flex: 1 1 300px;
}

.ilan-card {
  position: relative;
  overflow: hidden;
}

.ilan-card img,
.mahalle-card img {
  width: 100%;
  border-radius: 10px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.blog-card a, .mahalle-card a {
  color: #1e3c72;
  font-weight: 600;
  text-decoration: none;
}

.yorum-card {
  font-style: italic;
}

.istatistik {
  background: #1e3c72;
  color: #fff;
}

.istatistik-card {
  background: #1e3c72;
  color: #fff;
}

.istatistik-card h3 {
  font-size: 2em;
  margin: 0;
}

.sss .sss-item {
  text-align: left;
  margin: 15px 0;
}

.iletisim {
  background: #1e3c72;
  color: #fff;
}

.iletisim a {
  color: #ffd700;
  text-decoration: none;
  font-weight: 600;
}

footer {
  background: #111;
  color: #bbb;
  padding: 15px;
  text-align: center;
}

/* Breadcrumb */
.hatay-breadcrumb {
  background: #f5f5f5;
  font-size: 0.9rem;
  padding: 8px 0;
}

.hatay-breadcrumb .container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.hatay-breadcrumb a {
  color: #1e3c72;
  text-decoration: none;
}

.hatay-breadcrumb span.separator {
  color: #999;
}

.hatay-breadcrumb span.current {
  opacity: 0.8;
}

/* Term hero (şehir / lokasyon kapak) */
.term-hero {
  margin-top: 10px;
  margin-bottom: 30px;
}

.term-hero-inner {
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  aspect-ratio: 4 / 3;
}

.term-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65), rgba(0,0,0,0.1));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
}

.term-hero-title {
  font-size: 1.8rem;
  margin: 0 0 5px 0;
}

.term-hero-desc {
  margin: 0;
  font-size: 0.95rem;
  max-width: 70%;
}

/* Rozetler */
.listing-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 5;
}

.listing-badge {
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  background: #555;
}

.listing-badge-satilik {
  background: #e53935;
}

.listing-badge-kiralik {
  background: #43a047;
}

.listing-badge-gunluk-kiralik,
.listing-badge-gunluk_kiralik {
  background: #1e88e5;
}

/* Slider */
.hatay-slider-wrapper {
  margin: 20px 0;
}

.swiper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  display: block;
}

.swiper-button-next,
.swiper-button-prev {
  color: #fff;
}

.swiper-pagination-bullet-active {
  background: #fff;
}

/* Chat / soru balonları */
.listing-questions {
  margin-top: 40px;
}

.chat-thread {
  max-width: 800px;
  margin: 0 auto 20px auto;
}

.chat-bubble {
  background: #f1f0f0;
  border-radius: 18px;
  padding: 10px 14px;
  margin: 8px 0;
  display: inline-block;
  max-width: 80%;
  position: relative;
}

.chat-bubble-user {
  background: #e1ffc7;
  margin-left: auto;
}

.chat-bubble-meta {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
}

.chat-bubble:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}

.chat-bubble-user:before {
  border-width: 8px 0 8px 10px;
  border-color: transparent transparent transparent #e1ffc7;
  right: -10px;
  top: 10px;
}

.chat-bubble-other:before {
  border-width: 8px 10px 8px 0;
  border-color: transparent #f1f0f0 transparent transparent;
  left: -10px;
  top: 10px;
}

.comment-form-comment textarea {
  width: 100%;
  max-width: 800px;
}

.comment-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Term image preview (admin için de işe yarar) */
.hatay-term-image-preview img {
  max-width: 150px;
  border-radius: 6px;
  border: 1px solid #ddd;
}

/* Responsive */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .header nav {
    margin-top: 10px;
  }
  .term-hero-title {
    font-size: 1.4rem;
  }
  .term-hero-desc {
    max-width: 100%;
  }
}
