/* ============================================
   TOREM EMLAK - Modern Gayrimenkul Portal CSS
   ============================================ */

:root {
  --primary-color: #1b4332;
  --primary-dark: #2d6a4f;
  --primary-light: #40916c;
  --accent-color: #40916c;
  --hover-color: #2d6a4f;
  --secondary-color: #3b82f6;
  --depo-color: #f59e0b;
  --dukkan-color: #8b5cf6;
  --daire-color: #ef4444;
  --ofis-color: #06b6d4;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   HERO SECTION - Video Background
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.7);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(27, 67, 50, 0.4),
    rgba(45, 106, 79, 0.4)
  );
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 1000px;
  padding: 0 20px;
  color: var(--white);
}

.hero-content h1 {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 3rem;
  opacity: 0.95;
  font-weight: 500;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-primary {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.3);
  animation: fadeInUp 1s ease-out 0.4s both;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(27, 67, 50, 0.4);
}

/* ============================================
   CATEGORY SECTION
   ============================================ */

.category-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-title {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  text-align: center;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Kategori Filtreleri */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--white);
  border: 2px solid transparent;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.filter-btn i {
  font-size: 1.3rem;
}

.filter-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 8px 25px rgba(27, 67, 50, 0.3);
}

/* Gayrimenkul Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  min-height: 300px;
}

.property-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  animation: fadeIn 0.5s ease-out;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.property-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.property-card:hover .property-image img {
  transform: scale(1.1);
}

.property-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}

.property-badge.depo {
  background: var(--depo-color);
  color: var(--white);
}

.property-badge.dukkan {
  background: var(--dukkan-color);
  color: var(--white);
}

.property-badge.daire {
  background: var(--daire-color);
  color: var(--white);
}

.property-badge.ofis {
  background: var(--ofis-color);
  color: var(--white);
}

.property-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.property-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.property-location i {
  color: var(--accent-color);
}

.property-description {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e5e7eb;
}

.property-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.property-features i {
  color: var(--accent-color);
}

.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
}

.btn-details {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-details:hover {
  background: var(--primary-dark);
  transform: translateX(5px);
}

/* Loading & Error States */
.loading-state,
.no-properties,
.error-state {
  text-align: center;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.loading-state i,
.no-properties i,
.error-state i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.loading-state i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================
   DETAIL SECTIONS
   ============================================ */

.detail-section {
  padding: 80px 0;
  background: var(--white);
}

.detail-section:nth-child(even) {
  background: var(--bg-light);
}

.detail-header {
  text-align: center;
  margin-bottom: 3rem;
}

.detail-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
}

.detail-icon i {
  font-size: 3rem;
  color: var(--white);
}

.detail-icon.depo-color {
  background: linear-gradient(135deg, var(--depo-color), #f97316);
}

.detail-icon.dukkan-color {
  background: linear-gradient(135deg, var(--dukkan-color), #a78bfa);
}

.detail-icon.daire-color {
  background: linear-gradient(135deg, var(--daire-color), #f87171);
}

.detail-icon.ofis-color {
  background: linear-gradient(135deg, var(--ofis-color), #22d3ee);
}

.detail-header h2 {
  font-family: "Zalando Sans Expanded", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.detail-header p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

.property-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.property-item {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.property-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  height: 100%;
}

.item-content h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.item-content p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.item-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 1rem 0;
}

.btn-small {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.btn-small:hover {
  background: var(--primary-dark);
}

.no-items {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
  padding: 100px 0;
  background: var(--bg-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2,
.contact-form-wrapper h2 {
  font-size: 2.5rem;
  font-family: "Zalando Sans Expanded", sans-serif;
  margin-bottom: 40px;
  color: var(--text-dark);
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.info-item i {
  font-size: 2rem;
  color: var(--accent-color);
  margin-top: 5px;
}

.info-item h4 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 8px;
}

.info-item p {
  color: var(--text-light);
  line-height: 1.6;
}

.whatsapp-info i {
  color: #25d366;
}

.whatsapp-link {
  color: #25d366;
  font-weight: 700;
  text-decoration: none;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px 18px;
  background: #25d366;
  color: var(--white);
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
}

.whatsapp-cta:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

.whatsapp-action {
  border-color: #25d366;
  color: #25d366;
}

.whatsapp-action:hover {
  background: rgba(37, 211, 102, 0.12);
}

.contact-form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 1rem;
  font-family: "Montserrat", sans-serif;
  background-color: var(--white);
  color: var(--text-dark);
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .contact-grid {
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .category-filters {
    gap: 1rem;
  }

  .filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }

  .properties-grid,
  .property-list {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .detail-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .btn-primary {
    padding: 14px 35px;
    font-size: 1rem;
  }

  .filter-btn {
    justify-content: center;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }

  .category-filters {
    gap: 0.75rem;
  }
}
