/*
Theme Name: Custom Listing Theme
Author: ChatGPT
Description: Minimal classic theme for listing grid and detail page
Version: 1.0
*/

/* Global Styles */
body {
  background-color: #f3f0f7;
  color: #2c264f;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}
a {
  color: #6b46c1;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #52389e;
  text-decoration: underline;
}

/* Listing Grid Styles */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px;
  background-color: #e9e1f8;
}
.listing-box {
  background-color: #fff;
  border: 1px solid #d6c6f3;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  transition: box-shadow 0.3s;
}
.listing-box:hover {
  box-shadow: 0 4px 12px rgba(107, 70, 193, 0.15);
}
.listing-box img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.listing-name a {
  display: inline-block;
  color: #4c2683;
  font-weight: bold;
  margin: 10px 0 5px;
}
.icon-row a {
  font-size: 20px;
  margin: 0 5px;
  color: #6b46c1;
}
.icon-row a:hover {
  color: #52389e;
}

/* Swiper Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
  color: #6b46c1;
  width: 44px;
  height: 44px;
}

/* Detail Page Table */
.listing-info-table td {
  padding: 10px;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  .listing-grid {
    grid-template-columns: 1fr;
    padding: 20px;
  }
}

.detail-header .icons {
  display: inline-flex; /* inline-flex ile yatayda sıralar */
  justify-content: center; /* ortalar */
  gap: 10px; /* ikonlar arası boşluk */
  margin-top: 5px; /* başlıktan biraz boşluk */
}
.detail-header .icons a {
  display: inline-block; /* ikonları satırda tutar */
}
.social-icon {
  width: 32px;
  height: 32px;
}

/* Header’daki site başlığını ve açıklamayı ortala */
#header #headerimg {
  margin-top: 10px;
  text-align: center;
}

#header #headerimg h1 {
  margin: 0 auto;
  display: inline-block;
}

#header #headerimg .description {
  margin: 0 auto;
  display: inline-block;
}
