/* HartaMediu - PATCH 1 UI cont premium r3 */

/* =========================================================
   CONT PREMIUM: scala, ritm si limbaj vizual apropiat de homepage
   ========================================================= */
.hm1511-shell {
  --hm1513-blue: #3b82b8;
  --hm1513-blue-soft: #e8f3fb;
  --hm1513-amber: #d88a24;
  --hm1513-amber-soft: #fff2dc;
  --hm1513-coral: #c95f55;
  --hm1513-coral-soft: #fdecea;
  --hm1513-violet: #7b67b8;
  --hm1513-violet-soft: #f0ecfb;
  --hm1513-teal: #11806d;
  --hm1513-teal-soft: #e4f5f0;
  --hm1513-ink: #13231f;
  --hm1513-muted: #61716c;
  --hm1513-line: #c8dbd4;
  max-width: 1320px !important;
  padding-top: 24px !important;
  padding-bottom: 52px !important;
  color: var(--hm1513-ink);
  font-size: 15px;
}

.hm1511-shell .hm157-kicker {
  font-size: 10px !important;
  letter-spacing: .12em !important;
}

.hm1511-account-hero,
.hm1511-project-hero {
  grid-template-columns: minmax(0, 1fr) minmax(230px, 310px) !important;
  gap: 20px !important;
  padding: 25px 27px !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 32px rgba(8, 58, 47, .07) !important;
}
.hm1511-account-hero h1,
.hm1511-project-hero h1 {
  margin: 7px 0 9px !important;
  font-size: clamp(28px, 3vw, 40px) !important;
  line-height: 1.08 !important;
}
.hm1511-account-hero p,
.hm1511-project-hero p {
  font-size: 15px !important;
  line-height: 1.55 !important;
}
.hm1511-account-status,
.hm1511-project-progress-card {
  min-height: 112px !important;
  padding: 18px !important;
  border-radius: 16px !important;
}
.hm1511-account-status strong,
.hm1511-project-progress-card > strong {
  font-size: 20px !important;
}
.hm1511-project-progress-card > strong { font-size: 31px !important; }

.hm1511-dashboard-bar {
  gap: 12px !important;
  margin: 18px 0 !important;
  padding: 14px 16px !important;
  border-radius: 15px !important;
}
.hm1511-dashboard-bar span { font-size: 10px !important; }

.hm1511-stats,
.hm1511-project-stats {
  gap: 12px !important;
  margin: 18px 0 !important;
}
.hm1511-stats article,
.hm1511-project-stats article {
  position: relative;
  overflow: hidden;
  padding: 15px 17px !important;
  border-radius: 15px !important;
  box-shadow: 0 6px 18px rgba(10, 58, 48, .045) !important;
}
.hm1511-stats article::before,
.hm1511-project-stats article::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--hm1513-teal);
}
.hm1511-stats article:nth-child(1)::before,
.hm1511-project-stats article:nth-child(1)::before { background: var(--hm1513-blue); }
.hm1511-stats article:nth-child(2)::before,
.hm1511-project-stats article:nth-child(2)::before { background: var(--hm1513-teal); }
.hm1511-stats article:nth-child(3)::before,
.hm1511-project-stats article:nth-child(3)::before { background: var(--hm1513-amber); }
.hm1511-stats article:nth-child(4)::before,
.hm1511-project-stats article:nth-child(4)::before { background: var(--hm1513-violet); }
.hm1511-stats span,
.hm1511-project-stats span { font-size: 10px !important; }
.hm1511-stats strong,
.hm1511-project-stats strong {
  margin: 6px 0 2px !important;
  font-size: 27px !important;
}
.hm1511-project-stats article:nth-child(1) strong { color: var(--hm1513-blue) !important; }
.hm1511-project-stats article:nth-child(2) strong { color: var(--hm1513-teal) !important; }
.hm1511-project-stats article:nth-child(3) strong { color: var(--hm1513-amber) !important; }
.hm1511-project-stats article:nth-child(4) strong { color: var(--hm1513-violet) !important; }

.hm1511-shell .hm157-panel {
  padding: 20px !important;
  border-radius: 18px !important;
  box-shadow: 0 7px 22px rgba(9, 58, 48, .05) !important;
}
.hm1511-shell .hm157-panel h2 {
  margin-top: 0;
  font-size: 22px !important;
  line-height: 1.18;
}
.hm1511-shell .hm157-panel h3 { font-size: 18px !important; }
.hm1511-shell .hm157-panel p { line-height: 1.52; }

.hm1511-shell .hm157-form {
  gap: 13px !important;
}
.hm1511-shell .hm157-form label {
  gap: 7px !important;
  color: #29443d;
  font-size: 14px !important;
  font-weight: 750;
}
.hm1511-shell input:not([type="checkbox"]):not([type="radio"]),
.hm1511-shell textarea,
.hm1511-shell select {
  min-height: 44px !important;
  padding: 10px 13px !important;
  border: 1px solid #b9d1c9 !important;
  border-radius: 12px !important;
  color: var(--hm1513-ink) !important;
  background-color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.35 !important;
  box-shadow: none !important;
}
.hm1511-shell textarea { min-height: 104px !important; resize: vertical; }
.hm1511-shell input:focus,
.hm1511-shell textarea:focus,
.hm1511-shell select:focus {
  outline: none !important;
  border-color: #248b78 !important;
  box-shadow: 0 0 0 3px rgba(36, 139, 120, .12) !important;
}
.hm1511-shell .hm157-primary,
.hm1511-shell .hm157-secondary {
  min-height: 42px !important;
  padding: 0 16px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
}

/* Actiuni rapide mai compacte si diferentiate cromatic. */
.hm1511-quick-actions,
.hm1511-workspace-actions {
  gap: 8px !important;
  margin-bottom: 17px !important;
}
.hm1511-workspace-actions > a {
  min-height: 40px !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  font-size: 13px !important;
}
.hm1511-workspace-actions > a:nth-child(2) { color: #25628e !important; border-color: #bad5e7 !important; background: var(--hm1513-blue-soft) !important; }
.hm1511-workspace-actions > a:nth-child(3) { color: #76521c !important; border-color: #eed4a7 !important; background: var(--hm1513-amber-soft) !important; }
.hm1511-workspace-actions > a:nth-child(4) { color: #68549d !important; border-color: #d9cff3 !important; background: var(--hm1513-violet-soft) !important; }

/* =========================================================
   SELECT CUSTOM: inlocuieste meniul nativ vechi al browserului
   ========================================================= */
.hm1513-select {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}
.hm1513-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.hm1513-select-trigger {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px 9px 13px;
  border: 1px solid #b9d1c9;
  border-radius: 12px;
  color: var(--hm1513-ink);
  background: #fff;
  box-shadow: 0 1px 0 rgba(10, 58, 48, .025);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.hm1513-select-trigger:hover { border-color: #7eafa1; background: #fbfefd; }
.hm1513-select-trigger:focus-visible,
.hm1513-select.is-open .hm1513-select-trigger {
  outline: none;
  border-color: #248b78;
  box-shadow: 0 0 0 3px rgba(36, 139, 120, .12);
}
.hm1513-select-trigger:disabled { opacity: .6; cursor: not-allowed; }
.hm1513-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hm1513-select-chevron {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: #edf6f3;
}
.hm1513-select-chevron::before,
.hm1513-select-chevron::after {
  content: '';
  position: absolute;
  top: 8px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #0b594b;
  transition: transform .16s ease;
}
.hm1513-select-chevron::before { left: 3px; transform: rotate(45deg); }
.hm1513-select-chevron::after { right: 3px; transform: rotate(-45deg); }
.hm1513-select.is-open .hm1513-select-chevron::before { transform: rotate(-45deg); }
.hm1513-select.is-open .hm1513-select-chevron::after { transform: rotate(45deg); }

.hm1513-select-menu {
  position: fixed;
  z-index: 2147483000;
  display: none;
  min-width: 220px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #bcd2ca;
  border-radius: 13px;
  background: rgba(255, 255, 255, .985);
  box-shadow: 0 18px 45px rgba(16, 42, 35, .2);
  font-family: inherit;
}
.hm1513-select-menu.is-open { display: grid; gap: 2px; }
.hm1513-select-option {
  position: relative;
  width: 100%;
  min-height: 38px;
  padding: 9px 38px 9px 11px;
  border: 0;
  border-radius: 9px;
  color: #1b2d28;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
.hm1513-select-option:hover,
.hm1513-select-option.is-active { background: #edf7f3; }
.hm1513-select-option[aria-selected="true"] {
  color: #0b594b;
  background: #e2f3ed;
  font-weight: 800;
}
.hm1513-select-option[aria-selected="true"]::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 14px;
  width: 11px;
  height: 6px;
  border-left: 2px solid #0b594b;
  border-bottom: 2px solid #0b594b;
  transform: translateY(-65%) rotate(-45deg);
}
.hm1513-select-option:disabled { opacity: .45; cursor: not-allowed; }

/* =========================================================
   PROIECT: carduri restranse, mai compacte si cu accente
   ========================================================= */
.hm1511-workspace-grid {
  grid-template-columns: minmax(0, 1fr) 285px !important;
  gap: 18px !important;
}
.hm1511-workspace-main,
.hm1511-workspace-side { gap: 12px !important; }
.hm1511-workspace-side {
  position: static !important;
  top: auto !important;
  align-self: start !important;
}
.hm1511-workspace-panel {
  overflow: hidden;
  border-radius: 17px !important;
  box-shadow: 0 6px 20px rgba(9, 58, 48, .045) !important;
}
.hm1511-workspace-panel > summary {
  grid-template-columns: 36px minmax(0, 1fr) 20px !important;
  gap: 11px !important;
  padding: 13px 15px !important;
}
.hm1511-workspace-panel > summary > span {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  font-size: 13px;
}
.hm1511-workspace-panel:nth-child(1) > summary > span { color: #245f8c !important; background: var(--hm1513-blue-soft) !important; }
.hm1511-workspace-panel:nth-child(2) > summary > span { color: #0d6e5e !important; background: var(--hm1513-teal-soft) !important; }
.hm1511-workspace-panel:nth-child(3) > summary > span { color: #8c5b16 !important; background: var(--hm1513-amber-soft) !important; }
.hm1511-workspace-panel:nth-child(4) > summary > span { color: #6a529f !important; background: var(--hm1513-violet-soft) !important; }
.hm1511-workspace-panel:nth-child(5) > summary > span { color: #9a493f !important; background: var(--hm1513-coral-soft) !important; }
.hm1511-workspace-panel > summary strong,
.hm1511-workspace-panel > summary small { display: block; }
.hm1511-workspace-panel > summary strong { font-size: 15px !important; }
.hm1511-workspace-panel > summary small { margin-top: 2px !important; font-size: 12px !important; }
.hm1511-workspace-panel > summary::after { font-size: 20px !important; }
.hm1511-panel-content {
  padding: 0 16px 18px !important;
}
.hm1511-panel-content > .hm157-form:first-child { margin-top: 16px !important; }

.hm1511-location-inputs {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr) !important;
  gap: 15px !important;
  margin: 16px 0 !important;
}
.hm1511-location-inputs > form {
  padding: 15px !important;
  border-radius: 14px !important;
  background: #f8fbfa !important;
}
.hm1511-single-location-form,
.hm1511-bulk-location-form { gap: 13px !important; }
.hm1511-single-location-form h3,
.hm1511-bulk-location-form h3 {
  margin: 0 0 2px !important;
  font-size: 18px !important;
}
.hm1511-single-location-form .hm157-form-grid {
  gap: 11px !important;
}
.hm1511-single-location-form > button,
.hm1511-bulk-location-form > button,
.hm1511-report-form > button,
.hm1511-project-form > button {
  width: auto !important;
  min-width: 0 !important;
  min-height: 42px !important;
  padding: 0 16px !important;
  justify-self: start !important;
  align-self: start !important;
  font-size: 14px !important;
}

/* Cardurile laterale sunt convertite in details, inchise implicit. */
.hm1513-side-panel {
  overflow: hidden;
  border: 1px solid var(--hm1513-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(9, 58, 48, .045);
}
.hm1513-side-panel > summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 11px 13px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.hm1513-side-panel > summary::-webkit-details-marker { display: none; }
.hm1513-side-panel > summary::after {
  content: '+';
  color: #0b594b;
  font-size: 19px;
  text-align: center;
}
.hm1513-side-panel[open] > summary::after { content: '−'; }
.hm1513-side-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #245f8c;
  background: var(--hm1513-blue-soft);
}
.hm1513-side-panel:nth-child(2) .hm1513-side-icon { color: #8c5b16; background: var(--hm1513-amber-soft); }
.hm1513-side-panel:nth-child(3) .hm1513-side-icon { color: #6a529f; background: var(--hm1513-violet-soft); }
.hm1513-side-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hm1513-side-title {
  min-width: 0;
  color: var(--hm1513-ink);
  font-size: 14px;
  font-weight: 850;
}
.hm1513-side-content {
  padding: 14px;
  border-top: 1px solid #e4ece9;
}
.hm1513-side-content > p:first-child { margin-top: 0; }
.hm1513-side-content .hm157-form { margin: 0; }
.hm1513-side-content .hm157-form + .hm157-form { margin-top: 10px; }
.hm1513-side-content .hm157-secondary,
.hm1513-side-content .hm157-primary { width: 100% !important; }

/* Optiunea de copiere a coordonatelor devine un switch coerent. */
.hm1513-copy-toggle {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px !important;
  align-items: center;
  margin: 0 0 11px !important;
  padding: 11px 12px;
  border: 1px solid #d9e6e2;
  border-radius: 12px;
  background: #f7faf9;
  cursor: pointer;
}
.hm1513-copy-toggle input[type="checkbox"] {
  position: relative;
  width: 42px !important;
  height: 24px !important;
  margin: 0 !important;
  border: 1px solid #9dbbb2 !important;
  border-radius: 999px !important;
  background: #dfe9e5 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.hm1513-copy-toggle input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(12, 44, 36, .22);
  transition: transform .16s ease;
}
.hm1513-copy-toggle input[type="checkbox"]:checked {
  border-color: var(--hm1513-teal) !important;
  background: var(--hm1513-teal) !important;
}
.hm1513-copy-toggle input[type="checkbox"]:checked::before { transform: translateX(18px); }
.hm1513-copy-toggle-text strong,
.hm1513-copy-toggle-text small { display: block; }
.hm1513-copy-toggle-text strong { color: #203a33; font-size: 13px; }
.hm1513-copy-toggle-text small { margin-top: 2px; color: var(--hm1513-muted); font-size: 11px; font-weight: 500; line-height: 1.35; }

/* Lista proiectelor: un dosar pe rand, compact si lizibil. */
.hm1511-project-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 12px !important;
}
.hm1511-project-card {
  grid-template-columns: minmax(280px, 1.4fr) minmax(200px, .72fr) 220px 160px !important;
  gap: 18px !important;
  padding: 17px 19px 17px 22px !important;
  border-radius: 16px !important;
  border-left-width: 5px !important;
  border-left-color: var(--hm1513-blue) !important;
  box-shadow: 0 6px 20px rgba(9, 58, 48, .045) !important;
}
.hm1511-project-card:nth-child(4n+2) { border-left-color: var(--hm1513-teal) !important; }
.hm1511-project-card:nth-child(4n+3) { border-left-color: var(--hm1513-amber) !important; }
.hm1511-project-card:nth-child(4n+4) { border-left-color: var(--hm1513-violet) !important; }
.hm1512-project-primary h3 { margin: 9px 0 4px !important; font-size: 19px !important; }
.hm1511-project-card .hm1511-card-numbers span { padding: 8px !important; }
.hm1512-project-action .hm1511-open-project { min-width: 145px !important; }

/* =========================================================
   HOMEPAGE: accente cromatice discrete, fara aglomerare
   ========================================================= */
.hm-v159-access-card,
.feature-card,
.seo-card-grid a,
.source-list article {
  position: relative;
  overflow: hidden;
}
.hm-v159-access-card::before,
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: #4b8fbe;
}
.hm-v159-access-card.is-paid::before { background: #d68a2c; }
.hm-v159-access-card:not(.is-paid) .plan-label { color: #245f8c !important; background: var(--hm1513-blue-soft, #e8f3fb) !important; }
.hm-v159-access-card.is-paid .plan-label { color: #865315 !important; background: var(--hm1513-amber-soft, #fff2dc) !important; }

.feature-card:nth-child(1)::before { background: #4b8fbe; }
.feature-card:nth-child(2)::before { background: #15917c; }
.feature-card:nth-child(3)::before { background: #c86c60; }
.feature-card:nth-child(1) .feature-number { color: #245f8c !important; background: #e8f3fb !important; }
.feature-card:nth-child(2) .feature-number { color: #0d6e5e !important; background: #e4f5f0 !important; }
.feature-card:nth-child(3) .feature-number { color: #974b42 !important; background: #fdecea !important; }
.feature-card:nth-child(1) svg { color: #3b82b8 !important; }
.feature-card:nth-child(2) svg { color: #11806d !important; }
.feature-card:nth-child(3) svg { color: #c95f55 !important; }

.coordinate-card .step-number { color: #245f8c !important; background: #e8f3fb !important; }
.results-section .step-number { color: #865315 !important; background: #fff2dc !important; }

.seo-card-grid a { border-left: 4px solid #4b8fbe !important; }
.seo-card-grid a:nth-child(3n+2) { border-left-color: #15917c !important; }
.seo-card-grid a:nth-child(3n+3) { border-left-color: #8a72bf !important; }
.source-list article:nth-child(2) .source-status.active { color: #0d6e5e !important; background: #e4f5f0 !important; }
.source-list article:nth-child(3) .source-status.active { color: #865315 !important; background: #fff2dc !important; }
.source-list article:nth-child(4) .source-status.active { color: #68549d !important; background: #f0ecfb !important; }

@media (max-width: 1180px) {
  .hm1511-project-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, .8fr) !important;
  }
  .hm1511-workspace-grid { grid-template-columns: 1fr !important; }
  .hm1511-workspace-side { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}

@media (max-width: 900px) {
  .hm1511-account-hero,
  .hm1511-project-hero { grid-template-columns: 1fr !important; padding: 21px !important; }
  .hm1511-workspace-side { grid-template-columns: 1fr !important; }
  .hm1511-location-inputs { grid-template-columns: 1fr !important; }
}

@media (max-width: 700px) {
  .hm1511-shell { padding-top: 16px !important; padding-bottom: 36px !important; }
  .hm1511-account-hero h1,
  .hm1511-project-hero h1 { font-size: 27px !important; }
  .hm1511-stats,
  .hm1511-project-stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .hm1511-workspace-panel > summary { grid-template-columns: 34px minmax(0, 1fr) 18px !important; padding: 12px !important; }
  .hm1511-workspace-panel > summary > span { width: 34px !important; height: 34px !important; }
  .hm1511-panel-content { padding: 0 12px 14px !important; }
  .hm1511-project-card { grid-template-columns: 1fr !important; gap: 12px !important; }
  .hm1512-project-action { justify-content: stretch !important; }
  .hm1512-project-action .hm1511-open-project { width: 100% !important; }
  .hm1511-single-location-form .hm157-form-grid { grid-template-columns: 1fr !important; }
  .hm1511-single-location-form .hm157-form-grid > label:first-child { grid-column: auto !important; }
  .hm1513-select-menu { border-radius: 11px; }
}
.hm1513-select-option.is-keyboard-active { background: #edf7f3; box-shadow: inset 0 0 0 1px #9ac7ba; }
