/* ============================
   🏠 Catalan Map Popup Card (Final v7)
============================ */

/* حذف فاصله پیش‌فرض leaflet */
.leaflet-popup-content-wrapper,
.leaflet-popup-content {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  line-height: 0 !important;
}

.leaflet-popup-tip-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* ======================================
   📦 Map Container
====================================== */
#bre-map {
  width: 100%;
  height: 700px;
  border: 1px solid #ddd;
  border-radius: 8px;
}

/* ======================================
   💳 Map Property Card
====================================== */
.bre-map-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  width: 380px;
  min-height: 140px;
  direction: rtl;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  font-family: inherit !important;
}

/* 🖼 تصویر راست */
.bre-map-thumb {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 140px;
}

/* 💬 بخش اطلاعات */
.bre-map-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 !important;
  padding: 0 !important;
}

/* درونی‌ترین بخش */
.bre-map-inner {
  padding: 18px 20px 10px 20px;
}

/* عنوان و وضعیت معامله */
.bre-map-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px; /* ← فاصله بیشتر بین عنوان و متا */
}

.bre-map-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c2c2c;
  margin: 0;
}

.bre-map-type {
  background: rgba(244,181,4,0.15); /* رنگ ملایم‌تر */
  color: #2c2c2c;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 10px;
  border-radius: 6px;
  border: 1px solid #f4b50433;
}

/* آیکن‌ها و جزئیات */
.bre-map-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #4b5563;
}

.bre-map-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.bre-map-meta img {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

/* 💰 بخش پایین */
.bre-map-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f9fafb;
  border-top: 1px solid #eee;
  padding: 14px 20px; /* ← ارتفاع بیشتر برای قیمت */
}

.bre-map-price {
  font-weight: 700;
  font-size: 16px;
  color: #f4b504;
}

/* 🎯 دکمه مشاهده آگهی */
.bre-map-btn {
  background: #f4b504;
  color: #2c2c2c;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 6px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bre-map-btn:hover {
  background: #2c2c2c;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}