/* ============================================================
   Blox Assured Properties — Frontend Styles
   ============================================================ */

:root {
  --bap-gold:        #c9a84c;
  --bap-gold-light:  #e8c96e;
  --bap-dark:        #0f0f1a;
  --bap-card-radius: 12px;
  --bap-gap:         20px;
}

/* ── Section Layout ──────────────────────────────────────── */
.bap-section {
  margin: 60px 0;
  padding: 0;
}

.bap-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.bap-diamond-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bap-dark);
  color: var(--bap-gold);
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  border: 1px solid rgba(201,168,76,0.35);
  width: fit-content;
}

.bap-section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
  line-height: 1.2;
}

.bap-section-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0;
}

.bap-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--bap-gold);
  text-decoration: none;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: gap 0.2s;
}
.bap-see-all:hover { gap: 10px; color: var(--bap-gold); }

/* ── Swiper Carousel ─────────────────────────────────────── */
.bap-swiper {
  position: relative;
  overflow: hidden;
  padding-bottom: 4px;
}

.bap-swiper .swiper-wrapper { align-items: stretch; }

.bap-swiper-nav {
  display: flex;
  gap: 8px;
  margin-top: 20px;
  justify-content: flex-end;
}

.bap-swiper-prev,
.bap-swiper-next {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid #ddd;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: all 0.2s ease;
}
.bap-swiper-prev:hover,
.bap-swiper-next:hover {
  border-color: var(--bap-gold);
  color: var(--bap-gold);
  background: rgba(201,168,76,0.06);
}
.bap-swiper-prev.swiper-button-disabled,
.bap-swiper-next.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Hide default Swiper arrows */
.bap-swiper .swiper-button-prev,
.bap-swiper .swiper-button-next { display: none; }

/* ── Grid Layout ─────────────────────────────────────────── */
.bap-grid { display: grid; gap: var(--bap-gap); }
.bap-grid-cols-1 { grid-template-columns: 1fr; }
.bap-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.bap-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.bap-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Property Card ───────────────────────────────────────── */
.bap-card {
  background: #fff;
  border-radius: var(--bap-card-radius);
  overflow: hidden;
  border: 1px solid #eee;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.bap-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  transform: translateY(-3px);
}

.bap-card-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.bap-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bap-card:hover .bap-card-image { transform: scale(1.04); }

.bap-assured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bap-dark);
  color: var(--bap-gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 20px;
  border: 1px solid rgba(201,168,76,0.4);
  z-index: 2;
}

.bap-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.bap-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bap-tag {
  font-size: 11px;
  color: #555;
  background: #f5f5f5;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 500;
}

.bap-card-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.4;
}
.bap-card-title a { color: #111; text-decoration: none; }
.bap-card-title a:hover { color: var(--bap-gold); }

.bap-card-locality {
  font-size: 12px;
  color: #888;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.bap-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.bap-card-price {
  font-size: 16px;
  font-weight: 700;
  color: #111;
}

.bap-dev-logo {
  height: 28px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: grayscale(30%);
}
.bap-dev-name {
  font-size: 11px;
  color: #999;
  font-weight: 500;
}

.bap-card-btn {
  display: block;
  text-align: center;
  background: var(--bap-dark);
  color: var(--bap-gold);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
  letter-spacing: 0.5px;
  transition: background 0.2s ease;
}
.bap-card-btn:hover {
  background: var(--bap-gold);
  color: #111;
}

/* ── Widget ──────────────────────────────────────────────── */
.bap-widget-list { list-style: none; margin: 0; padding: 0; }

.bap-widget-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}
.bap-widget-item:last-child { border-bottom: none; }

.bap-widget-thumb {
  width: 60px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.bap-widget-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bap-widget-title { font-size: 13px; font-weight: 600; color: #111; text-decoration: none; }
.bap-widget-title:hover { color: var(--bap-gold); }
.bap-widget-locality { font-size: 11px; color: #888; }
.bap-widget-price { font-size: 12px; font-weight: 700; color: var(--bap-gold); }

/* ── No results ──────────────────────────────────────────── */
.bap-no-results { color: #888; font-size: 14px; padding: 20px 0; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bap-grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .bap-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .bap-grid-cols-2,
  .bap-grid-cols-3,
  .bap-grid-cols-4 { grid-template-columns: 1fr; }
  .bap-section { margin: 40px 0; }
  .bap-section-header { flex-direction: column; align-items: flex-start; }
}
