/* Basic styling */
body {
  background-color: #f7f7f7;
}

body.rtl {
  direction: rtl;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.navbar-lang {
  margin-left: auto;
}

.card-listing {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
}

.card-listing .card-body {
  min-height: 140px;
}

.badge-status {
  text-transform: uppercase;
  font-size: 0.7rem;
}

.listing-card {
  border: 1px solid #d9e2ef;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(24, 39, 75, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.listing-card .card-media {
  position: relative;
  margin: 12px;
  border-radius: 16px;
  overflow: hidden;
  height: auto;
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  background: #eef2f7;
}

.listing-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-card .media-placeholder {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a97a8;
  font-size: 0.9rem;
  background: linear-gradient(120deg, #eef2f7, #f7f9fc);
}

.listing-card .badge-category {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(24, 39, 75, 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  color: #1f2a44;
}

.listing-card .badge-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f1f5fb;
  color: #1f2a44;
}

.listing-card .badge-icon svg {
  width: 14px;
  height: 14px;
}

.listing-card .card-body {
  padding: 4px 16px 16px;
  flex: 1 1 auto;
  min-height: 150px;
}

.listing-card h3 a {
  color: #1f2a44;
}

.listing-card .rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: #6a768a;
  white-space: nowrap;
}

.listing-card .rating .star {
  color: #f2b01e;
}

.listing-card .rating-count {
  color: #9aa6b2;
}

.listing-card .info-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #6a768a;
}

.listing-card .icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #f3f6fb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6a768a;
  flex: 0 0 auto;
}

.listing-card .icon svg {
  width: 14px;
  height: 14px;
}

.square-media {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 12px;
}

.card-img-top.square-media {
  border-radius: 12px 12px 0 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f3f6fb;
  color: #1f2a44;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(24, 39, 75, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: #e9eff7;
  box-shadow: 0 6px 16px rgba(24, 39, 75, 0.12);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.section-intro {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e3e9f2;
  border-radius: 16px;
  background: #f9fbfe;
}

.section-intro__media {
  width: 84px;
  height: 84px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef2f7;
  flex: 0 0 84px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-intro__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-intro__placeholder {
  font-size: 0.8rem;
  color: #8a97a8;
}

.section-intro__title {
  font-weight: 700;
  color: #1f2a44;
}

.section-intro__subtitle {
  font-size: 0.9rem;
  color: #6a768a;
}

.post-links a {
  text-decoration: none;
}

.post-links a:hover {
  text-decoration: underline;
}
