/* =============================================
   ARSLAN İNŞAAT
   Listings Section Styles
   ============================================= */

:root {
  --color-navy: #001d47;
  --color-gold: #c49e54;
  --color-gold-light: #d4ae6f;
  --color-bg: #f8fafc;
  --color-text: #1a1a1a;
  --color-text-muted: #666;
  --font-display: 'Playfair Display', serif;
  --transition: all 0.3s ease;
}

.listings-section {
  padding: 6rem 0;
  background-color: var(--color-bg);
}

.listings-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.listings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Listing Card */
.listing-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 29, 71, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 46, 108, 0.05);
}

.listing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 29, 71, 0.12);
}

.listing-img-wrapper {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.listing-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card:hover .listing-img {
  transform: scale(1.08);
}

.listing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.listing-badge.sale { background: var(--color-gold); color: #000; }
.listing-badge.rent { background: var(--color-navy); }

.listing-price {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 29, 71, 0.95);
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.listing-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.listing-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.listing-location svg {
  width: 16px;
  height: 16px;
  color: var(--color-navy);
}

.listing-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.listing-desc {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.listing-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  flex: 1;
}

.feature-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-navy);
}

.feature-item span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.listing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: transparent;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--color-navy);
  transition: var(--transition);
  width: 100%;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 46, 108, 0.12);
  cursor: pointer;
}

.listing-btn:hover {
  background: var(--color-navy);
  color: #fff;
}

.listing-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.listing-btn:hover svg {
  transform: translateX(5px);
}

/* =============================================
   Listing Detail Page
   ============================================= */
.listing-detail-hero {
  position: relative;
  height: 60vh;
  min-height: 500px;
  width: 100%;
}

.listing-detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-detail-content {
  max-width: 1000px;
  margin: -100px auto 4rem auto;
  background: #fff;
  border-radius: 12px;
  padding: 4rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 50px rgba(0, 29, 71, 0.08);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding-bottom: 2rem;
}

.detail-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
  background: #f8fafc;
  padding: 2rem;
  border-radius: 8px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.meta-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

.meta-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
}

.detail-desc h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 1.5rem;
}

.detail-desc p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* Features Section */
.features-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.features-section h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 2rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid rgba(0, 46, 108, 0.1);
  transition: var(--transition);
}

.feature-badge:hover {
  background: rgba(196, 158, 84, 0.1);
  border-color: var(--color-gold);
}

.feature-badge svg {
  width: 20px;
  height: 20px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.feature-badge {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Gallery */
.detail-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Contact Section */
.contact-section {
  margin-top: 4rem;
  padding: 3rem;
  background: linear-gradient(135deg, rgba(0, 29, 71, 0.05), rgba(196, 158, 84, 0.05));
  border-radius: 12px;
  border: 1px solid rgba(0, 46, 108, 0.1);
}

.contact-section h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.contact-section p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-contact.phone {
  background: var(--color-navy);
  color: #fff;
}

.btn-contact.phone:hover {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-contact.email {
  background: var(--color-gold);
  color: #000;
}

.btn-contact.email:hover {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-contact svg {
  width: 20px;
  height: 20px;
}

/* =============================================
   Homepage Listings (index)
   ============================================= */
.listings-section-home {
  padding: 6rem 0;
  background-color: #fff;
}

.listings-container-home {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.listings-grid-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
}

.listing-card-home {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 29, 71, 0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 46, 108, 0.05);
}

.listing-card-home:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 29, 71, 0.12);
}

.listing-img-wrapper-home {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.listing-img-home {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.listing-card-home:hover .listing-img-home {
  transform: scale(1.08);
}

.listing-badge-home {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.listing-badge-home.sale { background: var(--color-gold); color: #000; }
.listing-badge-home.rent { background: var(--color-navy); }

.listing-price-home {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: rgba(0, 29, 71, 0.95);
  color: var(--color-gold);
  font-size: 1.3rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  z-index: 2;
  backdrop-filter: blur(10px);
  max-width: calc(100% - 2rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.listing-content-home {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.listing-location-home {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
}

.listing-location-home svg {
  width: 16px;
  height: 16px;
  color: var(--color-navy);
  flex-shrink: 0;
}

.listing-title-home {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.3;
  word-break: break-word;
}

.listing-desc-home {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.listing-features-home {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.05);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1.5rem 0;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.feature-item-home {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.feature-item-home span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  word-break: break-word;
}

.listing-btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 1rem;
  background: transparent;
  color: var(--color-navy);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid var(--color-navy);
  transition: var(--transition);
  width: 100%;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 46, 108, 0.12);
  cursor: pointer;
}

.listing-btn-home:hover {
  background: var(--color-navy);
  color: #fff;
}

.listing-btn-home svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.listing-btn-home:hover svg {
  transform: translateX(5px);
}

.section-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.section-cta {
  text-align: center;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .listings-section {
    padding: 4rem 0;
  }

  .listings-container {
    padding: 0 1rem;
  }

  .listing-detail-content {
    margin: -50px 1rem 3rem 1rem;
    padding: 2rem 1.25rem;
  }
  
  .detail-header {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .detail-meta-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  
  .listings-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-buttons {
    flex-direction: column;
  }
  
  .btn-contact {
    width: 100%;
  }

  .listing-detail-hero {
    height: 45vh;
    min-height: 280px;
  }

  .listings-section-home {
    padding: 2.5rem 0 3rem;
  }

  .listings-grid-home {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .listing-img-wrapper-home {
    height: 220px;
  }

  .listing-content-home {
    padding: 1.25rem;
  }

  .listing-desc-home {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.25rem;
  }

  .listing-btn-home {
    min-height: 48px;
    padding: 0.9rem 1rem;
  }

  .listing-card-home:hover {
    transform: none;
  }

  .listing-card-home:hover .listing-img-home {
    transform: none;
  }

  .section-intro {
    margin-bottom: 1.75rem;
  }

  .section-cta {
    margin-top: 2rem;
  }
}

@media (max-width: 480px) {
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }
  
  .listing-features {
    flex-direction: column;
    gap: 1rem;
  }
  
  .detail-title {
    font-size: 1.65rem;
  }

  .listing-content {
    padding: 1.5rem;
  }

  .listing-price {
    font-size: 1.1rem;
    padding: 0.5rem 0.9rem;
  }

  .listing-price-home {
    font-size: 1.05rem;
    padding: 0.5rem 0.9rem;
  }

  .listing-features-home {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .feature-item-home {
    align-items: flex-start;
    text-align: left;
  }
}
