/* ================================================
   İLAN DETAY SAYFASI - CSS
   Ali Akdoğan Emlak | Tire & Küçük Menderes
   ================================================ */

/* ========== MINI PAGE HEADER ========== */
.page-header-mini {
  position: relative;
  padding: 100px 0 25px;
  overflow: hidden;
}

/* .page-header base stili (style.css'de yok, buraya eklendi) */
.page-header {
  position: relative;
  overflow: hidden;
}

.page-header-mini .page-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.page-header-mini .page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.page-header-mini .container {
  position: relative;
  z-index: 2;
}

.page-header-mini .breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  flex-wrap: wrap;
}

.page-header-mini .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header-mini .breadcrumb a:hover {
  color: var(--accent-light);
}

.page-header-mini .breadcrumb .current {
  color: var(--accent-light);
  font-weight: 500;
}

/* ========== DETAIL LAYOUT ========== */
.detail-section {
  padding: 30px 0 60px;
  background: var(--off-white);
  overflow-x: hidden;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 30px;
  align-items: start;
  min-width: 0;
}

/* grid sütunları taşmasın diye */
.detail-main {
  min-width: 0;
  overflow: hidden;
}

/* ========== DETAIL HEADER ========== */
.detail-header {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.detail-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.detail-ilan-no {
  font-size: 0.82rem;
  color: var(--gray);
}

.detail-header h1 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.detail-location {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.detail-location i {
  color: var(--accent);
  margin-right: 5px;
}

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--light-gray);
}

.detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.detail-price-m2 {
  font-size: 0.9rem;
  color: var(--accent-dark);
  font-weight: 500;
  background: rgba(200, 164, 90, 0.1);
  padding: 4px 12px;
  border-radius: 50px;
}

/* ========== GALLERY ========== */
.detail-gallery {
  margin-bottom: 20px;
  overflow: hidden;
  max-width: 100%;
}

.gallerySwiper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  position: relative;
  max-width: 100%;
  width: 100%;
}

.gallerySwiper .swiper-slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  max-width: 100%;
  display: block;
}

.gallerySwiper .swiper-button-next,
.gallerySwiper .swiper-button-prev {
  color: var(--white) !important;
  background: rgba(0, 0, 0, 0.4);
  width: 45px !important;
  height: 45px !important;
  border-radius: 50%;
  box-shadow: none;
}

.gallerySwiper .swiper-button-next::after,
.gallerySwiper .swiper-button-prev::after {
  font-size: 0.9rem !important;
}

.gallerySwiper .swiper-button-next:hover,
.gallerySwiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.7);
  color: var(--white) !important;
}

.gallery-counter {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  z-index: 10;
  pointer-events: none;
  user-select: none;
}

.gallery-counter i {
  margin-right: 4px;
}

/* Thumbnails */
.galleryThumbs {
  margin-top: 10px;
}

.galleryThumbs .swiper-slide {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.galleryThumbs .swiper-slide-thumb-active {
  opacity: 1;
  border-color: var(--accent);
}

.galleryThumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========== INFO BOX ========== */
.detail-info-box,
.detail-description,
.detail-features,
.detail-map {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.detail-info-box h2,
.detail-description h2,
.detail-features h2,
.detail-map h2 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-info-box h2 i,
.detail-description h2 i,
.detail-features h2 i,
.detail-map h2 i {
  color: var(--accent);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.info-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--light-gray);
}

.info-item:nth-child(odd) {
  background: rgba(248, 249, 250, 0.5);
}

.info-label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}

.info-value {
  font-size: 0.85rem;
  color: var(--dark-gray);
  font-weight: 600;
  text-align: right;
}

.info-value.highlight {
  color: var(--sale-badge);
}

/* ========== DESCRIPTION ========== */
.description-content {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

.description-content ul {
  list-style: none;
  padding: 0;
}

.description-content ul li {
  padding: 4px 0;
  font-size: 0.9rem;
}

.description-content strong {
  color: var(--primary);
}

/* ========== FEATURES ========== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--off-white);
  border: 1px solid var(--light-gray);
  border-radius: 50px;
  font-size: 0.82rem;
  color: var(--gray);
  transition: var(--transition);
}

.feature-tag.active {
  background: rgba(39, 174, 96, 0.08);
  border-color: rgba(39, 174, 96, 0.25);
  color: var(--sale-badge);
}

.feature-tag.active i {
  color: var(--sale-badge);
}

/* ========== MAP ========== */
.map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.map-wrapper iframe {
  display: block;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}

.directions-link:hover {
  color: var(--accent);
}

/* ========== SIDEBAR ========== */
.detail-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Seller Card */
.seller-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 25px;
  box-shadow: var(--shadow-sm);
}

.seller-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--light-gray);
}

.seller-avatar {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.seller-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3px;
}

.seller-type {
  font-size: 0.78rem;
  color: var(--accent-dark);
  font-weight: 500;
}

.seller-type i {
  margin-right: 3px;
}

.seller-location {
  font-size: 0.78rem;
  color: var(--gray);
}

.seller-location i {
  margin-right: 3px;
  color: var(--accent);
}

/* Seller Stats */
.seller-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.seller-stats .stat {
  text-align: center;
  padding: 10px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
}

.seller-stats .stat strong {
  display: block;
  font-size: 1.1rem;
  color: var(--primary);
}

.seller-stats .stat span {
  font-size: 0.7rem;
  color: var(--gray);
}

/* Phone Button */
.seller-phone-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  transition: var(--transition);
}

.seller-phone-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* WhatsApp Button */
.seller-whatsapp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
  transition: var(--transition);
  box-shadow: 0 3px 12px rgba(37, 211, 102, 0.25);
}

.seller-whatsapp-btn:hover {
  background: #20bd5a;
  color: var(--white);
  transform: translateY(-1px);
}

/* Contact Form */
.seller-form {
  border-top: 1px solid var(--light-gray);
  padding-top: 20px;
}

.seller-form h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 15px;
}

.seller-form input,
.seller-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--dark-gray);
  margin-bottom: 10px;
  transition: var(--transition);
}

.seller-form input:focus,
.seller-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.seller-form button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.seller-form button:hover {
  background: linear-gradient(135deg, var(--accent-dark), var(--primary));
}

/* Security Box */
.security-box {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--accent);
}

.security-box h4 {
  font-size: 0.9rem;
  color: var(--primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.security-box h4 i {
  color: var(--accent);
}

.security-box ul {
  list-style: none;
}

.security-box ul li {
  font-size: 0.82rem;
  color: var(--gray);
  padding: 5px 0;
  padding-left: 15px;
  position: relative;
}

.security-box ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Region Banner */
.region-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-md);
  overflow: hidden;
}

.region-banner-content {
  padding: 25px;
  text-align: center;
  color: var(--white);
}

.region-banner-content i {
  font-size: 2rem;
  color: var(--accent-light);
  margin-bottom: 10px;
}

.region-banner-content h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.region-banner-content p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.region-banner-content a {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
}

.region-banner-content a:hover {
  background: var(--accent-dark);
  color: var(--white);
}

/* ========== SIMILAR LISTINGS ========== */
.similar-listings {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 2px solid var(--light-gray);
}

.similar-listings h2 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.similar-listings h2 i {
  color: var(--accent);
}

.similar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  min-width: 0;
}

.similar-grid .listing-card {
  min-width: 0;
  overflow: hidden;
}

/* ========== SCROLL ANIMATION ========== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .seller-card {
    grid-column: 1 / -1;
  }

  .similar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallerySwiper .swiper-slide img {
    height: 300px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .detail-sidebar {
    grid-template-columns: 1fr;
  }

  .detail-header h1 {
    font-size: 1.4rem;
  }

  .detail-price {
    font-size: 1.6rem;
  }

  .similar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .gallerySwiper .swiper-slide img {
    height: 240px;
  }

  .detail-header {
    padding: 18px;
  }

  .seller-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
  }

  .gallerySwiper .swiper-button-next,
  .gallerySwiper .swiper-button-prev {
    display: none !important;
  }
}
