/* ═══════════════════════════════════════════
   GSLink — Custom styles (Bootstrap base)
   ═══════════════════════════════════════════ */

:root {
  --navy:    #1B2A4A;
  --navy-2:  #243355;
  --green:   #2DB84B;
  --green-d: #1E9438;
  --green-s: #E4F7E9;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: #F2F4F8;
  -webkit-font-smoothing: antialiased;
}

/* ── Custom color helpers ── */
.text-navy    { color: var(--navy) !important; }
.text-green   { color: var(--green) !important; }
.bg-navy      { background-color: var(--navy) !important; }
.btn-navy {
  background-color: var(--navy);
  color: #fff;
  border: none;
  transition: background .15s;
}
.btn-navy:hover { background-color: var(--navy-2); color: #fff; }

/* ── LOGO SIZES & INVERT ── */
.logo-nav {
  height: 64px;
  width: auto;
  display: block;
}

/* Logo di atas background gelap → invert ke putih */
.logo-dark-bg {
  height: 120px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.logo-footer {
  height: 48px;
}

/* ── NAV ── */
.navbar { height: 72px; }

/* ── HERO ── */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  padding: 120px 0 88px;
  text-align: center;
}
.hero-grid-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  filter: blur(110px); pointer-events: none;
}
.hero-glow-1 { width: 680px; height: 680px; background: rgba(45,184,75,.15); top: -240px; right: -160px; }
.hero-glow-2 { width: 420px; height: 420px; background: rgba(80,120,255,.09); bottom: -140px; left: -80px; }


.hero-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -1.5px;
}

.hero-desc {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
  max-width: 600px;
}

.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px; padding: 9px 18px;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,.78);
  backdrop-filter: blur(4px);
}

/* ── FILTER BAR ── */
.filter-bar {
  top: 72px; /* below the fixed navbar */
}

.filter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #9AAABB;
  white-space: nowrap;
}

.filter-sep {
  width: 1px; height: 28px;
  background: #dee2e6;
  flex-shrink: 0;
}

.filter-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border-radius: 50px;
  border: 1.5px solid #dee2e6;
  background: #F2F4F8;
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  color: #7D8EA5; cursor: pointer;
  transition: all .14s; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill.active {
  background: var(--navy); border-color: var(--navy); color: #fff;
}


/* ── TENANT CARD ── */
.tenant-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 18px;
  border: 1px solid #E0E6EF;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.tenant-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 56px rgba(15,27,45,.13);
  border-color: transparent;
}

.tenant-card__photo {
  height: 220px;
  background: linear-gradient(145deg, var(--c1, #111), var(--c2, #333));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.tenant-card__icon {
  width: 100px; height: 100px;
  display: flex; align-items: center; justify-content: center;
}
.tenant-card__icon svg {
  width: 100%; height: 100%;
  stroke: rgba(255,255,255,.22);
}

.tenant-card__halal {
  position: absolute; top: 14px; left: 14px;
  background: var(--green); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .7px;
  padding: 4px 11px; border-radius: 50px;
}

.tenant-card__body {
  padding: 20px;
  display: flex; flex-direction: column;
  flex: 1;
}

.tenant-card__menu {
  list-style: none; padding: 0; margin: 0;
  border: 1px solid #E8EDF4;
  border-radius: 10px; overflow: hidden;
  background: #F8F9FC;
}
.tenant-card__menu li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  font-size: 13px; color: #2D3748;
  border-bottom: 1px solid #E8EDF4;
}
.tenant-card__menu li:last-child { border-bottom: none; }
.tenant-card__menu li strong {
  color: var(--green-d); font-weight: 700;
  flex-shrink: 0; margin-left: 12px;
}

.maps-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--green-s); color: var(--green-d);
  padding: 6px 16px; border-radius: 50px;
  font-size: 12px; font-weight: 700;
  transition: all .15s;
}
.tenant-card:hover .maps-btn {
  background: var(--green); color: #fff;
}

/* Empty state */
#emptyState svg { opacity: .3; }

/* ── SEARCH INPUT (diperkecil) ── */
.search-input-group {
  min-width: 0;
  flex: 1;
}
.search-input-group .input-group-text {
  height: 46px;
  border-radius: 12px 0 0 12px;
  border-color: var(--border);
}
.search-input-group .form-control {
  height: 46px;
  border-radius: 0 12px 12px 0;
  border-color: var(--border);
  font-size: 13px;
}
.search-input-group .form-control:focus {
  border-color: var(--green);
  box-shadow: none;
}

/* ── KAWASAN DROPDOWN ── */
.kawasan-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.kawasan-select-icon {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}
.kawasan-select {
  height: 46px;
  padding: 0 36px 0 32px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background-color: #F2F4F8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%237D8EA5' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
  white-space: nowrap;
}
.kawasan-select:focus {
  outline: none;
  border-color: var(--green);
  background-color: #fff;
}
/* When a non-default value is selected, highlight */
.kawasan-select.has-value {
  border-color: var(--navy);
  background-color: #EEF1F7;
  color: var(--navy);
}

/* ── NEARBY BUTTON ── */
.nearby-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 0 18px; height: 46px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  transition: all .18s; white-space: nowrap;
}
.nearby-btn:hover { border-color: var(--navy); color: var(--navy); }

.nearby-btn--active {
  background: var(--green-s);
  border-color: var(--green);
  color: var(--green-d);
}
.nearby-btn--active svg { stroke: var(--green-d); }

.nearby-btn--loading {
  opacity: .7; pointer-events: none;
}
.nearby-btn--loading svg {
  animation: spin .8s linear infinite;
  transform-origin: center;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── DISTANCE BADGE ── */
.dist-badge {
  position: absolute; bottom: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 50px;
  pointer-events: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-title { letter-spacing: -1px; }
  .hero-desc { font-size: 14px; }
  .filter-sep { display: none; }
  .tenant-card__photo { height: 180px; }
  .tenant-card__icon { width: 80px; height: 80px; }
}
