/* Compare + Contact shared page styles */

.cm-crumb, .cn-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--nm-muted);
  margin: 0.25rem 0 1.15rem;
}
.cm-crumb a, .cn-crumb a { color: inherit; text-decoration: none; }
.cm-crumb a:hover, .cn-crumb a:hover { color: var(--fz-brand-700); }

.cm-head, .cn-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.cm-head h1, .cn-head h1 {
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  font-weight: 900;
  margin: 0 0 0.35rem;
  color: var(--nm-ink);
}
.cm-head p, .cn-head p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--nm-muted);
  max-width: 30rem;
  line-height: 1.7;
}

.cm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cm-clear {
  appearance: none;
  border: 1px solid color-mix(in srgb, #c45c4a 35%, var(--fz-border));
  background: transparent;
  color: #c45c4a;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
}

.cm-clear:hover { background: color-mix(in srgb, #c45c4a 8%, transparent); }

.cm-add-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  border: 1px dashed color-mix(in srgb, var(--fz-brand-500) 30%, var(--fz-border));
  background: color-mix(in srgb, var(--fz-brand-500) 5%, var(--fz-surface));
}

.cm-add-bar__label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--nm-muted);
  white-space: nowrap;
}

.cm-combo {
  position: relative;
  flex: 1;
  min-width: min(100%, 260px);
  z-index: 20;
}

.cm-combo.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.cm-combo__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid var(--fz-border);
  background: var(--fz-surface);
  color: var(--nm-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.cm-combo.is-open .cm-combo__trigger,
.cm-combo__trigger:hover {
  border-color: color-mix(in srgb, var(--fz-brand-500) 45%, var(--fz-border));
}

.cm-combo.is-open .cm-combo__trigger {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fz-brand-500) 16%, transparent);
}

.cm-combo__placeholder {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--nm-muted);
}

.cm-combo__placeholder.has-value {
  color: var(--nm-ink);
  font-weight: 700;
}

.cm-combo__chev {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--nm-muted);
  transition: transform 0.2s;
}

.cm-combo.is-open .cm-combo__chev {
  transform: rotate(180deg);
}

.cm-combo__panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  border-radius: 0.95rem;
  border: 1px solid var(--fz-border);
  background: var(--fz-surface);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--fz-brand-700) 12%, rgba(0, 0, 0, 0.08));
  overflow: hidden;
  z-index: 30;
}

.cm-combo__search {
  position: relative;
  padding: 0.65rem 0.65rem 0.45rem;
  border-bottom: 1px solid var(--fz-border);
}

.cm-combo__search svg {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-40%);
  width: 15px;
  height: 15px;
  color: var(--nm-muted);
  pointer-events: none;
}

.cm-combo__search input {
  width: 100%;
  height: 2.35rem;
  border-radius: 0.7rem;
  border: 1px solid var(--fz-border);
  background: color-mix(in srgb, var(--fz-brand-500) 4%, var(--fz-bg, var(--fz-surface)));
  color: var(--nm-ink);
  font: inherit;
  font-size: 0.84rem;
  padding: 0 2.2rem 0 0.75rem;
  outline: none;
}

.cm-combo__search input:focus {
  border-color: color-mix(in srgb, var(--fz-brand-500) 50%, var(--fz-border));
}

.cm-combo__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  max-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cm-combo__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  border: none;
  background: transparent;
  text-align: right;
  font: inherit;
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
  cursor: pointer;
  color: var(--nm-ink);
  transition: background 0.15s;
}

.cm-combo__item:hover,
.cm-combo__item.is-active {
  background: color-mix(in srgb, var(--fz-brand-500) 10%, transparent);
}

.cm-combo__item.is-on {
  background: color-mix(in srgb, var(--fz-brand-500) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fz-brand-500) 28%, transparent);
}

.cm-combo__thumb {
  width: 40px;
  height: 40px;
  border-radius: 0.55rem;
  object-fit: contain;
  background: var(--fz-surface-2, #f3f6f5);
  border: 1px solid var(--fz-border);
  flex-shrink: 0;
  padding: 2px;
}

.cm-combo__meta {
  min-width: 0;
  flex: 1;
}

.cm-combo__meta strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cm-combo__meta span {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--nm-muted);
  margin-top: 0.15rem;
}

.cm-combo__empty {
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--nm-muted);
}

.cm-add-bar .fz-btn {
  flex-shrink: 0;
}

.cm-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--fz-border);
  border-radius: 1.15rem;
  background: var(--fz-surface);
  -webkit-overflow-scrolling: touch;
}

.cm-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.cm-table th,
.cm-table td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--fz-border);
  border-left: 1px solid var(--fz-border);
  vertical-align: top;
  text-align: center;
}

.cm-table th:last-child,
.cm-table td:last-child { border-left: none; }

.cm-table tr:last-child td { border-bottom: none; }

.cm-label {
  width: 120px;
  min-width: 110px;
  text-align: right !important;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--nm-muted);
  background: color-mix(in srgb, var(--fz-brand-500) 4%, var(--fz-surface));
  position: sticky;
  right: 0;
  z-index: 2;
}

.cm-col-head {
  min-width: 180px;
  max-width: 220px;
}

.cm-remove {
  appearance: none;
  border: none;
  background: color-mix(in srgb, #c45c4a 10%, transparent);
  color: #c45c4a;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  margin-bottom: 0.55rem;
}

.cm-remove svg { width: 14px; height: 14px; }

.cm-img {
  width: 100%;
  aspect-ratio: 1;
  max-width: 140px;
  margin: 0 auto 0.65rem;
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--fz-surface-2, #f3f6f5);
  border: 1px solid var(--fz-border);
}

.cm-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.35rem;
}

.cm-title {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--nm-ink);
  text-decoration: none;
  line-height: 1.5;
}

.cm-title:hover { color: var(--fz-brand-700); }

.cm-price {
  font-size: 1rem;
  font-weight: 900;
  color: var(--nm-ink);
  font-feature-settings: "tnum";
}

.cm-old {
  display: block;
  font-size: 0.78rem;
  color: var(--nm-muted);
  text-decoration: line-through;
  margin-top: 0.2rem;
}

.cm-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--nm-ink);
}

.cm-val--muted { color: var(--nm-muted); font-weight: 600; }
.cm-val--ok { color: #1a8a6a; }
.cm-val--no { color: #c45c4a; }

.cm-empty {
  text-align: center;
  padding: 2.75rem 1.25rem;
  color: var(--nm-muted);
}

.cm-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nm-ink);
}

.cm-empty p { margin: 0 0 1.25rem; font-size: 0.9rem; line-height: 1.7; }

/* Contact */
.cn-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}

.cn-card {
  border: 1px solid var(--fz-border);
  border-radius: 1.15rem;
  background: var(--fz-surface);
  padding: 1.25rem 1.2rem 1.35rem;
}

.cn-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--nm-ink);
}

.cn-card > p {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  color: var(--nm-muted);
  line-height: 1.7;
}

.cn-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.85rem;
  background: color-mix(in srgb, var(--fz-brand-500) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--fz-brand-500) 18%, transparent);
  font-size: 0.8rem;
  color: var(--nm-muted);
  line-height: 1.6;
}

.cn-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}

.cn-field { display: flex; flex-direction: column; gap: 0.35rem; }
.cn-field--full { grid-column: 1 / -1; }

.cn-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--nm-ink);
}

.cn-field label span { color: #c45c4a; }

.cn-field input,
.cn-field select,
.cn-field textarea {
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid var(--fz-border);
  background: var(--fz-bg, var(--fz-surface));
  color: var(--nm-ink);
  border-radius: 0.7rem;
  padding: 0.65rem 0.8rem;
  outline: none;
  transition: border-color 0.2s;
}

.cn-field textarea { resize: vertical; min-height: 120px; }

.cn-field input:focus,
.cn-field select:focus,
.cn-field textarea:focus {
  border-color: color-mix(in srgb, var(--fz-brand-500) 55%, var(--fz-border));
}

.cn-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.cn-success {
  display: none;
  margin-top: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  background: color-mix(in srgb, #1a8a6a 12%, transparent);
  color: #1a8a6a;
  font-size: 0.85rem;
  font-weight: 700;
}

.cn-success.is-on { display: block; }

.cn-infos {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cn-info {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.85rem 0.9rem;
  border-radius: 0.9rem;
  border: 1px solid var(--fz-border);
  background: var(--fz-surface);
}

.cn-info__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--fz-brand-700);
  background: color-mix(in srgb, var(--fz-brand-500) 12%, transparent);
}

.cn-info__ico svg { width: 18px; height: 18px; }

.cn-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--nm-ink);
  margin-bottom: 0.15rem;
}

.cn-info span, .cn-info a {
  font-size: 0.8rem;
  color: var(--nm-muted);
  text-decoration: none;
  line-height: 1.6;
}

.cn-info a:hover { color: var(--fz-brand-700); }

.cn-map {
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--fz-border);
  margin-bottom: 1rem;
  background: var(--fz-surface);
}

.cn-map iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: 0;
}

.cn-map__caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.85rem;
  padding: 0.75rem 0.95rem;
  border-top: 1px solid var(--fz-border);
  background: color-mix(in srgb, var(--fz-brand-500) 5%, var(--fz-surface));
}

.cn-map__caption strong {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--nm-ink);
}

.cn-map__caption span {
  font-size: 0.78rem;
  color: var(--nm-muted);
  font-weight: 600;
}

.cn-map__caption a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--fz-brand-700);
  text-decoration: none;
}

.cn-map__caption a:hover { text-decoration: underline; }

.cn-holidays h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  color: var(--nm-ink);
}

.cn-holidays > p {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  color: var(--nm-muted);
  line-height: 1.65;
}

.cn-holiday-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}

.cn-holiday {
  text-align: center;
  padding: 0.75rem 0.4rem;
  border-radius: 0.85rem;
  border: 1px solid var(--fz-border);
  background: color-mix(in srgb, var(--fz-brand-500) 4%, var(--fz-surface));
}

.cn-holiday strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--fz-brand-700);
  font-feature-settings: "tnum";
  line-height: 1.2;
}

.cn-holiday b {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--nm-ink);
  margin: 0.15rem 0;
}

.cn-holiday span {
  font-size: 0.68rem;
  color: var(--nm-muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .cn-layout { grid-template-columns: 1fr; }
  .cn-form { grid-template-columns: 1fr; }
  .cn-holiday-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cn-holiday-grid { grid-template-columns: 1fr 1fr; }
}
