/* ============================================================
   HRP Design V3 — Override layer
   Load AFTER property_search_v2.css — overrides only what changes.
   ============================================================ */

/* --- DESIGN TOKENS --- */
:root {
  --ink: #191614;
  --terra: #C4511A;
  --cream: #F6F2EB;
  --muted: #9a8e85;
  --border: rgba(25,22,20,0.11);
  --r: 3px;
  --sb-w: 260px;
  --sb-collapsed: 48px;
  --nav-h: 52px;
  --font-display: Cormorant Garant, Georgia, serif;
  --color-primary: #C4511A;
  --color-accent: #C4511A;
  --color-accent-hover: #a83f14;
  --color-primary-hover: #a83f14;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- BASE --- */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  margin: 0;
  overflow: hidden;
}

/* Hide v2-only structural elements that don't exist in v3 template */
.page-background { display: none !important; }

/* ============================================================
   NAV
   ============================================================ */
.hrp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--ink);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 20px;
  z-index: 200;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.hrp-nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}
.hrp-logo-img {
  width: 26px;
  height: 26px;
  border-radius: 2px;
  object-fit: cover;
}
.hrp-logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.hrp-logo-hr { color: #ffffff; }
.hrp-logo-ph { color: var(--terra); }
.hrp-logo-ag {
  color: var(--muted);
  font-size: 0.65em;
  font-weight: 300;
  font-family: var(--font-body);
  letter-spacing: 0.03em;
}

.hrp-nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 1;
}
.hrp-nav-link {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.hrp-nav-link:hover { color: rgba(255,255,255,0.85); }

.hrp-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Favorites button in nav */
.hrp-nav-fav {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-body);
  font-size: 0.78rem;
  padding: 5px 13px;
  border-radius: var(--r);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.15s, color 0.15s;
  line-height: 1;
}
.hrp-nav-fav:hover {
  border-color: rgba(255,255,255,0.5);
  color: white;
}
/* Reuse existing favorites-badge inside new button */
.hrp-nav-fav .favorites-badge {
  background: var(--terra);
  color: white;
  font-size: 0.68rem;
  padding: 1px 5px;
  border-radius: 8px;
  min-width: 16px;
  text-align: center;
  font-family: var(--font-body);
}

/* Lang buttons */
.hrp-lang-group {
  display: flex;
  gap: 1px;
  align-items: center;
}
.hrp-lang-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: var(--r);
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  line-height: 1;
}
.hrp-lang-btn:hover { color: rgba(255,255,255,0.8); }
.hrp-lang-btn.active {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* CTA button in nav */
.hrp-nav-cta {
  background: var(--terra);
  color: white;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 7px 15px;
  border-radius: var(--r);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.hrp-nav-cta:hover { background: #a83f14; color: white; }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.hrp-page {
  display: flex;
  height: calc(100vh - var(--nav-h));
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
  overflow: hidden;
  align-items: stretch;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.hrp-sidebar {
  width: var(--sb-w);
  min-width: var(--sb-w);
  background: var(--ink);
  height: 100%;
  min-height: 100%;
  align-self: stretch;
  overflow: visible;
  position: relative;
  transition: width 0.3s ease, min-width 0.3s ease;
  flex-shrink: 0;
  z-index: 100;
}

/* Suppress transition on initial paint (class added/removed via JS) */
.hrp-sidebar.no-transition,
.hrp-sidebar.no-transition * {
  transition: none !important;
}

.hrp-sidebar.hrp-sb-collapsed {
  width: var(--sb-collapsed);
  min-width: var(--sb-collapsed);
}

/* Toggle button (circular, floats on right edge) */
.hrp-sb-toggle {
  position: absolute;
  top: 50%;
  right: -16px;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--terra);
  border: 2px solid white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 110;
  padding: 0;
  transition: background 0.15s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.hrp-sb-toggle:hover { background: #a83f14; }

.hrp-sb-arrow {
  width: 14px;
  height: 14px;
  color: white;
  transition: transform 0.3s;
  display: block;
}
.hrp-sidebar.hrp-sb-collapsed .hrp-sb-arrow {
  transform: rotate(180deg);
}

/* Icon rail — visible only when collapsed */
.hrp-sb-icons {
  position: absolute;
  top: 0; left: 0;
  width: var(--sb-collapsed);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.hrp-sidebar.hrp-sb-collapsed .hrp-sb-icons {
  opacity: 1;
  pointer-events: all;
}
.hrp-sb-icon-item {
  width: 20px;
  height: 20px;
  color: var(--muted);
  flex-shrink: 0;
}
.hrp-sb-icon-item svg { width: 100%; height: 100%; display: block; }

.hrp-sb-find-icon {
  width: 30px;
  height: 30px;
  background: var(--terra);
  border: none;
  border-radius: var(--r);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 0;
  flex-shrink: 0;
}
.hrp-sb-find-icon svg { width: 14px; height: 14px; display: block; }

/* Full content — hidden when collapsed */
.hrp-sb-content {
  position: absolute;
  top: 0; left: 0;
  width: var(--sb-w);
  height: 100%;
  overflow-y: auto;
  opacity: 1;
  transition: opacity 0.15s;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.hrp-sidebar.hrp-sb-collapsed .hrp-sb-content {
  opacity: 0;
  pointer-events: none;
}
.hrp-sb-content::-webkit-scrollbar { width: 4px; }
.hrp-sb-content::-webkit-scrollbar-track { background: transparent; }
.hrp-sb-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.hrp-sb-content-inner {
  padding: 16px 14px 24px;
}

/* --- Filter overrides for dark sidebar --- */
.hrp-sidebar .filter-group {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.hrp-sidebar .filter-group:last-of-type { border-bottom: none; }

.hrp-sidebar .filter-label,
.hrp-sidebar .filters-title {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}
.hrp-sidebar .filters-title {
  color: rgba(255,255,255,0.4);
  font-size: 0.64rem;
  margin-bottom: 14px;
}

/* Date inputs */
.hrp-sidebar .date-input-wrapper { width: 100%; }
.hrp-sidebar .date-input {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important;
  border-radius: var(--r) !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
}
.hrp-sidebar .date-input:focus {
  border-color: var(--terra) !important;
  outline: none !important;
}
.hrp-sidebar .calendar-icon { color: var(--muted) !important; }

/* Quick date buttons */
.hrp-sidebar .quick-date-buttons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.hrp-sidebar .quick-date-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.65) !important;
  border-radius: var(--r) !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  padding: 4px 9px !important;
  cursor: pointer;
  transition: background 0.12s, color 0.12s !important;
}
.hrp-sidebar .quick-date-btn:hover,
.hrp-sidebar .quick-date-btn.active {
  background: var(--terra) !important;
  border-color: var(--terra) !important;
  color: white !important;
}

/* Flexibility buttons */
.hrp-sidebar .date-flexibility-buttons { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hrp-sidebar .date-flexibility-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.6) !important;
  border-radius: var(--r) !important;
  font-size: 0.68rem !important;
  padding: 3px 8px !important;
  cursor: pointer;
  transition: background 0.12s !important;
}
.hrp-sidebar .date-flexibility-btn.active {
  background: var(--terra) !important;
  border-color: var(--terra) !important;
  color: white !important;
}

/* Area / bedroom dropdowns */
.hrp-sidebar .multi-select-dropdown { width: 100%; }
.hrp-sidebar .dropdown-toggle {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important;
  border-radius: var(--r) !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  width: 100% !important;
}
.hrp-sidebar .dropdown-toggle i { color: var(--muted) !important; }
.hrp-sidebar .dropdown-menu {
  background: #222019 !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: var(--r) !important;
}
.hrp-sidebar .dropdown-item {
  color: rgba(255,255,255,0.75) !important;
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
}
.hrp-sidebar .dropdown-item:hover { background: rgba(255,255,255,0.06) !important; }
.hrp-sidebar .dropdown-item input[type="checkbox"] { accent-color: var(--terra); }

/* Guest picker */
.hrp-sidebar .guest-picker-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important;
  border-radius: var(--r) !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
  width: 100% !important;
}

/* Budget inputs */
.hrp-sidebar .budget-inputs { display: flex; gap: 8px; align-items: center; }
.hrp-sidebar .budget-input {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: white !important;
  border-radius: var(--r) !important;
  font-family: var(--font-body) !important;
  font-size: 0.8rem !important;
}
.hrp-sidebar .budget-separator { color: var(--muted); }
.hrp-sidebar .budget-currency {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.7rem;
  margin-top: 6px;
}
.hrp-sidebar #budgetSliderRange { background: var(--terra) !important; }

/* Property type tabs */
.hrp-sidebar .property-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}
.hrp-sidebar .tab-btn {
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  color: rgba(255,255,255,0.65) !important;
  border-radius: var(--r) !important;
  font-family: var(--font-body) !important;
  font-size: 0.7rem !important;
  padding: 5px 10px !important;
  cursor: pointer;
  transition: background 0.12s !important;
}
.hrp-sidebar .tab-btn.active {
  background: var(--terra) !important;
  border-color: var(--terra) !important;
  color: white !important;
}

/* Find button */
.hrp-sidebar .find-btn {
  width: 100% !important;
  background: var(--terra) !important;
  color: white !important;
  font-family: var(--font-display) !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  border: none !important;
  border-radius: var(--r) !important;
  padding: 11px !important;
  cursor: pointer !important;
  transition: background 0.15s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 4px !important;
}
.hrp-sidebar .find-btn:hover { background: #a83f14 !important; }
.hrp-sidebar .find-btn i { font-size: 0.85rem !important; }

/* ============================================================
   MAIN CONTENT AREA
   ============================================================ */
.hrp-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  min-width: 0;
}

/* ============================================================
   DISTRICT TABS
   ============================================================ */
.hrp-district-tabs {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
  align-items: stretch;
}
.hrp-district-tabs::-webkit-scrollbar { display: none; }

.hrp-dtab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
  flex-shrink: 0;
  line-height: 1;
}
.hrp-dtab:hover { color: var(--ink); }
.hrp-dtab.active {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

/* ============================================================
   RESULTS HEADER
   ============================================================ */
.hrp-main .results-header {
  padding: 9px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.hrp-main .sort-wrapper { display: flex; align-items: center; }
.hrp-main .sort-selector {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  padding: 5px 10px !important;
  background: white !important;
  color: var(--ink) !important;
  cursor: pointer;
}
.hrp-main #resultsCount {
  font-family: var(--font-body) !important;
  font-size: 0.78rem !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

/* ============================================================
   SCROLLABLE GRID AREA
   ============================================================ */
.hrp-main .scrollable-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hrp-main .scrollable-content::-webkit-scrollbar { width: 5px; }
.hrp-main .scrollable-content::-webkit-scrollbar-track { background: transparent; }
.hrp-main .scrollable-content::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   PROPERTY GRID
   ============================================================ */
.hrp-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}

/* ============================================================
   CARD OVERRIDES
   ============================================================ */
.property-card {
  background: white !important;
  border-radius: var(--r) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 3px rgba(25,22,20,0.05) !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  cursor: pointer;
  overflow: hidden;
}
.property-card:hover {
  box-shadow: 0 4px 18px rgba(25,22,20,0.12) !important;
  transform: translateY(-1px) !important;
}

.property-card-image-carousel {
  height: 175px !important;
  position: relative;
  overflow: hidden;
}
.carousel-container { height: 100%; }
.carousel-slide { height: 100%; }
.carousel-slide img,
.carousel-slide picture,
.carousel-slide picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.property-card-content {
  padding: 11px 13px 13px !important;
}

.property-card-title {
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin: 0 0 5px !important;
  line-height: 1.3 !important;
}

.property-card-meta {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  color: var(--muted) !important;
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 4px !important;
}
.property-meta-item { display: flex; align-items: center; gap: 4px; }

.property-card-id { display: none !important; }

.property-card-description {
  font-family: var(--font-body) !important;
  font-size: 0.75rem !important;
  color: var(--muted) !important;
  line-height: 1.45 !important;
  margin: 0 0 8px !important;
}

.amenity-badge {
  background: var(--cream) !important;
  color: var(--muted) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  font-size: 0.67rem !important;
  padding: 2px 7px !important;
}

.property-card-price { margin-top: 8px !important; }

.single-pricing .price-amount {
  font-family: var(--font-display) !important;
  font-size: 1.25rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
}
.single-pricing .price-period {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  color: var(--muted) !important;
}

.property-card-buttons {
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
}
.card-btn {
  font-family: var(--font-body) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  padding: 6px 12px !important;
  border-radius: var(--r) !important;
  cursor: pointer !important;
  width: auto !important;
  transform: none !important;
  flex: 1 !important;
}
.card-btn-primary {
  background: var(--terra) !important;
  color: white !important;
  border: 1px solid var(--terra) !important;
}
.card-btn-primary:hover { background: #a83f14 !important; border-color: #a83f14 !important; }
.card-btn-secondary {
  background: transparent !important;
  color: var(--ink) !important;
  border: 1px solid var(--border) !important;
}
.card-btn-secondary:hover { background: var(--cream) !important; }

/* Card overlay icons (heart + share) */
.card-icon-btn {
  background: rgba(25,22,20,0.45) !important;
  border: none !important;
  border-radius: 50% !important;
  width: 30px !important;
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: rgba(255,255,255,0.75) !important;
}
.card-icon-btn i,
.card-icon-btn svg { color: rgba(255,255,255,0.75) !important; font-size: 0.8rem !important; }
.card-icon-btn.favorited i,
.card-icon-btn.favorited svg { color: var(--terra) !important; }
.card-icon-btn.favorited { color: var(--terra) !important; }

/* ============================================================
   PROPERTY DETAIL PANEL — content overrides (property_detail_v2.css)
   ============================================================ */

/* Teal header → ink dark */
#propertyDetailContent .detail-modal-header {
  background: var(--ink) !important;
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  border-radius: 0 !important;
}

/* Title → Cormorant Garant */
#propertyDetailContent .property-title,
#propertyDetailContent .detail-modal-logo {
  font-family: var(--font-display) !important;
  color: var(--ink) !important;
}

/* Body font → DM Sans */
#propertyDetailContent {
  font-family: var(--font-body) !important;
}

/* Green reserve button → terra */
#propertyDetailContent .btn-reserve-big {
  background: var(--terra) !important;
  background: linear-gradient(135deg, var(--terra) 0%, #d95c20 100%) !important;
  box-shadow: 0 4px 12px rgba(196,81,26,0.3) !important;
}
#propertyDetailContent .btn-reserve-big:hover {
  background: #a83f14 !important;
  box-shadow: 0 6px 16px rgba(196,81,26,0.4) !important;
}

/* Purple secondary/ask buttons → terra outline */
#propertyDetailContent .btn-secondary,
#propertyDetailContent .detail-header-btn {
  border-color: var(--terra) !important;
  color: var(--terra) !important;
}
#propertyDetailContent .btn-secondary:hover {
  background: rgba(196,81,26,0.08) !important;
}

/* Purple accent color overrides inside modal */
#propertyDetailContent .detail-section-title,
#propertyDetailContent .price-highlight,
#propertyDetailContent .amenity-icon,
#propertyDetailContent a {
  color: var(--terra) !important;
}

/* Loading / empty states */
.loading-state {
  font-family: var(--font-body);
  color: var(--muted);
  text-align: center;
  padding: 60px 20px;
}
.empty-state {
  font-family: var(--font-body);
  color: var(--muted);
  text-align: center;
  padding: 60px 20px;
}
.empty-state h3 { font-family: var(--font-display); color: var(--ink); }

/* ============================================================
   PROPERTY DETAIL MODAL — fully suppressed, replaced by #hrp-pnl
   ============================================================ */
#propertyDetailModal,
.property-detail-modal-overlay,
.property-detail-modal-container {
  display: none !important;
}

#propertyDetailContent {
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
}

/* ============================================================
   SCROLL-TO-TOP BUTTON
   ============================================================ */
.scroll-to-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
}
.scroll-to-top-btn.show { display: flex; }

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .hrp-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .hrp-nav-links { display: none; }
  :root { --sb-w: 220px; }
}

@media (max-width: 768px) {
  /* Sidebar overlays on mobile */
  .hrp-sidebar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 150;
    box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  }
  .hrp-sidebar.hrp-sb-collapsed {
    box-shadow: none;
  }

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

  /* Old modal container hidden — replaced by #hrp-pnl */

  .hrp-nav-right .hrp-lang-group { display: none; }
  .hrp-nav-right .hrp-nav-links-mobile { display: flex; }
}

@media (max-width: 480px) {
  .hrp-nav { padding: 0 12px; gap: 10px; }
  .hrp-logo-ag { display: none; }
  .hrp-main .scrollable-content { padding: 10px; }
}

/* Chat widget — terra theme (overrides inline purple #8774e1) */
#hrp-chat-toggle {
  background: var(--terra, #C4511A) !important;
  box-shadow: 0 4px 14px rgba(196,81,26,0.35) !important;
}
#hrp-chat-toggle:hover {
  background: #a83f14 !important;
  transform: scale(1.08);
}
