/* ==========================================================================
   Floridablog Ferienhaus-Anzeige – Frontend Styles v1.0
   Karten-Layout für Ferienhäuser aus Django-API
   ========================================================================== */

/* --- Section --- */
.fbp-properties-wrap {
  width: 100%;
}

.fbp-section-title {
  margin-bottom: 28px;
}

/* --- Grid --- */
.fbp-grid {
  display: grid;
  gap: 24px;
  width: 100%;
}

.fbp-cols-1 { grid-template-columns: 1fr; }
.fbp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fbp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fbp-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Card --- */
.fbp-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fbp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* --- Card Image --- */
.fbp-card-image {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  text-decoration: none;
}

.fbp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.fbp-card:hover .fbp-card-image img {
  transform: scale(1.05);
}

/* --- Featured Badge --- */
.fbp-badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #E50E4A;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
  z-index: 2;
}

/* --- Card Body --- */
.fbp-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
  gap: 8px;
}

/* --- Location --- */
.fbp-card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #888888;
  font-weight: 500;
}

.fbp-card-location svg {
  flex-shrink: 0;
  color: #E50E4A;
}

/* --- Title --- */
.fbp-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  padding: 0;
}

.fbp-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.fbp-card-title a:hover {
  color: #E50E4A;
}

/* --- Rating --- */
.fbp-card-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
}

.fbp-card-rating svg {
  fill: #f5a623;
  flex-shrink: 0;
}

.fbp-review-count {
  font-size: 13px;
  color: #999999;
  margin-left: 4px;
}

/* --- Details (bed, bath, guests) --- */
.fbp-card-details {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.fbp-detail {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #666666;
  font-weight: 500;
  white-space: nowrap;
}

.fbp-detail svg {
  color: #999999;
  flex-shrink: 0;
}

/* --- Footer (Price + Button) --- */
.fbp-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

/* --- Price --- */
.fbp-card-price {
  font-size: 15px;
  color: #333333;
  white-space: nowrap;
}

.fbp-price-label {
  font-weight: 400;
  color: #999999;
  font-size: 13px;
}

.fbp-price-value {
  font-weight: 700;
  font-size: 20px;
  color: inherit;
}

.fbp-price-unit {
  font-weight: 400;
  font-size: 13px;
  color: #999999;
}

/* --- Button --- */
.fbp-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #E50E4A;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
  line-height: 1.4;
}

.fbp-card-btn:hover {
  background: #c90c3f;
  box-shadow: 0 4px 14px rgba(229, 14, 74, 0.3);
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

.fbp-card-btn:active {
  transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .fbp-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .fbp-cols-3,
  .fbp-cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .fbp-card-body {
    padding: 14px 16px 16px;
  }

  .fbp-card-title {
    font-size: 16px;
  }

  .fbp-card-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .fbp-card-btn {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .fbp-cols-2,
  .fbp-cols-3,
  .fbp-cols-4 {
    grid-template-columns: 1fr;
  }

  .fbp-grid {
    gap: 16px;
  }

  .fbp-card-details {
    gap: 12px;
  }

  .fbp-detail {
    font-size: 13px;
  }
}
