@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* ============================================================
   LUX-CORE — Luxury Real Estate UI Kit
   ------------------------------------------------------------
   Aesthetic   : Minimalist Luxury — inspired by luxuryhuahin.com
   Components  : Filter Bar · Property Grid · Property Card
                 Badges · Specs Bar · CTA · Skeleton Loading
   ============================================================ */

/* ------------------------------------------------------------------
   1. Design Tokens
   ------------------------------------------------------------------ */
:root {
  /* Backgrounds */
  --lux-bg-white:   #FFFFFF;
  --lux-bg-cream:   #FBFBF9;
  --lux-bg-sand:    #F4F3EF;

  /* Accents */
  --lux-gold:        #C5A880;
  --lux-gold-hover:  #A88D65;
  --lux-gold-soft:   rgba(197, 168, 128, 0.16);

  /* Text */
  --lux-text-dark:   #141414;
  --lux-text-mid:    #555555;
  --lux-text-light:  #888888;

  /* Borders & Shadows */
  --lux-border:          rgba(0, 0, 0, 0.08);
  --lux-shadow-card:     0 2px 12px rgba(0, 0, 0, 0.05);
  --lux-shadow-hover:    0 24px 48px -12px rgba(20, 20, 20, 0.14),
                         0 8px 24px rgba(20, 20, 20, 0.06);

  /* Shape & Motion */
  --lux-radius:      8px;
  --lux-radius-pill: 999px;
  --lux-ease:        cubic-bezier(0.22, 1, 0.36, 1);

  /* Typography */
  --lux-font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --lux-font-display: 'Playfair Display', 'Iowan Old Style', 'Times New Roman', serif;
}

/* ------------------------------------------------------------------
   2. Base / Scope
   ------------------------------------------------------------------ */
.lux-core {
  font-family: var(--lux-font-body);
  color: var(--lux-text-dark);
  background: var(--lux-bg-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.lux-core *,
.lux-core *::before,
.lux-core *::after {
  box-sizing: border-box;
}

.lux-core img {
  display: block;
  max-width: 100%;
}

.lux-core ::selection {
  background: var(--lux-gold-soft);
}

/* ------------------------------------------------------------------
   3. Filter Bar
   ------------------------------------------------------------------ */
.lux-filter-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--lux-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.lux-filter-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Pill buttons (Type / Bedrooms / Location) --- */
.lux-filter-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 2px;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE/Edge */
  -webkit-overflow-scrolling: touch;
}
.lux-filter-pills::-webkit-scrollbar {
  display: none;
}

.lux-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-pill);
  background: var(--lux-bg-white);
  font-family: var(--lux-font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--lux-text-mid);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s var(--lux-ease);
}

.lux-pill:hover {
  border-color: var(--lux-gold);
  color: var(--lux-gold-hover);
  background: var(--lux-bg-cream);
}

.lux-pill.is-active,
.lux-pill[aria-selected="true"] {
  background: var(--lux-text-dark);
  border-color: var(--lux-text-dark);
  color: var(--lux-bg-white);
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.18);
}

.lux-pill.is-active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lux-gold);
}

/* --- Dropdown selects --- */
.lux-filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lux-filter-selects {
  flex: 0 0 auto;
  flex-wrap: nowrap;
}

.lux-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 40px 10px 16px;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-pill);
  background-color: var(--lux-bg-white);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23555555'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px;
  font-family: var(--lux-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--lux-text-mid);
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.lux-select:hover {
  border-color: var(--lux-gold);
  color: var(--lux-text-dark);
}

.lux-select:focus {
  outline: none;
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 4px var(--lux-gold-soft);
  color: var(--lux-text-dark);
}

/* --- Price range slider --- */
.lux-filter-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-left: auto;
  flex: 0 0 auto;
}

.lux-price-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 8px 16px;
  border: 1px solid var(--lux-border);
  border-radius: var(--lux-radius-pill);
  background: var(--lux-bg-cream);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--lux-text-dark);
  white-space: nowrap;
}

.lux-thb {
  font-family: var(--lux-font-display);
  font-size: 0.95em;
  color: var(--lux-gold-hover);
}

.lux-range {
  --fill: 40%;                     /* set via JS for accurate fill */
  appearance: none;
  -webkit-appearance: none;
  width: 180px;
  height: 4px;
  border-radius: var(--lux-radius-pill);
  background: linear-gradient(to right,
              var(--lux-gold) var(--fill),
              var(--lux-border) var(--fill));
  cursor: pointer;
  outline: none;
  flex: 1 1 160px;
  min-width: 140px;
  max-width: 220px;
}

.lux-range::-webkit-slider-runnable-track {
  background: transparent;
}
.lux-range::-moz-range-track {
  background: transparent;
}
.lux-range::-moz-range-progress {
  background: transparent;
}

.lux-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;                 /* (4px track − 18px thumb) / 2 */
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lux-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lux-range::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--lux-gold-soft),
              0 2px 8px rgba(0, 0, 0, 0.16);
}

.lux-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--lux-gold);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lux-range::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 6px var(--lux-gold-soft),
              0 2px 8px rgba(0, 0, 0, 0.16);
}

/* ------------------------------------------------------------------
   4. Property Grid
   ------------------------------------------------------------------ */
.lux-property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 48px 28px 88px;
}

@media (min-width: 768px) {
  .lux-property-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .lux-property-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .lux-property-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Dim grid while AJAX refetches (skeleton shows in its place) */
.lux-property-grid.is-loading {
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------------
   5. Property Card
   ------------------------------------------------------------------ */
.lux-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--lux-bg-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--lux-radius);
  overflow: hidden;
  box-shadow: var(--lux-shadow-card);
  transition: transform 0.45s var(--lux-ease),
              box-shadow 0.45s var(--lux-ease),
              border-color 0.45s var(--lux-ease);
}

.lux-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.35);
  box-shadow: var(--lux-shadow-hover);
}

.lux-card:focus-within {
  border-color: var(--lux-gold);
}

/* --- Media --- */
.lux-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--lux-radius);
  overflow