/* ============================================
   Homie Malaysia — original-style layout, orange theme
   ============================================ */

:root {
  /* Orange palette */
  --primary: #F97316;
  --primary-dark: #C2410C;
  --primary-soft: #FB923C;
  --primary-50: #FFF7ED;
  --primary-100: #FFEDD5;
  --primary-200: #FED7AA;

  /* Surface tones */
  --cream: #FFF7ED;
  --cream-2: #FFEDD5;

  /* Text */
  --ink: #1A1208;
  --ink-2: #3A2810;

  /* Dark background */
  --bg-dark: #1a0f06;
  --bg-dark-2: #2a1810;

  --line: rgba(249, 115, 22, 0.18);
  --shadow: 0 10px 30px rgba(0,0,0,.25);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--primary); color: #fff; }

/* ========== PAGE BACKGROUND ========== */
.page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(249,115,22,.28), transparent 60%),
    radial-gradient(900px 500px at 90% 20%, rgba(234,88,12,.18), transparent 60%),
    linear-gradient(180deg, #2a1408 0%, #1a0d05 50%, #100804 100%);
  background-attachment: fixed;
  overflow: hidden;
}
.page::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    /* faint city silhouette via CSS */
    linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45) 100%),
    repeating-linear-gradient(90deg,
      transparent 0 32px,
      rgba(255,255,255,.015) 32px 33px);
  pointer-events: none;
  z-index: 0;
}
.page::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  z-index: 0;
  opacity: .8;
}
.page__overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,8,4,.55) 0%, rgba(15,8,4,.35) 100%);
  z-index: 0;
  pointer-events: none;
}

.main {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 16px 60px;
}

/* ========== HERO ========== */
.hero {
  text-align: center;
  margin-bottom: 8px;
  padding: 16px 12px 8px;
}
.hero__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0;
  margin-bottom: 24px;
  color: #fff;
  backdrop-filter: blur(10px);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.hero__brand:hover { transform: translateY(-1px); background: rgba(255,255,255,.10); }
.hero__logo {
  width: 28px; height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(249,115,22,.4);
}
.hero__brand-accent { color: var(--primary-soft); }

.hero__title {
  font-family: 'Plus Jakarta Sans', Georgia, serif;
  font-size: clamp(28px, 5.2vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,.4);
}
.hero__sub {
  font-size: clamp(14px, 1.6vw, 17px);
  color: rgba(255,255,255,.78);
  font-weight: 300;
  letter-spacing: .02em;
  margin: 0 auto 28px;
  max-width: 560px;
}

/* ========== CTA BUTTON ========== */
.cta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 8px 22px rgba(249,115,22,.35);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
  overflow: hidden;
  z-index: 0;
}
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(249,115,22,.5); }
.cta-btn__pulse {
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: rgba(251,146,60,.4);
  z-index: -1;
  animation: ctaPulse 2.2s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes ctaPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .15; transform: scale(1.06); }
}
.cta-btn--solid { box-shadow: 0 8px 22px rgba(249,115,22,.45); }

/* ========== SEARCH ========== */
.list { margin-top: 16px; }
.search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto 16px;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--cream);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.search input::placeholder { color: rgba(58,40,16,.55); }
.search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(249,115,22,.18);
}

/* ========== CHIPS ========== */
.chips-row {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
  padding: 0 8px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: center;
  max-width: 760px;
  padding: 8px 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 500;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.chip:hover { color: #fff; }
.chip.is-active {
  color: var(--ink);
  background: var(--primary-100);
  font-weight: 600;
}

/* ========== CARD / TABLE ========== */
.card {
  background: var(--cream);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: var(--ink);
}
.table thead th {
  background: var(--cream-2);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
  padding: 14px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
  user-select: none;
}
.table thead th.sortable { cursor: pointer; transition: background .2s var(--ease); }
.table thead th.sortable:hover { background: var(--primary-200); }
.th__icon {
  display: inline-block;
  margin-left: 4px;
  color: var(--primary);
  font-size: 12px;
  opacity: .7;
}
.table thead th.is-sorted .th__icon { opacity: 1; color: var(--primary-dark); }

.table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(249,115,22,.08);
  color: var(--ink-2);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:nth-child(even) { background: rgba(255,237,213,.45); }
.table tbody tr:hover { background: rgba(249,115,22,.10); }

.row__name a {
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  transition: color .2s var(--ease);
}
.row__name a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.row__loc-mobile {
  display: none;
  font-size: 12px;
  color: rgba(58,40,16,.65);
  margin-top: 4px;
  font-weight: 400;
}
.row__price {
  white-space: nowrap;
  font-weight: 500;
}
.row__na { color: rgba(58,40,16,.5); }

.list__empty {
  padding: 50px 24px;
  text-align: center;
  color: rgba(58,40,16,.6);
  font-size: 14px;
}

/* ========== PAGINATION ========== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 8px 8px;
  margin-top: 8px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(8px);
  border-radius: 10px;
}
.pagination__total {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  padding-left: 8px;
}
.pagination__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 8px;
}
.pagination__label {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  font-weight: 500;
}
.pager-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.pager-btn:hover:not(:disabled) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.pager-btn:disabled { opacity: .4; cursor: not-allowed; }
.pager-btn svg { flex-shrink: 0; }

/* ========== BOTTOM CTA ========== */
.bottom-cta {
  margin-top: 48px;
  padding: 0 8px;
}
.bottom-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,247,237,.06), rgba(255,247,237,.03));
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.bottom-cta__copy { flex: 1; min-width: 260px; }
.bottom-cta__title {
  font-size: clamp(20px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 18px;
  color: #fff;
}
.bottom-cta__art {
  flex-shrink: 0;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.4));
}

/* ========== FAB ========== */
.fab {
  position: fixed;
  bottom: 18px; right: 18px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #22C55E;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(34,197,94,.45);
  z-index: 60;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fab:hover { transform: scale(1.08); }
.fab svg { width: 24px; height: 24px; }

/* ========== DETAIL PAGE ========== */
.detail-main {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}
.detail__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px 8px 10px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 500;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.detail__back:hover { background: rgba(255,255,255,.12); transform: translateX(-2px); }

.detail {
  background: var(--cream);
  border-radius: 14px;
  padding: 36px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.detail__hero {
  margin: -36px -36px 28px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cream-2);
  border-radius: 14px 14px 0 0;
}
.detail__hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.detail__head { margin-bottom: 22px; }
.detail__title {
  font-size: clamp(24px, 4vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--ink);
}
.detail__subline {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.detail__dot { color: rgba(58,40,16,.45); }

.detail__desc {
  margin: 0 0 28px;
  padding: 20px 0;
  border-top: 1px solid rgba(249,115,22,.15);
  border-bottom: 1px solid rgba(249,115,22,.15);
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.detail__desc p { margin: 0 0 14px; }
.detail__desc p:last-child { margin-bottom: 0; }

.detail__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 28px;
  margin-bottom: 32px;
}
.kv__label {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(58,40,16,.5);
  margin-bottom: 4px;
  font-weight: 600;
}
.kv__value {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
}

.detail__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(249,115,22,.15);
  padding-top: 24px;
}
.cta-btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.cta-btn--ghost:hover { background: var(--primary-50); border-color: var(--primary); color: var(--primary-dark); box-shadow: 0 6px 14px rgba(249,115,22,.18); }
.cta-btn--ghost .cta-btn__pulse { display: none; }

@media (max-width: 600px) {
  .detail { padding: 24px; }
  .detail__hero { margin: -24px -24px 20px; }
  .detail__grid { grid-template-columns: 1fr; gap: 16px; }
  .detail__cta .cta-btn { flex: 1; min-width: 200px; justify-content: center; }
}

/* ========== BLOG PAGE ========== */
.coming-soon {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.coming-soon__inner { max-width: 560px; }
.coming-soon__art {
  width: 70px; height: 70px;
  border-radius: 20px;
  background: var(--primary-100);
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.coming-soon h1 { font-size: clamp(28px, 5vw, 44px); letter-spacing: -0.025em; margin: 0 0 14px; color: #fff; }
.coming-soon p { color: rgba(255,255,255,.7); font-size: 16px; margin: 0 0 28px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 760px) {
  .main { padding: 24px 12px 60px; }
  .table thead th.th--md,
  .table tbody td.td--md { display: none; }
  .row__loc-mobile { display: block; }
  .table thead th, .table tbody td { padding: 12px 12px; font-size: 13px; }
  .bottom-cta__inner { padding: 24px; text-align: left; }
  .bottom-cta__art svg { width: 140px; height: 140px; }
  .pagination { padding: 14px 8px; }
  .pagination__total, .pagination__label { font-size: 12px; }
  .pager-btn { padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 480px) {
  .hero__title { font-size: 30px; }
  .pagination__total { display: none; }
  .pager-btn span { display: none; }
}
