/* ===============================
   HAYAT LISTINGS - FULL STYLESHEET
   =============================== */

.hayat-wrap {
  --gap: 14px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* -------------------------------
   FILTER SECTION
   ------------------------------- */
.hayat-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.hayat-filters select,
.hayat-filters input,
.hayat-filters button {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: #2b2b2b;
  cursor: pointer;
  width: 100%;
}

/* Dropdown label uppercase */
.hayat-filters select {
  text-transform: uppercase;
}

/* Dropdown options proper case */
.hayat-filters select option {
  text-transform: capitalize;
}

/* make all dropdowns uniform width */
.hayat-filters select,
.hayat-filters input {
  flex: 1 1 160px;
  min-width: 150px;
  max-width: 180px;
}

/* Price input */
.hayat-filters input[type="number"],
.hayat-filters input[type="text"] {
  text-transform: none;
  font-weight: 400;
}

/* --- SEARCH BUTTON --- */
.hayat-filters button[type="submit"] {
  width: 100%;
  max-width: 850px;
  background-color: #577656;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 6px;
}

.hayat-filters button[type="submit"]:hover {
  background-color: #466345;
}

/* -------------------------------
   GRID & CARD STYLING
   ------------------------------- */
.hayat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}

.hayat-card {
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}

.hayat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Remove underlines everywhere */
.hayat-card__link,
.hayat-card__link:visited,
.hayat-card__link:hover,
.hayat-card__link * {
  text-decoration: none !important;
}

.hayat-card__link {
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* -------------------------------
   IMAGE & RIBBON
   ------------------------------- */
.hayat-card__img {
  position: relative;
  aspect-ratio: 4/3;
  background: #f6f7f8;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hayat-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* SALE / RENT ribbon */
.hayat-ribbon {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hayat-ribbon--rent {
  background: #2563eb;
}

.hayat-ribbon--sale {
  background: #b45309;
}

/* -------------------------------
   CARD BODY CONTENT
   ------------------------------- */
.hayat-card__body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hayat-price {
  font-weight: 700;
  color: #111;
  font-size: 15px;
}

.hayat-price--poa {
  color: #6b7280;
  font-weight: 600;
}

.hayat-title {
  margin: 2px 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: #000;
}

.hayat-loc {
  margin: 0;
  color: #555;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.hayat-specs {
  margin-top: 4px;
  color: #444;
  font-size: 13px;
}

/* =========================================================
   SINGLE PROPERTY PAGE — DESC ON TOP, GALLERY UNDER IT
   ========================================================= */

/* spacing container if your template wraps it with .hayat-single */
.hayat-single {
  max-width: 1200px;
  margin: 40px auto;
}

/* 1) Show description first */
.hayat-desc {
  margin: 0 0 22px;
  line-height: 1.6;
  color: #202021;
}

/* Hide any inline imgs INSIDE the description only (to avoid dups) */
.hayat-desc img,
.hayat-desc figure,
.hayat-desc picture,
.hayat-desc source {
  display: none !important;
}

/* 2) Gallery section under the description */
.hayat-gallery {
  margin: 16px 0 20px;
  display: block !important;   /* resist any old hide rules */
  clear: both;
}

/* Ensure all media in gallery is visible, even if some global rule tries to hide imgs */
.hayat-gallery img,
.hayat-gallery figure,
.hayat-gallery picture,
.hayat-gallery source {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-width: 100%;
  height: auto;
}

/* Hero */
.hayat-hero {
  margin-bottom: 12px;
}
.hayat-hero img {
  width: 100%;
  display: block !important;
  border-radius: 12px;
  max-height: 560px;
  object-fit: cover;
  background: #f6f7f8;
}

/* Thumbs grid under the hero */
.hayat-thumbs {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.hayat-thumbs img {
  width: 100% !important;
  height: 140px !important;
  object-fit: cover !important;
  border-radius: 10px;
  background: #f6f7f8;
}

/* -------------------------------
   PAGINATION (CENTERED)
   ------------------------------- */
.hayat-pagination {
  margin-top: var(--gap);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hayat-pagination button {
  padding: 8px 12px;
  border: 1px solid #ccc;
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  color: #333;
  font-weight: 600;
  min-width: 36px;
  transition: all 0.2s ease;
}

.hayat-pagination button:hover {
  background: #577656;
  color: #fff;
  border-color: #577656;
}

.hayat-pagination button:disabled {
  background: #577656;
  color: #fff;
  border-color: #577656;
  cursor: default;
}

