/*
 * Kode CSS ini dirancang untuk tampilan kartu yang modern, bersih,
 * dan sangat kompatibel dengan lingkungan WordPress.
 */

/* ================== ROOT STYLES ================== */
/*
 * Bagian ini mendefinisikan font dan warna dasar
 * untuk memastikan konsistensi.
 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Inter';
  color: #2c3e50;
  line-height: 1.6;
}

/* ================== CARD CONTAINER ================== */
/*
 * Gaya untuk wadah kartu utama. Menambahkan bayangan halus
 * dan transisi untuk efek hover yang elegan.
 */
.cli-card {
  display: flex;
  flex-wrap: wrap;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.cli-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* ================== IMAGE COLUMN ================== */
/*
 * Gaya untuk kolom gambar, termasuk rasio aspek untuk
 * memastikan gambar tidak terdistorsi.
 */
.cli-img-col {
  flex: 1 1 250px;
  max-width: 300px;
  padding: 16px;
  box-sizing: border-box;
}

.cli-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
}

.cli-img-wrapper img.cli-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cli-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #3498db; /* Warna aksen biru yang lebih bersih */
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

/* ================== INFO COLUMN ================== */
/*
 * Gaya untuk kolom informasi teks.
 */
.cli-info-col {
  flex: 2 1 300px;
  padding: 24px;
  box-sizing: border-box;
}

.cli-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #2c3e50;
  word-wrap: break-word;
}

.cli-address,
.cli-jam,
.cli-telp,
.cli-website {
  margin: 8px 0;
  font-size: 16px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  color: #7f8c8d;
  word-break: break-word;
}

.cli-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: #7f8c8d;
}

/* ================== BUTTON GROUP ================== */
/*
 * Gaya untuk tombol dan wadahnya.
 */
.cli-btn-group {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cli-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background-color: #3498db;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
  border: none;
}

.cli-btn:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

.cli-btn svg {
  fill: #fff;
}

/* ================== RESPONSIVE STYLES ================== */
/*
 * Media query untuk menyesuaikan tata letak pada layar yang lebih besar
 * dan memastikan tata letak vertikal di perangkat mobile.
 */
@media (min-width: 769px) {
  .cli-card {
    align-items: center;
  }
}

@media (max-width: 768px) {
  .cli-card {
    flex-direction: column;
    align-items: stretch;
  }
  .cli-info-col,
  .cli-img-col {
    max-width: 100%;
  }
  .cli-info-col {
    padding: 16px;
  }
}
