/* ============================================================
   Smart Property Portal – Custom UI Overrides & Responsive Fixes
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --primary: #1563df;
  --primary-dark: #0d3b7c;
  --primary-light: #eef4ff;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1a1f36;
  --dark-2: #2d3561;
  --gray: #64748b;
  --gray-light: #f1f5f9;
  --border: #e2e8f0;
  --white: #ffffff;
  --sidebar-bg: linear-gradient(180deg, #1a1f36 0%, #2d3561 100%);
  --sidebar-width: 260px;
  --header-height: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --transition: all 0.25s ease;
}

/* ── Base & Typography ─────────────────────────────────────── */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--dark);
  line-height: 1.6;
  background: #f8fafc;
}

/* ── RTL Toggle Hide ────────────────────────────────────────── */
#toggle-rtl {
  display: none !important;
}

/* ── Header ──────────────────────────────────────────────────── */
header#header.main-header {
  height: var(--header-height);
  background: var(--white) !important;
  box-shadow: 0 1px 20px rgba(0,0,0,0.08) !important;
  border-bottom: 1px solid var(--border);
}

.header-lower .inner-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
  gap: 16px;
}

.header-lower .inner-header-left {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  min-width: 0;
}

.header-lower .nav-outer.flex {
  flex: 1;
}

.header-lower .inner-header-right.header-account {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Ensure logo doesn't shrink */
.header-lower .logo-box {
  flex-shrink: 0;
  margin-right: 24px;
}

/* Nav links */
.main-menu .navigation > li > a {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  color: var(--dark);
  transition: color 0.2s;
}
.main-menu .navigation > li > a:hover {
  color: var(--primary);
}

/* Buttons in header */
/* override default min-width applied by styles.css so content can shrink */
.header-account .tf-btn {
  min-width: 0 !important;
}

.tf-btn.btn-line.btn-login {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
  display: inline-flex;             /* allow icon + text alignment */
  align-items: center;
  gap: 6px;
  /* no hard max-width now that PHP truncates before rendering */
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-account .btn-login svg {
  flex-shrink: 0;                   /* keep icon visible */
}
.tf-btn.primary {
  font-size: 13px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  white-space: nowrap;
}

/* ── DASHBOARD LAYOUT ────────────────────────────────────────── */
.layout-wrap {
  display: flex;
  min-height: 100vh;
  background: #f8fafc;
}

/* ─ Sidebar ─ */
.sidebar-menu-dashboard {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-height);               /* sit below the fixed header */
  left: 0;
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  padding: 20px 0 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}

.sidebar-menu-dashboard::-webkit-scrollbar { width: 4px; }
.sidebar-menu-dashboard::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }

.sidebar-menu-dashboard .logo-box {
  display: block;
  padding: 0 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}

.sidebar-menu-dashboard .logo-box img {
  max-width: 140px;
  height: auto;
}

/* Sidebar Menu Box */
.sidebar-menu-dashboard .menu-box {
  padding: 0 12px;
  flex: 1;
}

.sidebar-menu-dashboard .menu-box .title.fw-6 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0 8px;
  margin-bottom: 8px;
}

/* Sidebar Nav Items */
.box-menu-dashboard {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu-item {
  margin-bottom: 2px;
}

.nav-menu-link {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: var(--transition);
  gap: 8px;
  white-space: nowrap;
}

.nav-menu-link:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  text-decoration: none;
}

.nav-menu-item.active .nav-menu-link {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(21,99,223,0.4);
}

/* Sidebar User Info */
.sidebar-user-info {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
}

/* Sidebar Close Button (mobile) */
.dash-sidebar-close {
  display: none;
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  z-index: 10;
  transition: background 0.2s;
}
.dash-sidebar-close:hover { background: rgba(255,255,255,0.2); }

/* Sidebar Backdrop */
.dash-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1039;
  opacity: 0;
  transition: opacity 0.3s;
}
.dash-sidebar-backdrop.active { opacity: 1; }

/* ─ Main Content ─ */
/* Sidebar is position:fixed so it's outside flex flow.
   We use margin-left to create the gap, and cap width to avoid overflow.
   Theme's styles.css adds padding-left:280px via .layout-wrap .main-content —
   we must override that here to prevent double-offset. */
.main-content {
  margin-left: var(--sidebar-width);
  width: calc(100% - var(--sidebar-width));
  min-height: 100vh;
  background: #f8fafc;
  padding-top: var(--header-height);       /* clear the fixed header */
  box-sizing: border-box;
}

/* Kill the theme's 280px padding-left that would double-shift content */
.layout-wrap .main-content {
  padding-left: 0 !important;
}

/* Use higher-specificity selector so our padding beats the theme's
   .layout-wrap .main-content-inner { padding: 47px 50px 30px } rule */
.layout-wrap .main-content-inner {
  padding: 32px 32px 60px;
  max-width: 1140px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Dashboard Page Header ──────────────────────────────────── */
.dashboard-page-header {
  margin-bottom: 28px;
}
.dashboard-page-header h4, .dashboard-page-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.dashboard-page-header .subtitle {
  color: var(--gray);
  font-size: 13px;
  margin-top: 4px;
}

/* Mobile toggle button */
.dash-mobile-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1050;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* ── Counter / Stats Cards ───────────────────────────────────── */
.flat-counter-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.counter-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
  transition: var(--transition);
  box-shadow: var(--shadow);
}
.counter-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.counter-box .box-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.counter-box .content-box .title-count {
  font-size: 12px;
  font-weight: 500;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.counter-box .content-box h3 {
  font-size: 28px;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
  margin: 4px 0 0;
}

.counter-box .content-box .text {
  font-size: 12px;
  color: var(--gray);
  margin-left: 4px;
}

/* ── Widget Box ─────────────────────────────────────────────── */
.widget-box-2 {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.widget-box-2 > .title {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-light);
}

/* ── Table Styles ───────────────────────────────────────────── */
.wrap-table table {
  width: 100%;
  border-collapse: collapse;
}

.wrap-table thead tr {
  background: var(--gray-light);
}

.wrap-table thead th {
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  border-bottom: 2px solid var(--border);
}

.wrap-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.wrap-table tbody tr:last-child {
  border-bottom: none;
}

.wrap-table tbody tr:hover {
  background: var(--gray-light);
}

.wrap-table tbody td {
  padding: 14px;
  font-size: 13px;
  color: var(--dark);
  vertical-align: middle;
}

/* Listing box in table */
.listing-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.listing-box .images {
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--gray-light);
}

.listing-box .images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-box .content .title a {
  font-weight: 600;
  font-size: 14px;
  color: var(--dark);
  text-decoration: none;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 240px;
}
.listing-box .content .title a:hover { color: var(--primary); }

.listing-box .content .text-date {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.listing-box .content .text-btn {
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

/* Status Badge */
.btn-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  white-space: nowrap;
}
.btn-status.active, .btn-status.approved { background: #d1fae5; color: #065f46; }
.btn-status.pending { background: #fef9c3; color: #854d0e; }
.btn-status.rejected { background: #fee2e2; color: #991b1b; }
.btn-status.sold { background: #e0f2fe; color: #0c4a6e; }

/* Action List */
.list-action {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.list-action .item {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(21,99,223,0.2);
  transition: var(--transition);
  cursor: pointer;
}
.list-action .item:hover {
  background: var(--primary);
  color: var(--white);
}
.list-action .item.delete-property-btn {
  color: var(--danger);
  background: #fee2e2;
  border-color: rgba(239,68,68,0.2);
}
.list-action .item.delete-property-btn:hover {
  background: var(--danger);
  color: var(--white);
}

/* ── Profile Page ────────────────────────────────────────────── */
.flat-title-page {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.flat-title-page h4, .flat-title-page h3 {
  color: var(--white);
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* ── Alert/Flash Styles ─────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px;
  border: none;
}
.alert-success { background: #d1fae5; color: #065f46; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef9c3; color: #854d0e; }

/* ── Forms in Dashboard ─────────────────────────────────────── */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,99,223,0.12);
  outline: none;
}

.form-label.fw-6 {
  font-weight: 600;
  font-size: 13px;
  color: var(--dark);
  margin-bottom: 6px;
}

/* ── Responsive: Mobile Sidebar ────────────────────────────── */
@media (max-width: 991px) {
  :root { --sidebar-width: 260px; }

  .dash-mobile-toggle { display: flex; }
  .dash-sidebar-close { display: flex; }
  .dash-sidebar-backdrop { display: block; }

  .sidebar-menu-dashboard {
    transform: translateX(-100%);
    box-shadow: none;
  }

  .sidebar-menu-dashboard.open {
    transform: translateX(0);
    box-shadow: 4px 0 30px rgba(0,0,0,0.25);
  }

  .main-content {
    margin-left: 0;
    width: 100%;
  }

  .layout-wrap .main-content-inner {
    padding: 80px 16px 60px;
  }
}

@media (max-width: 767px) {
  .layout-wrap .main-content-inner {
    padding: 76px 12px 60px;
  }

  .flat-counter-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .counter-box {
    padding: 14px;
    gap: 12px;
  }

  .counter-box .box-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .counter-box .content-box h3 {
    font-size: 22px;
  }

  .listing-box .images {
    width: 56px;
    height: 42px;
  }

  .listing-box .content .title a {
    max-width: 140px;
    font-size: 13px;
  }

  .widget-box-2 {
    padding: 16px;
  }

  .wrap-table thead th, .wrap-table tbody td {
    padding: 10px 10px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .flat-counter-v2 {
    grid-template-columns: 1fr;
  }

  .header-lower .inner-header {
    padding: 0 12px;
  }
}

/* ── Property Listing Page Fixes ────────────────────────────── */
@media (max-width: 991px) {
  .widget-sidebar {
    position: static !important;
    margin-bottom: 24px;
  }
}

@media (max-width: 767px) {
  .homelengo-box .archive-top .images-style {
    height: 180px;
  }

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

/* ── Header Responsive ──────────────────────────────────────── */
@media (max-width: 991px) {
  .header-lower .inner-header {
    padding: 0 16px;
  }

  .inner-header-left .nav-outer {
    display: none;
  }

  .inner-header-right.header-account {
    flex-direction: row;
    gap: 8px;
  }

  .tf-btn.btn-line.btn-login {
    padding: 7px 14px;
    font-size: 12px;
  }

  .flat-bt-top .tf-btn.primary {
    padding: 8px 14px;
    font-size: 12px;
  }
}

/* ── Wallet Page ────────────────────────────────────────────── */
.wallet-balance-card {
  background: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(21,99,223,0.3);
}

/* ── Campaign Dashboard ─────────────────────────────────────── */
.campaign-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}
.campaign-stat-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Footer Responsive ──────────────────────────────────────── */
@media (max-width: 767px) {
  .footer .inner-footer .row > div {
    margin-bottom: 24px;
  }

  .footer .content-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer .menu-bottom {
    justify-content: center;
  }
}

/* ── Subscription/Plan Page ─────────────────────────────────── */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pricing-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.pricing-card.featured {
  border-color: var(--primary);
  background: var(--primary-light);
}

/* ── Toast / Flash Message ──────────────────────────────────── */
#globalFlash, #globalFlashErr {
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── Compare Bar Fix ─────────────────────────────────────────── */
#compare-bar {
  font-family: 'Inter', sans-serif;
}

/* ── Table Responsive ─────────────────────────────────────────── */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ── Misc Fixes ──────────────────────────────────────────────── */

/* Remove ghost border on mobile toggler */
.mobile-nav-toggler.mobile-button {
  border: none;
  background: none;
}

/* Proper badge styles */
.badge.bg-success { background: #d1fae5 !important; color: #065f46 !important; }
.badge.bg-info    { background: #e0f2fe !important; color: #0c4a6e !important; }
.badge.bg-warning { background: #fef9c3 !important; color: #854d0e !important; }
.badge.bg-danger  { background: #fee2e2 !important; color: #991b1b !important; }

/* Campaign / Upload Creative pages */
@media (max-width: 767px) {
  .campaign-form-section { padding: 16px; }
}

/* ── My Properties Page ─────────────────────────────────────── */
.property-list-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  transition: var(--transition);
}
.property-list-item:hover {
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

/* ── Shortlist Page ─────────────────────────────────────────── */
.shortlist-empty {
  text-align: center;
  padding: 60px 20px;
}
.shortlist-empty h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.shortlist-empty p {
  color: var(--gray);
  margin-bottom: 24px;
}

/* ── Enquiries ───────────────────────────────────────────────── */
.enquiry-msg {
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

/* ── Invoice ─────────────────────────────────────────────────── */
.invoice-number {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  background: var(--gray-light);
  padding: 2px 8px;
  border-radius: 4px;
}


/* -- Listing Tag Badges -------------------------------------
   flag-tag: base chip used on property/project cards & detail pages
   ------------------------------------------------------------ */
.flag-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .45px;
  line-height: 1.5;
  white-space: nowrap;
}

/* HOT � red pulse */
.flag-tag.hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  will-change: transform;
  animation: flagHotPulse 1.6s ease-in-out infinite;
}
@keyframes flagHotPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.07); }
}

/* FEATURED � amber shimmer */
.flag-tag.featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.flag-tag.featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%, rgba(255,255,255,.35) 50%, transparent 100%);
  transform: translateX(-100%);
  will-change: transform;
  animation: flagFeatShimmer 2.4s ease-in-out infinite;
}
@keyframes flagFeatShimmer {
  100% { transform: translateX(200%); }
}

/* NEW LAUNCH � green */
.flag-tag.new-launch {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* TOP PROJECT */
.flag-tag.top-project {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #fff;
}

/* -- Offer ribbon (diagonal corner strip on cards) -------- */
.offer-ribbon-wrap { position: relative; overflow: hidden; }
.offer-ribbon {
  position: absolute;
  top: 14px;
  right: -30px;
  width: 120px;
  background: repeating-linear-gradient(
    45deg,
    #ef4444,
    #ef4444 8px,
    #dc2626 8px,
    #dc2626 16px
  );
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  padding: 5px 0;
  transform: rotate(45deg);
  z-index: 5;
  text-transform: uppercase;
}

/* -- Offer badge (inline on cards) ----------------------- */
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
}

/* ── Card icon action tray (shortlist / share / report) ─── */
.card-action-tray { opacity: 0; transition: opacity .25s ease; }
.property-image:hover .card-action-tray,
.project-card:hover .card-action-tray { opacity: 1; }

.card-icon-btn {
  width: 28px;
  height: 28px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% !important;
}

/* ── Project card image hover zoom ─ GPU only ──────────── */
.property-image img { will-change: transform; }
.property-image:hover img { transform: scale(1.05); }

/* ── Quick enquiry form inside card ────────────────────── */
.card-footer .collapse .form-control:focus { box-shadow: none; border-color: var(--primary, #1563df); }

/* ==========================================================================
   COMPREHENSIVE UI RENOVATION - PROJECT DETAIL + GLOBAL SITE REFRESH
   ========================================================================== */

/* ──────────────────── GLOBAL IMPROVEMENTS ──────────────────── */
html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
*, *::before, *::after { box-sizing: border-box; }
a { transition: color 0.2s, opacity 0.2s; }
h1,h2,h3,h4,h5,h6 { font-family: 'Inter', sans-serif; }

/* ──────────────────── HERO SECTION (PD-HERO) ──────────────────── */
.pd-hero {
  background: linear-gradient(135deg, #0b1638 0%, #1a3a8a 55%, #1563df 100%);
  padding: 36px 0 32px;
  position: relative;
  overflow: hidden;
}
.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.pd-breadcrumb { margin-bottom: 18px; }
.pd-breadcrumb .breadcrumb { background: none; padding: 0; margin: 0; }
.pd-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.35); content: "/"; }
.pd-breadcrumb .breadcrumb-item a { color: rgba(255,255,255,0.75); text-decoration: none; }
.pd-breadcrumb .breadcrumb-item a:hover { color: #fff; }
.pd-breadcrumb .breadcrumb-item.active { color: rgba(255,255,255,0.5); }
.pd-hero-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.pd-hero-left { flex: 1; min-width: 0; }
.pd-hero-right { flex-shrink: 0; }

/* Badges */
.pd-badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.pd-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
}
.pd-badge.hot         { background: linear-gradient(135deg,#ef4444,#b91c1c); color:#fff; }
.pd-badge.new-launch  { background: linear-gradient(135deg,#22c55e,#15803d); color:#fff; }
.pd-badge.featured    { background: linear-gradient(135deg,#f59e0b,#b45309); color:#fff; }
.pd-badge.top         { background: linear-gradient(135deg,#8b5cf6,#6d28d9); color:#fff; }
.pd-badge.rera-chip   { background: rgba(255,255,255,0.15); color:#fff; border:1px solid rgba(255,255,255,0.3); }

.pd-hero-title {
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800; color: #fff;
  margin-bottom: 8px; line-height: 1.2;
}
.pd-hero-dev { color: rgba(255,255,255,0.75); font-size: 14px; margin-bottom: 10px; }
.pd-hero-dev strong { color: #fff; }

/* Location bar */
.pd-hero-location {
  display: inline-flex; align-items: flex-start; gap: 6px;
  background: rgba(255,255,255,0.12); border-left: 3px solid #fbbf24;
  padding: 8px 14px; border-radius: 0 8px 8px 0;
  color: rgba(255,255,255,0.9); font-size: 13px;
  margin-bottom: 14px; max-width: 100%; position: relative;
}
.pd-hero-location i { color: #fbbf24; margin-top: 2px; flex-shrink: 0; }

.pd-hero-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pd-chip {
  background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9); padding: 5px 12px; border-radius: 6px;
  font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px;
}
.pd-chip-sale  { background: rgba(34,197,94,0.22); border-color: rgba(34,197,94,0.4); color: #86efac; }
.pd-chip-rent  { background: rgba(59,130,246,0.22); border-color: rgba(59,130,246,0.4); color: #93c5fd; }
.pd-chip-rera  { background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.4); color: #fde68a; }

/* Price box */
.pd-price-glass {
  background: rgba(255,255,255,0.1); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 16px;
  padding: 22px 26px; text-align: right; min-width: 190px;
}
.pd-price-lbl { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.pd-price-val { font-size: 26px; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 8px; }
.pd-possession { color: rgba(255,255,255,0.7); font-size: 12px; display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.pd-offer-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(239,68,68,0.25); border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5; padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700; margin-top: 6px;
}

/* ──────────────────── MAIN SECTION BACKGROUND ──────────────────── */
.project-detail-section { background: #f3f6fb !important; }

/* ──────────────────── SECTION CARD (pd-section-card) ──────────────────── */
.pd-section-card {
  background: #fff; border-radius: 16px;
  border: 1px solid #e8edf5;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  padding: 24px; margin-bottom: 20px;
  transition: box-shadow 0.2s ease;
}
.pd-section-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); }

.pd-section-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 20px; padding-bottom: 14px;
  border-bottom: 1px solid #f0f3f8;
}
.pd-section-head h5, .pd-section-head h6 { margin: 0; font-weight: 700; color: #1a1f36; }
.pd-section-head h5 { font-size: 16px; }
.pd-section-head h6 { font-size: 14px; }
.pd-section-head p { color: #64748b; font-size: 11px; margin: 2px 0 0; }
.pd-section-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: #eef4ff; color: #1563df;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}

/* ──────────────────── PROJECT DETAILS GRID ──────────────────── */
.pd-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pd-detail-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid #f3f5f8;
}
.pd-detail-row:nth-child(odd) { background: #fcfcfd; }
.pd-detail-row:last-child, .pd-detail-row:nth-last-child(2):nth-child(odd) { border-bottom: none; }
.pd-dr-icon {
  width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
  background: #eef4ff; color: #1563df;
  display: flex; align-items: center; justify-content: center; font-size: 11px;
}
.pd-dr-label { font-size: 11px; color: #64748b; min-width: 100px; flex-shrink: 0; font-weight: 500; }
.pd-dr-val { font-size: 12px; font-weight: 700; color: #1a1f36; min-width: 0; word-break: break-word; }

/* ──────────────────── CONFIGURATIONS TABLE ──────────────────── */
.pd-config-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid #e8edf5; }
.pd-config-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pd-config-table thead { background: #f3f6fb; }
.pd-config-table thead th {
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; color: #64748b;
  border-bottom: 2px solid #e8edf5; white-space: nowrap;
}
.pd-config-table tbody tr { border-bottom: 1px solid #f0f3f8; transition: background 0.15s; }
.pd-config-table tbody tr:last-child { border-bottom: none; }
.pd-config-table tbody tr:hover { background: #f8fbff; }
.pd-config-table tbody td { padding: 12px 14px; color: #374151; vertical-align: middle; }
.cfg-price { font-weight: 700; color: #1563df; }
.cfg-badge { padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; display: inline-block; }
.cfg-badge.available { background: #d1fae5; color: #065f46; }
.cfg-badge.sold      { background: #fee2e2; color: #991b1b; }
.cfg-badge.booked    { background: #fef3c7; color: #92400e; }
.cfg-badge.rented    { background: #dbeafe; color: #1e40af; }

/* ──────────────────── AMENITIES GRID ──────────────────── */
.pd-amenity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.pd-amenity-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid #e8edf5; background: #f8fbff;
  transition: all 0.2s; cursor: default;
}
.pd-amenity-chip:hover { border-color: #1563df; background: #eef4ff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(21,99,223,0.1); }
.pd-amenity-icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: #1563df; flex-shrink: 0; }
.pd-amenity-icon img { width: 22px; height: 22px; object-fit: contain; }
.pd-amenity-chip span { font-size: 12px; font-weight: 600; color: #1a1f36; line-height: 1.3; }

/* ──────────────────── DISTANCE/CONNECTIVITY GRID ──────────────────── */
.pd-distance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pd-dist-card {
  background: #f8fbff; border: 1.5px solid #e8edf5; border-radius: 12px;
  padding: 14px; display: flex; align-items: center; gap: 10px;
  transition: all 0.2s;
}
.pd-dist-card:hover { border-color: #1563df; background: #eef4ff; transform: translateY(-2px); }
.pd-dist-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #1563df, #0d3b7c);
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.pd-dist-label { font-size: 11px; color: #64748b; font-weight: 500; }
.pd-dist-val { font-size: 14px; font-weight: 700; color: #1a1f36; }

/* ──────────────────── SIDEBAR (pd-sidebar-card / pd-sb-*) ──────────────────── */
.sticky-top { top: 88px !important; }

.pd-sidebar-card {
  background: #fff; border-radius: 16px; border: 1px solid #e8edf5;
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
  margin-bottom: 20px; overflow: hidden;
  transition: box-shadow 0.2s;
}
.pd-sidebar-card:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.09); }

.pd-sb-price-head {
  background: linear-gradient(135deg, #0d1b4b 0%, #1563df 100%);
  padding: 22px 22px 18px;
}
.pd-sb-price-label { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.pd-sb-price-val { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.1; }
.pd-sb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-sb-chip {
  background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9); padding: 3px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 700;
}
.pd-sb-chip.for-sale { background: rgba(34,197,94,0.25); border-color: rgba(34,197,94,0.4); color: #86efac; }
.pd-sb-chip.for-rent { background: rgba(96,165,250,0.25); border-color: rgba(96,165,250,0.4); color: #93c5fd; }

.pd-sb-body { padding: 20px; }
.pd-sb-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.pd-sb-info-item {
  background: #f8fbff; border: 1px solid #e8edf5; border-radius: 8px; padding: 8px 10px;
}
.pd-sb-info-item.full { grid-column: 1 / -1; }
.pd-sb-info-lbl { display: block; font-size: 10px; color: #64748b; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.pd-sb-info-val { font-size: 13px; font-weight: 700; color: #1a1f36; }

/* Sidebar buttons */
.pd-sb-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 11px 16px; border-radius: 9px;
  font-size: 13px; font-weight: 700; cursor: pointer;
  text-decoration: none; border: none; transition: all 0.2s;
}
.pd-sb-btn.primary { background: linear-gradient(135deg, #1563df, #0d3b7c); color: #fff; }
.pd-sb-btn.primary:hover { background: linear-gradient(135deg, #0d3b7c, #091f52); color: #fff; box-shadow: 0 6px 16px rgba(21,99,223,0.35); transform: translateY(-1px); }
.pd-sb-btn.outline { background: #fff; color: #1563df; border: 2px solid #1563df; }
.pd-sb-btn.outline:hover { background: #eef4ff; color: #1563df; }
.pd-sb-btn.brochure { background: #fff1f2; color: #dc2626; border: 1.5px solid #fecaca; }
.pd-sb-btn.brochure:hover { background: #dc2626; color: #fff; }
.w-100 { width: 100% !important; }
.mb-2 { margin-bottom: 0.5rem !important; }

/* Contact card */
.pd-sb-contact-head {
  padding: 14px 20px 12px;
  background: #f8fbff;
  border-bottom: 1px solid #eef2f8;
  font-size: 13px; font-weight: 700; color: #1a1f36;
  display: flex; align-items: center; gap: 6px;
}
.pd-sb-contact-head i { color: #1563df; }
.pd-sb-contact-row { display: flex; align-items: flex-start; gap: 12px; }
.pd-sb-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #1563df, #0d3b7c);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.pd-sb-contact-name { font-size: 15px; font-weight: 700; color: #1a1f36; margin-bottom: 4px; }
.pd-sb-contact-link {
  display: block; font-size: 12px; color: #1563df; text-decoration: none; margin-bottom: 2px;
}
.pd-sb-contact-link:hover { text-decoration: underline; }
.pd-sb-contact-link i { margin-right: 4px; font-size: 11px; }

/* EMI Calculator */
.pd-emi-lbl { font-size: 11px; font-weight: 600; color: #64748b; display: block; margin-bottom: 4px; }
.pd-emi-result {
  background: linear-gradient(135deg, #eef4ff, #dbeafe);
  border: 1px solid #bfdbfe; border-radius: 10px;
  padding: 14px; text-align: center; margin-top: 8px;
}
.pd-emi-val { font-size: 22px; font-weight: 800; color: #1563df; display: block; margin-top: 4px; }

/* ──────────────────── PROPERTY/PROJECT CARDS (homelengo-box) ──────────────────── */
.homelengo-box {
  border-radius: 14px; overflow: hidden;
  border: 1px solid #e8edf5; background: #fff;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex; flex-direction: column; height: 100%;
}
.homelengo-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: rgba(21,99,223,0.2);
}
.homelengo-box .images-style { height: 220px; overflow: hidden; position: relative; flex-shrink: 0; }
.homelengo-box .images-style img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.homelengo-box:hover .images-style img { transform: scale(1.06); }
.homelengo-box .archive-bottom { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.homelengo-box .archive-bottom .content-top { flex: 1; }
.homelengo-box .archive-bottom .content-top h6 { font-size: 14px; font-weight: 700; color: #1a1f36; line-height: 1.3; margin-bottom: 4px; }
.homelengo-box .price { font-size: 15px; font-weight: 800; color: #1563df !important; }
/* Ensure col wrappers stretch to equal height */
.similar-projects-grid .col-sm-6 { display: flex; flex-direction: column; }

/* Gallery */
.project-gallery .main-image-wrapper { border-radius: 12px; }
.project-gallery .main-image-wrapper img { transition: transform 0.4s ease; }
.project-gallery .main-image-wrapper:hover img { transform: scale(1.02); }

/* Action Bar */
.card.border-0.shadow-sm .card-body { border-radius: 12px; }
.btn-outline-danger { border-radius: 8px !important; font-weight: 600 !important; }
.btn-outline-danger.saved, .btn-outline-danger:has(+ .proj-sl-label):active {
  background: #ef4444 !important; color: #fff !important; border-color: #ef4444 !important;
}

/* Stats Bar */
.project-stats-row { border-radius: 12px !important; }
.project-stats-row .col > div { border-radius: 10px; transition: background 0.2s; }
.project-stats-row .col > div:hover { background: #eef4ff; }
.project-stats-row .text-primary { color: #1563df !important; }

/* Overview / Description */
.card.border-0.shadow-sm { border-radius: 14px !important; }

/* ──────────────────── BUTTONS GLOBAL ──────────────────── */
.btn-primary {
  background: linear-gradient(135deg, #1563df, #0d3b7c) !important;
  border-color: transparent !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #0d3b7c, #091f52) !important;
  box-shadow: 0 6px 20px rgba(21,99,223,0.32) !important;
  transform: translateY(-1px) !important;
}
.btn-success {
  background: linear-gradient(135deg, #22c55e, #16a34a) !important;
  border-color: transparent !important; font-weight: 600 !important;
}
.btn-success:hover { background: linear-gradient(135deg, #16a34a, #15803d) !important; transform: translateY(-1px) !important; }
.btn { border-radius: 8px !important; transition: all 0.2s ease !important; }
.tf-btn.primary { background: linear-gradient(135deg, #1563df, #0d3b7c) !important; border: none !important; }

/* ──────────────────── FORMS GLOBAL ──────────────────── */
.form-control, .form-select {
  border-radius: 9px !important;
  border: 1.5px solid #e2e8f0 !important;
  font-size: 13px !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
}
.form-control:focus, .form-select:focus {
  border-color: #1563df !important;
  box-shadow: 0 0 0 3px rgba(21,99,223,0.12) !important;
  outline: none !important;
}

/* ──────────────────── MODALS GLOBAL ──────────────────── */
.modal-content {
  border-radius: 16px !important; border: none !important;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18) !important;
  overflow: hidden;
}
.modal-header {
  border-bottom: 1px solid #f0f5fb !important;
  padding: 18px 22px !important; background: #fff;
}
.modal-body { padding: 18px 22px 22px !important; }
.modal-footer { border-top: 1px solid #f0f5fb !important; padding: 14px 22px !important; }

/* ──────────────────── SECTION HEADINGS (public pages) ──────────────────── */
.section-top .sub-title {
  color: #1563df; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 2px;
}
.section-top .title { font-size: clamp(22px, 4vw, 36px); font-weight: 800; color: #1a1f36; }

/* ──────────────────── HERO PAGES (flat-title-page) ──────────────────── */
.flat-title-page {
  background: linear-gradient(135deg, #0b1638 0%, #1a3a8a 55%, #1563df 100%) !important;
}
.flat-title-page .breadcrumb-item a { color: rgba(255,255,255,0.8) !important; }

/* ──────────────────── CARD ENQUIRY FORM ──────────────────── */
.card-enquiry-form { background: linear-gradient(135deg, #f8fbff, #eef4ff); border-top: 1px solid #e8edf5; }
.home-card-lead-form input {
  border: 1.5px solid #e2e8f0;
  border-radius: 7px; padding: 8px 12px; font-size: 12px; width: 100%;
  transition: border-color 0.2s;
}
.home-card-lead-form input:focus { border-color: #1563df; outline: none; box-shadow: 0 0 0 2px rgba(21,99,223,0.1); }
.home-card-lead-form button {
  background: linear-gradient(135deg, #1563df, #0d3b7c); color: #fff;
  border: none; border-radius: 7px; padding: 9px;
  font-size: 13px; font-weight: 700; width: 100%; cursor: pointer; transition: all 0.2s;
}
.home-card-lead-form button:hover {
  background: linear-gradient(135deg, #0d3b7c, #091f52);
  box-shadow: 0 4px 12px rgba(21,99,223,0.3);
}

/* ──────────────────── FLAG/OFFER TAGS ──────────────────── */
.flag-tag {
  display: inline-flex !important; align-items: center;
  padding: 3px 10px !important; border-radius: 5px;
  font-size: 11px !important; font-weight: 700 !important; line-height: 1.4;
}
.flag-tag.hot        { background: linear-gradient(135deg,#ef4444,#b91c1c) !important; color:#fff !important; }
.flag-tag.new-launch { background: linear-gradient(135deg,#22c55e,#15803d) !important; color:#fff !important; }
.flag-tag.style-1    { background: rgba(21,99,223,0.15); color:#1563df; border:1px solid rgba(21,99,223,0.2); }
.offer-ribbon        { font-weight: 800 !important; letter-spacing: 1px; }

/* ──────────────────── RESPONSIVE BREAKPOINTS ──────────────────── */
@media (max-width: 1199px) {
  .pd-distance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  .pd-hero-body { flex-direction: column; }
  .pd-price-glass { width: 100%; text-align: left; min-width: auto; }
  .pd-price-val { font-size: 22px; }
  .pd-possession { justify-content: flex-start; }
  .pd-details-grid { grid-template-columns: 1fr; }
  .sticky-top { position: static !important; }
  .pd-distance-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .pd-hero { padding: 24px 0 20px; }
  .pd-hero-title { font-size: 20px; }
  .pd-section-card { padding: 16px; }
  .pd-amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-distance-grid { grid-template-columns: repeat(2, 1fr); }
  .project-stats-row .row { gap: 8px !important; }
  .project-gallery .main-image-wrapper { height: 260px !important; }
}

@media (max-width: 480px) {
  .pd-details-grid { grid-template-columns: 1fr; }
  .pd-amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-distance-grid { grid-template-columns: 1fr; }
  .pd-config-table { font-size: 11px; }
  .pd-config-table td, .pd-config-table th { padding: 8px 8px; }
}
