/* ── Sticky navbar ───────────────────────────────────── */
.cnt-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.cnt-navbar-logo {
  height: 32px;
  width: auto;
  display: block;
}

.cnt-lang-select {
  margin-left: auto;
  font-family: inherit;
  font-size: 14px;
  color: #00243D;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 5px 28px 5px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300243D' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-width: 90px;
}
.cnt-lang-select:focus {
  outline: none;
  border-color: #0073AB;
  box-shadow: 0 0 0 3px rgba(0,115,171,0.13);
}
.cnt-lang-select option {
  font-size: 14px;
  font-family: inherit;
}

@media (min-width: 768px) {
  .cnt-navbar { padding: 12px 24px; }
  .cnt-navbar-logo { height: 36px; }
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Footer ─────────────────────────────────────────── */
.cnt-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 13px;
  color: #6b7280;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  z-index: 90;
}
.cnt-footer span {
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}
.cnt-footer-copy {
  font-size: 17px;
  vertical-align: middle;
  line-height: 1;
}

@media (min-width: 768px) {
  .cnt-footer { padding: 8px 24px; }
}

body {
  font-family: 'Maersk Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fa;
  margin: 0;
  padding: 68px 0 48px; /* bottom clears fixed footer */
  color: #141414;
  -webkit-text-size-adjust: 100%;
}

/* mobile: 100%, flush edges */
.cnt-wrapper {
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 0;
  padding:0px 8px 10px 8px;
  box-shadow: none;
}

/* tablet (≥768px): 100%, still flush */
@media (min-width: 768px) {
  body { padding: 76px 0 48px; }
  .cnt-wrapper { width: 100%; padding: 10px 10px; border-radius: 0; box-shadow: none; }
}

/* desktop (≥1024px): 80%, rounded card */
@media (min-width: 1024px) {
  body { padding: 80px 24px 48px; }
  .cnt-wrapper {
    width: 80%;
    padding: 32px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.05);
  }
}

/* ── Instructions panel ─────────────────────────────── */
.cnt-instructions {
  padding: 12px 4px 4px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 4px;
}

@media (min-width: 1024px) {
  .cnt-instructions {
    padding: 0 0 20px;
    margin-bottom: 8px;
  }
}

.cnt-instr-section {
  margin-bottom: 14px;
}
.cnt-instr-section:last-child {
  margin-bottom: 0;
}

.cnt-instr-region {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #00243D;
  margin-bottom: 4px;
}

.cnt-instr-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cnt-instr-list li {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

.cnt-instr-list li::before {
  content: '* ';
  color: #00243D;
  font-weight: 600;
}

.cnt-header {padding-left:4px;padding-top:12px; }

@media (min-width: 1024px) {
  .cnt-header { padding: 0; }
}
.cnt-header h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 400;
  color: #00243D;
}
.cnt-header p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.55;
}
.cnt-header code {
  background: #e8f4fb;
  color: #005A87;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 13px;
}

/* ── Tag box ─────────────────────────────────────────── */
.cnt-box {
  min-height: 100px;
  max-height: 50vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  cursor: text;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  position: relative;
}
.cnt-box:focus-within {
  border-color: #0073AB;
  box-shadow: 0 0 0 3px rgba(0,115,171,0.13);
}

/* ── Tags ────────────────────────────────────────────── */
.cnt-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E6F4FA;
  border: 1px solid #9DD5EE;
  border-radius: 6px;
  padding: 6px 8px 6px 12px;
  font-size: 14px;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-weight: 600;
  color: #004A72;
  white-space: nowrap;
  user-select: none;
  animation: tagIn 0.14s ease;
  flex-shrink: 0;
  min-height: 40px;
}
@keyframes tagIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
.cnt-tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #005A87;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity 0.12s, background 0.12s;
  flex-shrink: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cnt-tag-remove:hover,
.cnt-tag-remove:active { opacity: 1; background: rgba(0,90,135,0.15); }

/* ── Editable cursor area ────────────────────────────── */
.cnt-editable {
  outline: none;
  flex: 1;
  min-width: 160px;
  font-size: 16px; /* prevents iOS auto-zoom */
  font-family: inherit;
  color: #141414;
  background: transparent;
  padding: 0 2px;
  align-self: center;
  word-break: break-all;
  white-space: pre-wrap;
  min-height: 40px;
  line-height: 40px;
  caret-color: #0073AB;
  touch-action: manipulation;
  text-transform: uppercase;
}
.cnt-editable:empty::before {
  content: attr(data-placeholder);
  color: #adb5bd;
  pointer-events: none;
  font-size: 12px;
  text-transform: capitalize;
}

/* ── Toolbar ─────────────────────────────────────────── */
.cnt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 1024px) {
  .cnt-toolbar { padding: 0; }
}

.cnt-count { font-size: 15px; color: #6b7280; flex-shrink: 0; }
.cnt-count strong { color: #0073AB; font-weight: 700; }

.cnt-actions { display: flex; gap: 10px; flex: 1; justify-content: flex-end; }
.cnt-btn {
  font-size: 15px;
  padding: 10px 18px;
  min-height: 44px;
  border-radius: 8px;
  border: 1.5px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  color: #374151;
  font-family: inherit;
  transition: background 0.1s, border-color 0.1s;
  font-weight: 600;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.cnt-btn:active { opacity: 0.8; }
.cnt-btn:focus-visible {
  outline: 3px solid #0073AB;
  outline-offset: 3px;
}
.cnt-btn-primary {
  background: #0073AB;
  border-color: #0073AB;
  color: #fff;
}
.cnt-btn-primary:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -5px;
  box-shadow: 0 0 0 4px #0073AB;
}
.cnt-btn-primary:active { background: #005A87; }
.cnt-btn-danger { color: #dc2626; border-color: #fca5a5; }
.cnt-btn-danger:active { background: #fef2f2; }
.cnt-btn-secondary {
  background: #fff;
  border-color: #0073AB;
  color: #0073AB;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.cnt-btn-secondary:hover { background: #e8f4fb; }
.cnt-btn-secondary:active { background: #d0eaf6; }

/* ── Main location website button wrapper ────────────── */
.cnt-main-location-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  margin-bottom: 28px;
}
.cnt-main-location-wrap[hidden] { display: none; }
.cnt-main-location-btn {
  font-size: 15px;
  padding: 10px 24px;
}

/* ── Results section ─────────────────────────────────── */
.cnt-results {
  width: 100%;
  margin: 0 auto;
  margin-top: 28px;
  padding:10px;
}

@media (min-width: 768px) {
  .cnt-results { width: 100%; }
}

@media (min-width: 1024px) {
  .cnt-results { width: 80%; }
}

.cnt-results-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.cnt-results-header h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #00243D;
}
.cnt-results-count {
  font-size: 13px;
  color: #6b7280;
}

/* ── Table ───────────────────────────────────────────── */
.cnt-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
}

.cnt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cnt-table thead {
  background: #f0f7fb;
}

.cnt-table th {
  text-align: left;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #00243D;
  border-bottom: 2px solid #d1d5db;
  white-space: nowrap;
}

.cnt-table td {
  padding: 12px 14px;
  vertical-align: top;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
  line-height: 1.5;
}

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

/* Zebra stripes — desktop table */
.cnt-table tbody tr:nth-child(odd) td  { background: #ffffff; }
.cnt-table tbody tr:nth-child(even) td { background: #f3f4f6; }

.cnt-table tbody tr:hover td {
  filter: brightness(0.96);
}

/* Container number badge inside the table */
.cnt-table-tag {
  display: inline-block;
  background: #E6F4FA;
  border: 1px solid #9DD5EE;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: 'Roboto Mono', 'Courier New', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #004A72;
  white-space: nowrap;
}

.cnt-table-loading,
.cnt-table-error {
  text-align: center;
  padding: 28px 14px;
  color: #6b7280;
  font-size: 14px;
}
.cnt-table-error { color: #dc2626; }
/* ── Error list (below table) ────────────────────── */
.cnt-error-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cnt-error-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  font-size: 14px;
}
.cnt-error-msg {
  color: #dc2626;
}

.cnt-coords {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
}
/* ── Contact cell ────────────────────────────────────── */
.cnt-contact-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Call button — mobile/tablet only */
.cnt-call-btn {
  display: none;
}

@media (max-width: 1023px) {
  .cnt-call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0073AB;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.12s;
  }
  .cnt-call-btn:active { background: #005A87; }
}

/* ── Card layout on small screens ────────────────────── */
@media (max-width: 640px) {
  .cnt-table thead { display: none; }

  .cnt-table,
  .cnt-table tbody,
  .cnt-table tr,
  .cnt-table td {
    display: block;
    width: 100%;
  }

  .cnt-table tr {
    border-bottom: 2px solid #e5e7eb;
    padding: 10px 0;
  }

  /* Zebra stripes — mobile/tablet cards */
  .cnt-table tbody tr:nth-child(odd)  { background: #ffffff; }
  .cnt-table tbody tr:nth-child(even) { background: #f3f4f6; }

  .cnt-table td {
    padding: 6px 14px;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .cnt-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
  }

  .cnt-table-loading,
  .cnt-table-error {
    display: block;
  }
}

