/* ==========================================================
   Nevaa Gayrimenkul — black & gold theme (from logo palette)
   ========================================================== */
:root {
  --black: #0b0b0d;
  --soft-black: #17171b;
  --gold: #c9a227;
  --gold-dark: #a8863a;
  --gold-light: #e6c877;
  --cream: #f8f5ee;
  --text: #1c1c1e;
  --muted: #6c6c72;
  --line: #e6e1d5;
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 15.5px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Jost", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: #fff;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, .navbar-brand {
  font-family: "Cinzel", Georgia, serif;
}

a {
  color: var(--gold-dark);
}

a:hover {
  color: var(--gold);
}

/* ---- Section titles ---- */
.section-title {
  position: relative;
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ---- Gold buttons ---- */
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  border: none;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.btn-gold:hover, .btn-gold:focus {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--black);
}

.btn-outline-gold {
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: #fff;
}

/* ---- Top navigation ---- */
.site-nav {
  background: var(--black);
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 3px solid var(--gold);
}

.site-nav .navbar-brand img {
  height: 88px;
  width: auto;
  display: block;
}

.site-nav .nav-link {
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 1.4rem 0.9rem;
}

.site-nav .nav-link:hover {
  color: var(--gold-light);
}

.site-nav .nav-link.active {
  color: var(--gold-light);
  box-shadow: inset 0 -3px 0 var(--gold);
}

@media (max-width: 991px) {
  .site-nav .navbar-brand img {
    height: 60px;
    margin: 0.4rem 0;
  }
  .site-nav .nav-link {
    padding: 0.6rem 0.5rem;
  }
}

/* ---- Home hero ---- */
.hero {
  background:
    linear-gradient(rgba(11, 11, 13, 0.82), rgba(11, 11, 13, 0.88)),
    url("/img/hero.jpg") center 40% / cover no-repeat;
  color: #fff;
}

.hero h1 {
  color: #fff;
}

.hero .gold-highlight {
  color: var(--gold-light);
}

.hero .lead {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.04em;
}

.hero-line {
  width: 70px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 1rem auto 1.4rem;
}

.quick-search {
  max-width: 880px;
  border-top: 3px solid var(--gold);
}

/* ---- Category cards ---- */
.category-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 190px;
  border-radius: 0.75rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(11, 11, 13, 0.15) 0%,
      rgba(11, 11, 13, 0.55) 55%,
      rgba(11, 11, 13, 0.92) 100%);
  transition: background 0.2s;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 0.75rem;
  transition: border-color 0.2s;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.8rem 1.6rem rgba(11, 11, 13, 0.3);
}

.category-card:hover::after {
  border-color: var(--gold);
}

.category-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.category-icon {
  width: 34px;
  height: 34px;
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.category-content h5 {
  color: #fff;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  margin: 0;
}

.category-count {
  color: var(--gold-light);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  border-top: 1px solid rgba(201, 162, 39, 0.5);
  padding-top: 0.35rem;
  margin-top: 0.25rem;
}

@media (max-width: 767px) {
  .category-card {
    height: 130px;
  }
}

/* ---- Listing cards ---- */
.listing-card {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  transition: box-shadow 0.18s, transform 0.18s;
  overflow: hidden;
}

.listing-card:hover {
  box-shadow: 0 0.6rem 1.4rem rgba(11, 11, 13, 0.14);
  transform: translateY(-2px);
}

.listing-card-photo {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.listing-card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
  font-family: "Jost", sans-serif;
  font-weight: 600;
}

.status-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

.badge-sale {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
}

.badge-rent {
  background: var(--black);
  color: var(--gold-light);
  border: 1px solid var(--gold-dark);
}

.price {
  color: var(--gold-dark);
}

/* ---- Filter box ---- */
.filter-box {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}

/* ---- Pagination ---- */
.pagination .page-link {
  color: var(--gold-dark);
}

.pagination .page-item.active .page-link {
  background: var(--black);
  border-color: var(--black);
  color: var(--gold-light);
}

/* ---- Listing detail ---- */
.detail-main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.6rem;
  background: var(--cream);
}

.detail-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.4rem;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: opacity 0.12s;
}

.detail-thumb.selected,
.detail-thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

.detail-box {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0.6rem;
  background: #fff;
}

.detail-box .table th {
  color: var(--muted);
  font-weight: 500;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.72);
  border-top: 3px solid var(--gold);
}

.site-footer .footer-logo {
  height: 96px;
}

.site-footer a {
  color: var(--gold-light);
  text-decoration: none;
}

.site-footer .footer-title {
  color: #fff;
  font-family: "Cinzel", serif;
  margin-bottom: 0.6rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb-item a {
  text-decoration: none;
}

/* ---- Contact page ---- */
.contact-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0.6rem;
  background: #fff;
  padding: 1.2rem 1.1rem;
  text-align: center;
}

.contact-icon {
  width: 30px;
  height: 30px;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.contact-title {
  font-family: "Cinzel", serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-card a {
  text-decoration: none;
  word-break: break-word;
}

.contact-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.map-box {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 0.4rem 1rem rgba(11, 11, 13, 0.08);
}

.map-box iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

/* ---- Lightbox (listing photo gallery) ---- */
.clickable {
  cursor: zoom-in;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11, 11, 13, 0.95);
}

#lightbox.open {
  display: flex;
}

#lbPhoto {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 0.4rem;
  box-shadow: 0 0 3rem rgba(0, 0, 0, 0.6);
}

.lb-close,
.lb-arrow {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, transform 0.15s;
  z-index: 2;
}

.lb-close:hover,
.lb-arrow:hover {
  color: var(--gold-light);
}

.lb-close {
  top: 1rem;
  right: 1.2rem;
  font-size: 1.8rem;
  padding: 0.4rem;
}

.lb-arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3.4rem;
  padding: 0.5rem 1rem;
}

.lb-arrow:hover {
  transform: translateY(-50%) scale(1.15);
}

.lb-prev {
  left: 0.6rem;
}

.lb-next {
  right: 0.6rem;
}

.lb-counter {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  letter-spacing: 0.15em;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .lb-arrow {
    font-size: 2.4rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ---- Mobile / tablet tweaks ---- */
@media (max-width: 575px) {
  .hero h1 {
    font-size: 1.55rem;
  }

  .hero .lead {
    font-size: 0.95rem;
  }

  .hero .container {
    padding-top: 2.4rem !important;
    padding-bottom: 2.4rem !important;
  }

  .price {
    font-size: 1.05rem;
  }

  .listing-card .card-body {
    padding: 0.7rem;
  }

  .listing-card-title {
    font-size: 0.86rem;
  }

  .detail-box h4 {
    font-size: 1.15rem;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .map-box iframe {
    height: 300px;
  }
}

@media (min-width: 576px) and (max-width: 991px) {
  .hero h1 {
    font-size: 2.1rem;
  }
}

/* ---- Giriş: bal küpü alanı (görünmez; botlar doldurur) ---- */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---- Admin tablo sıralama başlıkları ---- */
.admin-table thead th {
  white-space: nowrap;
}

.sort-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.sort-link:hover {
  color: var(--gold-dark);
}

/* ---- Admin ---- */
.unpublished-row {
  --bs-table-bg: #fdf3f3;
  opacity: 0.75;
}

.unpublished-row td:first-child {
  border-left: 3px solid #dc3545;
}

/* Quill'in varsayılan height:100% kuralı kapsayıcıdan taşmaya yol açıyor */
#descriptionEditor {
  height: auto !important;
  background: #fff;
}

#descriptionEditor .ql-editor {
  min-height: 180px;
}

.ql-toolbar.ql-snow,
.ql-container.ql-snow {
  border-color: #dee2e6;
}

.ql-toolbar.ql-snow {
  border-radius: 0.375rem 0.375rem 0 0;
}

.ql-container.ql-snow {
  border-radius: 0 0 0.375rem 0.375rem;
  font-family: "Jost", sans-serif;
  font-size: 1rem;
}

.admin-photo-box {
  width: 130px;
}

.admin-photo-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.375rem;
}

/* ---- Admin fotoğraf yükleme galerisi ---- */
.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.photo-item {
  position: relative;
  width: 120px;
}

.photo-item img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.4rem;
  border: 1px solid var(--line);
  display: block;
}

.photo-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: #dc3545;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  padding: 0;
}

.photo-remove:hover {
  background: #b02a37;
}

/* Sürükle-sırala + vitrin (kapak) */
.photo-item {
  cursor: grab;
}

.photo-item:active {
  cursor: grabbing;
}

.sortable-ghost {
  opacity: 0.35;
}

.sortable-drag {
  opacity: 0.9;
}

.cover-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 0.3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  letter-spacing: 0.02em;
}

.cover-btn {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 8px;
  border: 1px solid var(--gold-dark);
  background: rgba(255, 255, 255, 0.92);
  color: var(--gold-dark);
  border-radius: 0.3rem;
  cursor: pointer;
  white-space: nowrap;
}

.cover-btn:hover {
  background: var(--gold);
  color: #fff;
}

.photo-dropzone {
  display: block;
  border: 2px dashed var(--line);
  border-radius: 0.6rem;
  padding: 1.6rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.photo-dropzone:hover,
.photo-dropzone.dragging {
  border-color: var(--gold);
  background: var(--cream);
}

.photo-dropzone .dz-icon {
  font-size: 1.9rem;
}

.photo-dropzone .dz-text {
  margin-top: 0.3rem;
  font-weight: 500;
}

/* ---- Blog / Emlak Rehberi ---- */
.blog-search {
  max-width: 620px;
}
.blog-search .form-control {
  box-shadow: none;
  font-size: 1.02rem;
}
.blog-search .form-control:focus {
  box-shadow: none;
}
.blog-search .input-group-text {
  font-size: 1.05rem;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.blog-chip {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  border-radius: 2rem;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.blog-chip:hover {
  border-color: var(--gold);
  color: var(--text);
}
.blog-chip.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-color: var(--gold-dark);
  color: #fff;
}

.blog-card {
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  transition: box-shadow 0.18s, transform 0.18s, border-color 0.18s;
}
.blog-card:hover {
  box-shadow: 0 0.6rem 1.4rem rgba(11, 11, 13, 0.12);
  transform: translateY(-2px);
  border-color: var(--gold);
}
.blog-badge {
  display: inline-block;
  background: var(--cream);
  color: var(--gold-dark);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.18rem 0.7rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.blog-card-title {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.blog-card-summary {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}
.blog-readmore {
  color: var(--gold-dark);
  font-weight: 600;
}

/* Makale sayfası */
.blog-article-title {
  font-family: "Cinzel", serif;
  font-weight: 600;
  color: var(--black);
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 0.6rem;
}
.blog-article-meta {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.blog-article-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}
.blog-article-body h3 {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--black);
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
}
.blog-article-body h4 {
  font-weight: 600;
  font-size: 1.08rem;
  margin-top: 1.3rem;
  margin-bottom: 0.5rem;
}
.blog-article-body p {
  margin-bottom: 1rem;
}
.blog-article-body ul,
.blog-article-body ol {
  margin-bottom: 1.1rem;
  padding-left: 1.3rem;
}
.blog-article-body li {
  margin-bottom: 0.4rem;
}
.blog-article-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--cream);
  margin: 1.3rem 0;
  padding: 0.8rem 1.1rem;
  border-radius: 0 0.4rem 0.4rem 0;
  color: var(--soft-black);
  font-style: italic;
}
.blog-disclaimer {
  background: #faf8f2;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  line-height: 1.6;
}
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.blog-tag {
  color: var(--gold-dark);
  font-size: 0.82rem;
  font-weight: 500;
}
.blog-cta {
  background: var(--soft-black);
  color: var(--cream);
}
.blog-cta .btn {
  margin: 0.2rem;
}
.blog-related-title {
  font-family: "Jost", sans-serif;
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 0.6rem;
}

@media (max-width: 575.98px) {
  .blog-article-title { font-size: 1.55rem; }
  .blog-article-body { font-size: 1rem; }
}
