@font-face {
  font-family: 'GMarketSans';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
  font-weight: 500;
  font-display: swap;
}
:root {
  --bg: #f8fafc;
  --panel-bg: rgba(30, 41, 59, 0.7);
  --panel-border: rgba(203, 213, 225, 0.9);
  --card-bg: #ffffff;
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --table-th-bg: #f1f5f9;
  --table-td-border: #e2e8f0;
  --table-td-text: #334155;
  --row-hover: rgba(255, 255, 255, 0.03);
  --primary: #059669;
  --primary-glow: rgba(62, 207, 142, 0.2);
  --primary-green: #10b981;
  --muted: #64748b;
  
  /* ── Colour palette ── */
  --accent: #0284c7;
  --accent-blue: #38bdf8;
  --accent-aqua: #5ee7df;
  --accent-violet: #b490f5;
  --accent-rose: #f7a8c4;
  --accent-amber: #ffd27f;
  --accent-lime: #a8f08a;
  --text: #0f172a;
  --text-main: #f8fafc;
}

* {
  box-sizing: border-box;
  margin:0;
  padding:0;
}

body{
  font-family: 'GMarketSans';
  min-height: 100vh;
  /* background-image:  */
  /* radial-gradient(at 0% 0%, rgba(16, 185, 129, 0.08) 0px, transparent 50%),
  radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.06) 0px, transparent 50%); */
}

/* --------------------------------------------------------------------------
11. LEFT HOVER SIDEBAR & MENU STYLES
-------------------------------------------------------------------------- */
.sidebar-trigger-zone {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 100vh;
  z-index: 997;
  cursor: pointer;
}

.sidebar-trigger-pill {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 6px;
  height: 52px;
  border-radius: 99px;
  background: var(--accent-aqua);
  opacity: 0.5;
  box-shadow: 0 0 12px var(--accent-aqua);
}

.sidebar-trigger-zone:hover .sidebar-trigger-pill {
  opacity: 1;
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11,15,26,0.45);
  backdrop-filter: blur(4px);
  z-index: 997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: fixed;
  width: 300px;
  height: 100vh;
  z-index: 999;
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255,255,255,0.14);
  box-shadow: 12px 0 40px rgba(0,0,0,0.45);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.68,0,1.2);
  display: flex;
  flex-direction: column;
  color: #fff;
  overflow-y: auto;
}

.sidebar-drawer.is-active {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all 180ms;
}

.sidebar-close-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

.sidebar-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* text-transform: uppercase; */
  /* letter-spacing: 0.1em; */
}

.sidebar-group-title {
  font-size: 15px;
  font-weight: 700;
  /* letter-spacing: 0.1em; */
  color: rgba(255,255,255,0.38);
}

.sidebar-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-nav-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  transition: all 120ms;
  color: #fff;

}

/* Header */
header {
  height: 64px;
  background: rgba(11,15,25,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
}

.logo-badge {
  width: 28px;
  height: 28px;
  background: var(--primary-green);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0b0e1a;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(94,231,223,0.4);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
}

.nav-menu a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
  line-height: 1;
}

.nav-item.active a, .nav-item a:hover {
  color: var(--text-main);
  background: rgba(255,255,255,0.06);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.preset-pill{
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--primary-green);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
}

.preset-dot {
  width: 6px;
  height: 6px;
  background: var(--primary-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-green);
}

.glass-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
  border-radius: 999px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
  animation: blink 1.2s ease infinite;
}

@keyframes blink {
  0%, 100% {opacity: 1; transform: scale(1);}
  50% {opacity: 0.3; transform: scale(0.8);}
}

.btn-share {
  background: #131b2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 0.825rem;
  line-height: 1.3;
  cursor: pointer;
  gap: 6px;
  transition: all 0.2s;
}

.btn-share:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}

main {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}

/* Control panel */
.controls-panel {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 24px;
  justify-content: space-between;
}

.filters-group {
  display: flex;
  gap: 12px;
  flex: 1;
}

.select-box {
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.select-box:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  background: var(--bg);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-refresh {
  background: var(--primary);
  color: var(--card-bg);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  gap: 8px;
  transition: background 0.15s ease;
}

/* Table container*/
.table-container {
  background: var(--card-bg);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: var(--table-th-bg);
  padding: 14px 18px;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--panel-border);
}

th:hover {
  color: var(--text);
}

td {
  padding: 14px 18px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--table-td-border);
  color: var(--table-td-text);
}

tr:hover td {
  background-color: var(--row-hover);
}

.apt-name {
  font-weight: 600;
  color: var(--text);
}

.price-tag {
  font-weight: 700;      
  color: var(--primary);
  font-size: 1rem;
}

.area-tag {
  background: rgba(56,189,248,0.1);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
}

.floor-tag {
  background: rgba(148,163,184,0.15);
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
}
