/* ===========================================================
   SkopX — shared stylesheet for all pages
   (Laravel note: this maps 1:1 to a single compiled CSS asset;
   the header/footer blocks below map to resources/views/partials)
=========================================================== */
:root {
  --green-deep: #1a3a8f;
  --green-mid: #2563eb;
  --green-bright: #3b82f6;
  --green-tint: #eff6ff;
  --green-tint-2: #dbeafe;
  --cream: #f8fafc;
  --ink: #0f172a;
  --ink-soft: #64748b;
  --line: #e2e8f0;
  --card: #FFFFFF;
  --gold: #ff9900;
  --gold-tint: #fff7ed;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Poppins', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: 'Inter', sans-serif;
  cursor: pointer;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-row1 {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: auto;
  height: auto;
  border-radius: 8px;
  background: linear-gradient(135deg, #1a3a8f, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.brand-name {
  font-family: 'Poppins', sans-serif;
  font-size: 22px;
  color: #0a1628;
  font-weight: 800;
}

.header-search {
  width: 220px;
  max-width: 240px;
  flex: 0 0 220px;
  display: flex;
  align-items: center;
  background: #f0f4f8;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 3px 3px 3px 12px;
  gap: 4px;
}

.header-search .city-field {
  display: none;
}

.header-search input {
  flex: 1;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 5px 6px;
  font-size: 12.5px;
  color: #1e293b;
  font-family: 'Poppins', sans-serif;
}

.header-search input::placeholder {
  color: #94a3b8;
}

.header-search button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  padding: 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.post-btn {
  background: linear-gradient(135deg, #1a3a8f, #2563eb);
  color: #fff;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Poppins', sans-serif;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 12px;
  margin-right: 12px;
}

.primary-nav a {
  color: #64748b;
  font-weight: 500;
  padding: 4px 0;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.primary-nav a.active {
  color: #1a3a8f;
  font-weight: 700;
  border-bottom: 2px solid #2563eb;
}

.primary-nav a:hover {
  color: #1a3a8f;
}

.secondary-nav {
  display: flex;
  gap: 18px;
  color: #64748b;
}

.secondary-nav a:hover {
  color: #1a3a8f;
}

.breadcrumb-bar {
  background: var(--green-tint);
  padding: 10px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.breadcrumb-bar a {
  color: var(--green-mid);
  font-weight: 600;
}

/* ---------- Buttons / chips shared ---------- */
.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(135deg, #1a3a8f, #2563eb);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, #ff9900, #f97316);
  color: #fff;
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.btn-tint {
  background: var(--green-tint);
  color: var(--green-deep);
}

.chip {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-block;
}

.chip.active {
  background: linear-gradient(135deg, #1a3a8f, #2563eb);
  color: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--green-tint-2);
  color: var(--green-deep);
}

.badge.gold {
  background: var(--gold-tint);
  color: #c2410c;
}

/* ---------- Hero (home page) ---------- */
.hero {
  padding: 44px 0 30px;
}

.eyebrow-pill {
  display: inline-block;
  background: var(--green-tint);
  color: var(--green-deep);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 36px;
  line-height: 1.25;
  max-width: 680px;
}

.hero h1 .accent {
  color: var(--green-bright);
}

.hero p {
  color: var(--ink-soft);
  font-size: 15.5px;
  margin-top: 12px;
  max-width: 520px;
}

.trust-row {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
}

.trust-item .num {
  font-weight: 700;
  color: var(--ink);
  display: block;
  font-size: 14px;
}

.trust-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* ---------- Sector cards ---------- */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.sector-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: box-shadow .15s ease, transform .15s ease;
}

.sector-card:hover {
  box-shadow: 0 10px 26px rgba(15, 94, 46, 0.10);
  transform: translateY(-2px);
}

.sector-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

.sector-card h3 {
  font-size: 15.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.sector-card .count {
  font-size: 12px;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 6px;
}

.sector-card p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 8px 0 10px;
  line-height: 1.4;
}

.sector-card .go {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-deep);
}

/* ---------- Section shared ---------- */
.section {
  padding: 36px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 23px;
}

.section-head .see-all {
  font-size: 13px;
  color: var(--green-mid);
  font-weight: 700;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 4px;
}

/* ---------- Featured merchant card (home + shop directory) ---------- */
.merchant-card {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  transition: box-shadow .15s ease;
}

.merchant-card:hover {
  box-shadow: 0 10px 26px rgba(15, 94, 46, 0.10);
}

.merchant-thumb {
  width: 150px;
  height: 110px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  overflow: hidden;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  position: relative;
}

.merchant-thumb .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.merchant-body {
  flex: 1;
  min-width: 0;
}

.merchant-body h3 {
  font-size: 17px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.merchant-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
  flex-wrap: wrap;
}

.merchant-meta .rating {
  color: var(--ink);
  font-weight: 700;
}

.merchant-meta .star {
  color: var(--gold);
}

.merchant-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
  max-width: 520px;
}

.merchant-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.merchant-tags span {
  font-size: 11.5px;
  background: var(--green-tint);
  color: var(--green-deep);
  padding: 3px 9px;
  border-radius: 999px;
}

.merchant-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 150px;
}

.merchant-actions .btn {
  width: 100%;
  text-align: center;
}

/* ---------- Card grid (products) ---------- */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
}

.card:hover {
  box-shadow: 0 10px 26px rgba(15, 94, 46, 0.10);
  transform: translateY(-2px);
}

.card-img {
  height: 130px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
}

.card-body {
  padding: 16px;
}

.card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--green-mid);
  background: var(--green-tint);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 16px;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.card .loc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--green-deep);
}

/* ---------- Deals band ---------- */
.deals-band {
  background: var(--green-tint);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.deal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.deal-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--line);
}

.deal-card .off {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}

.deal-card h4 {
  font-size: 14.5px;
  margin: 6px 0 4px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}

.deal-card p {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.deal-code {
  font-size: 11.5px;
  background: var(--green-tint-2);
  color: var(--green-deep);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 700;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-deep);
  border-radius: var(--radius-lg);
  padding: 34px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  font-size: 24px;
}

.cta-band p {
  color: #CFE3D2;
  font-size: 13.5px;
  margin-top: 6px;
}

.cta-band .actions {
  display: flex;
  gap: 10px;
}

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: none;
  padding: 0;
  margin-top: 0;
  background: #0a1628;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-grid h4 {
  font-size: 14px;
  color: #fff;
  margin-bottom: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.footer-grid a {
  display: block;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  flex-wrap: wrap;
  gap: 8px;
}

/* ===========================================================
   Shop directory page
=========================================================== */
.results-layout {
  display: grid;
  grid-template-columns: 270px 1fr 260px;
  gap: 22px;
  align-items: start;
}

.filter-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  position: sticky;
  top: 96px;
}

.filter-panel h4 {
  font-size: 13.5px;
  margin: 0 0 12px;
}

.filter-group {
  margin-bottom: 18px;
}

.filter-group .label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: .02em;
  margin-bottom: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  padding: 6px 0;
}

.filter-option input {
  accent-color: var(--green-bright);
}

.filter-option .n {
  color: var(--ink-soft);
  font-size: 12px;
}

.map-box {
  background: var(--green-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-mid);
  font-size: 13px;
  margin-bottom: 16px;
  font-weight: 600;
}

.results-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.results-head h1 {
  font-size: 24px;
}

.results-count {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.active-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.promo-strip {
  background: linear-gradient(120deg, var(--green-deep), var(--green-mid));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.promo-strip p {
  margin: 2px 0 0;
  color: #DDEBD9;
  font-size: 13px;
  max-width: 420px;
}

.sidebar-live h4 {
  font-size: 13.5px;
  margin-bottom: 12px;
}

.live-item {
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.live-item b {
  color: var(--ink);
}

.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

.pagination a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.pagination a.active {
  background: var(--green-deep);
  color: #fff;
  border-color: var(--green-deep);
}

/* ===========================================================
   Business detail page
=========================================================== */
.detail-header {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  align-items: flex-start;
  flex-wrap: wrap;
}

.detail-photo {
  width: 260px;
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.detail-photo .official {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.detail-info {
  flex: 1;
  min-width: 260px;
}

.detail-info h1 {
  font-size: 26px;
}

.detail-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.detail-badges {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.stat-strip {
  display: flex;
  gap: 22px;
  margin-top: 16px;
}

.stat-strip .s {
  font-size: 12px;
  color: var(--ink-soft);
}

.stat-strip .s b {
  display: block;
  color: var(--green-deep);
  font-size: 14px;
}

.tab-row {
  display: flex;
  gap: 26px;
  border-bottom: 1px solid var(--line);
  margin: 18px 0 26px;
  font-size: 13.5px;
}

.tab-row a {
  padding-bottom: 10px;
  color: var(--ink-soft);
  font-weight: 600;
}

.tab-row a.active {
  color: var(--green-deep);
  border-bottom: 2px solid var(--green-bright);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.product-img {
  height: 130px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.product-body {
  padding: 14px;
}

.product-body h4 {
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--ink);
}

.product-sku {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.quote-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}

.quote-box h4 {
  font-size: 14.5px;
  margin-bottom: 12px;
}

.quote-box .field {
  margin-bottom: 10px;
}

.quote-box label {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.quote-box input,
.quote-box select,
.quote-box textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #fff;
}

.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
}

.side-card h4 {
  font-size: 13.5px;
  margin-bottom: 10px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 5px 0;
}

.hours-row.today {
  color: var(--green-deep);
  font-weight: 700;
}

.review-summary {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--green-tint);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}

.review-summary .score {
  font-size: 38px;
  font-family: 'Fraunces', serif;
  color: var(--green-deep);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 3px 0;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--gold);
}

.review-item {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.review-item .who {
  font-weight: 700;
  font-size: 13.5px;
}

.review-item .when {
  float: right;
  font-size: 12px;
  color: var(--ink-soft);
}

.review-item p {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.5;
}

/* ===========================================================
   Rental detail (rental-show) page
=========================================================== */
.rshow-hero {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.rshow-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rshow-hero-placeholder {
  font-size: 80px;
}

.rshow-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--green-deep);
  color: #fff;
}

.rshow-tag.gold {
  background: var(--gold);
  color: #3A2C0B;
}

.rshow-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}

.rshow-main {
  min-width: 0;
}

.rshow-title {
  font-size: 26px;
  line-height: 1.3;
  margin-bottom: 8px;
}

.rshow-loc {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.rshow-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.rshow-amt {
  font-size: 28px;
  font-weight: 800;
  color: var(--green-deep);
  font-family: 'Fraunces', serif;
}

.rshow-per {
  font-size: 14px;
  color: var(--ink-soft);
}

.rshow-deposit {
  font-size: 13px;
  color: var(--ink-soft);
}

.rshow-facts-strip {
  display: flex;
  gap: 0;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.rshow-fact-item {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  border-right: 1px solid var(--line);
  background: var(--card);
}

.rshow-fact-item:last-child {
  border-right: none;
}

.rshow-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.rshow-section {
  margin-top: 28px;
}

.rshow-section h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.rshow-section p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

.rshow-amenities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.rshow-amenity {
  background: var(--green-tint);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13px;
  color: var(--green-deep);
  font-weight: 600;
}

.rshow-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media(max-width:980px) {
  .rshow-layout {
    grid-template-columns: 1fr;
  }

  .rshow-sidebar {
    position: static;
  }

  .rshow-hero {
    height: 240px;
  }

  .rshow-amenities {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width:640px) {
  .rshow-facts-strip {
    flex-wrap: wrap;
  }

  .rshow-fact-item {
    min-width: 50%;
    border-bottom: 1px solid var(--line);
  }

  .rshow-amenities {
    grid-template-columns: 1fr;
  }
}

/* ===========================================================
   Registration page
=========================================================== */
.register-layout {
  max-width: 560px;
  margin: 0 auto;
}

.register-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.register-header {
  text-align: center;
  margin-bottom: 32px;
}

.register-header h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

.register-header p {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.register-form .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.register-form .field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.register-form .req {
  color: #D44;
}

.register-form .optional {
  color: var(--ink-soft);
  font-weight: 400;
  font-size: 12px;
  margin-left: 4px;
}

.register-form input,
.register-form textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease;
  outline: none;
}

.register-form input:focus,
.register-form textarea:focus {
  border-color: var(--green-bright);
}

.register-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.otp-input-row {
  display: flex;
  gap: 12px;
}

.otp-input-row input {
  flex: 1;
}

.otp-btn {
  padding: 0 18px;
  white-space: nowrap;
  font-size: 13.5px;
}

.otp-message {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.submit-row {
  margin-top: 32px;
  text-align: center;
}

.submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 15px;
}

.terms-text {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 14px;
}

@media(max-width:640px) {
  .register-card {
    padding: 24px;
  }

  .otp-input-row {
    flex-direction: column;
  }

  .otp-btn {
    width: 100%;
    padding: 12px;
  }
}

/* ===========================================================
   Home rentals page — search bar
=========================================================== */
.rental-search-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin: 18px 0;
}

.rental-search-bar .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rental-search-bar label {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rental-search-bar select,
.rental-search-bar input {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 10px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
}

.rental-search-bar button {
  background: var(--green-deep);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0 20px;
  font-weight: 700;
  font-size: 13.5px;
  align-self: end;
  height: 40px;
}

.rentals-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 22px;
  align-items: start;
}

.rental-item {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 14px;
  transition: box-shadow .15s ease;
}

.rental-item:hover {
  box-shadow: 0 10px 26px rgba(15, 94, 46, 0.10);
}

.rental-thumb {
  width: 180px;
  height: 130px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  position: relative;
  overflow: hidden;
}

.rental-thumb .tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--green-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.rental-thumb .tag.gold {
  background: var(--gold);
  color: #3A2C0B;
}

.rental-info {
  flex: 1;
}

.rental-info h3 {
  font-size: 16.5px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
}

.rental-info .loc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.rental-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 8px;
}

.rental-price-row .amt {
  font-size: 19px;
  font-weight: 800;
  color: var(--green-deep);
  font-family: 'Fraunces', serif;
}

.rental-price-row .per {
  font-size: 12px;
  color: var(--ink-soft);
}

.rental-facts {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.rental-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.rental-tags span {
  font-size: 11px;
  background: var(--green-tint);
  color: var(--green-deep);
  padding: 3px 9px;
  border-radius: 999px;
}

.rental-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  width: 150px;
}

.rental-actions .btn {
  width: 100%;
  text-align: center;
}

/* Shared real-photo thumbnail helper */
.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

/* ===========================================================
   Mobile Header Components
=========================================================== */

/* Hamburger button — hidden on desktop */
.sx-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 60;
  flex-shrink: 0;
}

.sx-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #1e293b;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.sx-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.sx-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.sx-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav drawer */
.sx-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
}

.sx-mobile-nav.open {
  transform: translateX(0);
}

.sx-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.sx-mobile-overlay.open {
  opacity: 1;
  visibility: visible;
}

.sx-mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.sx-mobile-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.sx-mobile-close:hover {
  background: #f1f5f9;
  color: #1e293b;
}

.sx-mobile-search {
  display: flex;
  align-items: center;
  margin: 16px 20px 8px;
  background: #f0f4f8;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  gap: 4px;
}

.sx-mobile-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  padding: 6px 4px;
}

.sx-mobile-search input::placeholder {
  color: #94a3b8;
}

.sx-mobile-search button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2563eb;
  border: none;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.sx-mobile-links {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
}

.sx-mobile-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  font-family: 'Poppins', sans-serif;
  transition: background 0.15s;
  border-left: 3px solid transparent;
}

.sx-mobile-links a:hover,
.sx-mobile-links a.active {
  background: #e8f0fe;
  color: #1a3a8f;
  border-left-color: #2563eb;
  font-weight: 600;
}

.sx-mobile-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  margin-top: auto;
  border-top: 1px solid #e2e8f0;
}

.sx-mobile-login {
  flex: 1;
  text-align: center;
  padding: 11px 14px;
  border: 2px solid #2563eb;
  color: #2563eb;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
}

.sx-mobile-signup {
  flex: 1;
  text-align: center;
  padding: 11px 14px;
  background: linear-gradient(135deg, #1a3a8f, #2563eb);
  color: #fff;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  border: none;
  font-family: 'Poppins', sans-serif;
}

/* Login/Signup button styles */
.sx-login-btn {
  padding: 9px 20px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
  border: 2px solid #2563eb !important;
  color: #2563eb !important;
  font-weight: 600 !important;
  font-family: 'Poppins', sans-serif !important;
}

.sx-signup-btn {
  background: linear-gradient(135deg, #1a3a8f, #2563eb) !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 9px 20px !important;
  font-size: 13px !important;
  font-family: 'Poppins', sans-serif !important;
}

/* ===========================================================
   Responsive — existing pages + header + footer
=========================================================== */
@media(max-width:980px) {
  .primary-nav {
    display: none;
  }

  .results-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .rentals-layout {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .rental-search-bar {
    grid-template-columns: 1fr 1fr;
  }
}

@media(max-width:768px) {

  /* Header becomes mobile */
  .header-row2 {
    display: none !important;
  }

  .header-actions {
    display: none !important;
  }

  .sx-hamburger {
    display: flex !important;
  }

  .sx-avatar-mobile-hide {
    display: none !important;
  }

  .header-search {
    order: 3;
    max-width: none !important;
    width: 100% !important;
    flex: none !important;
  }

  .header-row1 {
    flex-wrap: wrap;
    gap: 10px !important;
    padding: 10px 0 !important;
  }

  .brand {
    flex: 1;
  }

  /* Footer stacked */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    text-align: center;
  }

  .footer-grid>div:first-child p {
    margin: 0 auto;
  }

  .footer-grid>div:first-child>div:last-child {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media(max-width:640px) {
  .header-search {
    order: 3;
    max-width: none;
    width: 100%;
  }

  .secondary-nav {
    display: none;
  }

  .card-row {
    grid-template-columns: 1fr;
  }

  .sector-grid {
    grid-template-columns: 1fr;
  }

  .merchant-card {
    flex-direction: column;
  }

  .merchant-thumb {
    width: 100%;
    height: 150px;
  }

  .merchant-actions {
    flex-direction: row;
    width: 100%;
  }

  .rental-item {
    flex-direction: column;
  }

  .rental-thumb {
    width: 100%;
    height: 160px;
  }

  /* Prevent overflow */
  body {
    overflow-x: hidden;
  }

  .wrap {
    padding: 0 16px;
  }
}

/* ===========================================================
   Business Enquiry page
=========================================================== */

/* Page header */
.enq-wrap {
  padding-top: 28px;
  padding-bottom: 40px;
}

.enq-page-head {
  padding: 20px 0 26px;
}

.enq-page-head h1 {
  font-size: 26px;
  line-height: 1.3;
  margin-top: 10px;
}

.enq-name-accent {
  color: var(--green-bright);
}

.enq-sub {
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.55;
}

.enq-sub strong {
  color: var(--ink);
}

/* Two-column layout */
.enq-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}

/* ── Form column ── */
.enq-form-col {
  min-width: 0;
}

/* Success banner */
.enq-success-banner {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--green-tint);
  border: 1.5px solid var(--green-bright);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.enq-success-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.enq-success-banner strong {
  font-size: 14.5px;
  color: var(--green-deep);
}

.enq-success-banner p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 4px 0 0;
}

/* Form card wrapper */
.enq-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 18px;
}

/* Section sub-headings inside form */
.enq-section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* Enquiry type cards */
.enq-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}

.enq-type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  text-align: center;
}

.enq-type-card input[type="radio"] {
  display: none;
}

.enq-type-card:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.enq-type-card.selected {
  border-color: var(--green-bright);
  background: var(--green-tint);
  box-shadow: 0 0 0 3px rgba(8, 143, 54, .10);
}

.enq-type-icon {
  font-size: 20px;
}

.enq-type-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}

/* Field rows & fields */
.enq-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.enq-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.enq-field:last-child {
  margin-bottom: 0;
}

.enq-field label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.enq-req {
  color: #D44;
}

.enq-field input,
.enq-field select,
.enq-field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease;
  outline: none;
}

.enq-field input:focus,
.enq-field select:focus,
.enq-field textarea:focus {
  border-color: var(--green-bright);
}

.enq-field textarea {
  resize: vertical;
  line-height: 1.5;
}

.enq-char-hint {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.enq-error {
  font-size: 11.5px;
  color: #C0392B;
  margin-top: 3px;
}

/* Contact preference chips */
.enq-contact-chips {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.enq-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.enq-contact-chip input[type="radio"] {
  display: none;
}

.enq-contact-chip:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.enq-contact-chip.selected {
  border-color: var(--green-bright);
  background: var(--green-tint);
  color: var(--green-deep);
}

/* Submit row */
.enq-submit-row {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 6px;
}

.enq-submit-btn {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: .01em;
  transition: opacity .15s ease, transform .1s ease;
}

.enq-submit-btn:hover:not(:disabled) {
  opacity: .9;
  transform: translateY(-1px);
}

.enq-submit-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.enq-privacy {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 10px;
  text-align: center;
}

/* Alt-contact row */
.enq-alt-contact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.enq-alt-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.enq-alt-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.enq-alt-btn {
  flex: 1;
  min-width: 120px;
  text-align: center;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.enq-alt-btn:hover {
  border-color: var(--green-mid);
  background: var(--green-tint);
}

.enq-alt-call {
  border-color: var(--green-deep);
  color: var(--green-deep);
}

.enq-alt-wa {
  border-color: #25D366;
  color: #128C7E;
}

.enq-alt-wa:hover {
  background: #f0fff5;
  border-color: #25D366;
}

/* ── Sidebar ── */
.enq-sidebar {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Business card */
.enq-biz-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.enq-biz-thumb {
  height: 130px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  position: relative;
}

.enq-biz-official {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--green-deep);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}

.enq-biz-info {
  padding: 16px;
}

.enq-biz-info h2 {
  font-size: 17px;
  margin-bottom: 4px;
}

.enq-biz-tagline {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 10px;
}

.enq-biz-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.enq-biz-stats {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.enq-stat {
  font-size: 12px;
  color: var(--ink-soft);
}

.enq-stat b {
  display: block;
  font-size: 14px;
  color: var(--green-deep);
  margin-bottom: 1px;
}

/* Trust list */
.enq-trust-card {}

.enq-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.enq-trust-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-soft);
}

.enq-trust-icon {
  font-size: 15px;
  flex-shrink: 0;
}

/* Map card */
.enq-map-placeholder {
  height: 110px;
  background: linear-gradient(135deg, var(--green-tint), #c5ddf4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 10px;
}

.enq-address {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
  line-height: 1.5;
}

.enq-dir-btn {
  display: block;
  text-align: center;
  width: 100%;
}

/* Responsive */
@media(max-width:980px) {
  .enq-layout {
    grid-template-columns: 1fr;
  }

  .enq-sidebar {
    position: static;
  }
}

@media(max-width:640px) {
  .enq-type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .enq-field-row {
    grid-template-columns: 1fr;
  }

  .enq-alt-row {
    flex-direction: column;
  }

  .enq-alt-btn {
    min-width: auto;
  }

  .enq-page-head h1 {
    font-size: 21px;
  }
}

/* ===========================================================
   System-Wide Dark Mode & Dynamic Theme Overrides
=========================================================== */
[data-theme="dark"] {
  --cream: #0E1310;
  --ink: #F0F4F1;
  --ink-soft: #9EB2A2;
  --line: #222E26;
  --card: #151E18;
}

[data-theme="dark"] body {
  background-color: var(--cream);
  color: var(--ink);
}

[data-theme="dark"] header.site-header {
  background: var(--card);
  border-bottom-color: var(--line);
}

[data-theme="dark"] .deal-card,
[data-theme="dark"] .btn-outline,
[data-theme="dark"] .enq-alt-btn,
[data-theme="dark"] .enq-dir-btn {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .enq-field input,
[data-theme="dark"] .enq-field select,
[data-theme="dark"] .enq-field textarea,
[data-theme="dark"] .register-field input,
[data-theme="dark"] .register-field textarea,
[data-theme="dark"] .header-search input {
  background: #19231D;
  border-color: var(--line);
  color: var(--ink);
}

[data-theme="dark"] .enq-field input:focus,
[data-theme="dark"] .enq-field select:focus,
[data-theme="dark"] .enq-field textarea:focus,
[data-theme="dark"] .register-field input:focus,
[data-theme="dark"] .register-field textarea:focus {
  background: #1E2B23;
  border-color: var(--green-bright);
}

[data-theme="dark"] .enq-type-card {
  background: var(--card);
  border-color: var(--line);
}

[data-theme="dark"] .enq-type-card.selected {
  border-color: var(--green-bright);
  background: var(--green-tint);
}

[data-theme="dark"] .enq-contact-chip {
  background: var(--card);
  border-color: var(--line);
}

[data-theme="dark"] .sector-card,
[data-theme="dark"] .merchant-card,
[data-theme="dark"] .card,
[data-theme="dark"] .filter-panel,
[data-theme="dark"] .enq-form,
[data-theme="dark"] .enq-biz-card,
[data-theme="dark"] .enq-alt-contact,
[data-theme="dark"] .register-card,
[data-theme="dark"] .rshow-main-card,
[data-theme="dark"] .rshow-amenities-card,
[data-theme="dark"] .rshow-agent-card,
[data-theme="dark"] .rshow-contact-box {
  background: var(--card);
  border-color: var(--line);
}

[data-theme="dark"] .sector-card h3,
[data-theme="dark"] .merchant-body h3,
[data-theme="dark"] .card h3,
[data-theme="dark"] .deal-card h4,
[data-theme="dark"] .footer-grid h4,
[data-theme="dark"] .enq-biz-info h2,
[data-theme="dark"] .rshow-title,
[data-theme="dark"] .rshow-agent-name {
  color: var(--ink);
}

/* ===========================================================
   Theme Customizer Drawer & Appearance Widget
=========================================================== */
.thm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.thm-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.thm-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 90vw;
  background: var(--card);
  color: var(--ink);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.18);
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}

.thm-drawer.open {
  transform: translateX(0);
}

.thm-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.thm-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.thm-title-icon {
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thm-title {
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  font-family: 'Inter', sans-serif;
}

.thm-subtitle {
  font-size: 12px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.thm-close-btn {
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--ink-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.thm-close-btn:hover {
  background: var(--green-tint);
  color: var(--ink);
}

.thm-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.thm-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.thm-section-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-soft);
}

.thm-subhint {
  font-size: 12px;
  color: var(--ink-soft);
  margin: -4px 0 6px;
  line-height: 1.4;
}

/* Mode pill segmented control */
.thm-mode-toggle {
  display: flex;
  background: var(--green-tint);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  gap: 4px;
}

.thm-mode-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  transition: all .2s ease;
}

.thm-mode-btn:hover {
  color: var(--ink);
}

.thm-mode-btn.active {
  background: var(--green-deep);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* Swatches Grid (Chrome Style) */
.thm-swatches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.thm-swatch {
  aspect-ratio: 1;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.thm-swatch:hover {
  transform: scale(1.05);
  border-color: var(--green-mid);
}

.thm-swatch.active {
  border-color: var(--green-deep);
  box-shadow: 0 0 0 2px var(--green-bright);
}

.thm-swatch-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.thm-swatch-half {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
}

.thm-check {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 18px;
  height: 18px;
  background: var(--green-deep);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .15s ease, transform .15s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.thm-swatch.active .thm-check {
  opacity: 1;
  transform: scale(1);
}

/* Custom Eyedropper Swatch */
.thm-custom-swatch {
  background: linear-gradient(135deg, #4F46E5, #06B6D4);
  color: #fff;
  border-color: var(--line);
}

.thm-custom-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* Custom Color Inputs Box */
.thm-custom-color-box {
  background: var(--green-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.thm-color-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thm-native-picker-wrapper {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
}

.thm-native-picker {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 60px;
  height: 60px;
  border: none;
  cursor: pointer;
  background: transparent;
}

.thm-hex-input-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
}

.thm-hex-prefix {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-right: 6px;
}

.thm-hex-text {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  font-family: monospace;
  font-weight: 600;
  color: var(--ink);
  padding: 6px 0;
}

.thm-btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--card);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
  flex-shrink: 0;
}

.thm-btn-icon:hover {
  border-color: var(--green-bright);
  color: var(--green-deep);
}

/* Drawer Footer */
.thm-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--line);
  background: var(--card);
}

.thm-footer-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: opacity .15s ease;
}

.thm-btn-ghost {
  background: var(--green-tint);
  color: var(--green-deep);
}

.thm-btn-done {
  background: var(--green-deep);
  color: #fff;
}

.thm-footer-btn:hover {
  opacity: .9;
}

/* Floating Action Trigger Button */
.thm-floating-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  background: var(--card);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  padding: 8px 16px 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13.5px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.thm-floating-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  border-color: var(--green-bright);
}

.thm-fab-icon {
  font-size: 16px;
}

.thm-fab-label {
  color: var(--ink);
}