/* ============================================================
   ECBA Find a Lawyer — Responsive CSS
   Vervangt/vernieuwt ecba-admin.css met volledige mobile support
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&family=Roboto+Condensed:wght@700&display=swap');

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

body, td, th {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #000000;
}

body {
  background-color: #FFFFFF;
  margin: 0;
  padding: 0;
  background-image: none;
}

/* Centreert alle content op brede schermen */
#header,
#content2,
#disclaimertxt {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
  box-sizing: border-box;
}

/* ── Links ────────────────────────────────────────────────── */
a:link    { color: #0000CC; text-decoration: none; }
a:visited { color: #0000CC; text-decoration: none; }
a:hover   { color: #0000CC; text-decoration: underline; }
a:active  { color: #0000CC; text-decoration: none; }

/* ── Header ───────────────────────────────────────────────── */
#header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding-top: 20px;
  padding-bottom: 10px;
  max-width: 960px;
  flex-direction: column;
  gap: 0;
}

#header #headerlogo {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 0;
}

#header #headerlogo p {
  margin: 0 0 10px 0;
}

#header #headerlogo img {
  max-width: 254px;
  height: auto;
}

#header #headerlogo .country {
  display: block;
  margin: 10px 0 4px 0;
}

#header #headerlogo ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  max-width: 500px;
}

#header #headerlogo ul li {
  flex: 1 1 calc(25% - 6px);
  min-width: 100px;
}

#header #headerlogo ul li a {
  display: block;
  padding: 7px 10px;
  background-color: #496684;
  color: #ffffff;
  border-radius: 3px;
  font-size: 14px;
  text-align: center;
  transition: background-color 0.2s;
}

#header #headerlogo ul li a:hover {
  background-color: #C6B63D;
  color: #fff;
  text-decoration: none;
}

/* Active nav item */
#header #headerlogo ul li a.active {
  background-color: #C6B63D;
  color: #fff;
}

#header #headernav {
  width: 100%;
  padding-top: 16px;
  padding-left: 0;
  line-height: 1.6em;
}

#header #headernav p {
  margin: 0 0 8px 0;
}

/* ── Content areas ────────────────────────────────────────── */
#content1 {
  padding: 20px 25px 20px 265px;
}

#content2 {
  padding-top: 20px;
  padding-bottom: 20px;
}

/* ── Search form box ──────────────────────────────────────── */
.search-box {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
  max-width: 100%;
}

.search-box-header {
  background-color: #496684;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: bold;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.search-box-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
}

.search-box-body label {
  font-size: 16px;
  white-space: nowrap;
  min-width: 120px;
}

.search-box-body input[type="text"] {
  flex: 1 1 200px;
  padding: 7px 10px;
  font-size: 16px;
  line-height: 1.3;
  height: 38px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-width: 0;
  max-width: 400px;
}

.search-box-body select {
  flex: 1 1 200px;
  padding: 7px 28px 7px 10px;
  font-size: 16px;
  line-height: 1.3;
  height: 38px;
  max-height: 38px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-width: 0;
  max-width: 300px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: #fff;
  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 fill='%23496684' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  overflow: hidden;
  cursor: pointer;
}

.search-box-body input[type="submit"] {
  padding: 7px 20px;
  height: 38px;
  background-color: #496684;
  color: #ffffff;
  border: none;
  border-radius: 3px;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.search-box-body input[type="submit"]:hover {
  background-color: #C6B63D;
}

/* ── Search term display ──────────────────────────────────── */
.search-term {
  margin-bottom: 12px;
  font-size: 16px;
}

.search-term .country {
  font-weight: bold;
  color: #C6B63D;
  letter-spacing: 1px;
}

/* ── Results — kaartjes op alle devices ───────────────────── */
.results-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

/* Tabelstructuur omzetten naar kaartjes */
.results-table,
.results-table thead,
.results-table tbody,
.results-table th,
.results-table td,
.results-table tr {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.results-table thead tr {
  display: none;
}

/* Op tablet en groter: twee kolommen naast elkaar */
@media (min-width: 601px) {
  .results-table tbody {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

.results-table tr {
  border: 1px solid #C8B53F;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

@media (min-width: 601px) {
  .results-table tr {
    margin-bottom: 0;
  }
}

.results-table tr:hover {
  background-color: #fdfbf0;
}

.results-table td {
  border-bottom: 1px solid #f0ead0;
  padding: 4px 14px 6px 14px;
  word-break: break-word;
}

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

.results-table td::before {
  content: attr(data-label);
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #496684;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 1px;
  padding-top: 6px;
}

/* ── Helper classes ───────────────────────────────────────── */
.country {
  font-weight: bold;
  color: #C6B63D;
  letter-spacing: 1px;
}

.hoofdletters {
  text-transform: uppercase;
}

.startmethl {
  text-transform: capitalize;
}

.style1 { color: #666666; }
.style2 { font-size: 10px; color: #666666; }

.footnote {
  font-size: 14px;
  color: #666666;
  margin-top: 8px;
  max-width: 100%;
}

/* ── Disclaimer ───────────────────────────────────────────── */
#disclaimertxt {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #666666;
  padding-top: 10px;
  padding-bottom: 20px;
}

.disclaimer {
  color: #666666;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
}

/* ── Contact Details Card ─────────────────────────────────── */
.details-page {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 20px 40px 20px 40px;
  box-sizing: border-box;
}

.details-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #C6B63D;
  gap: 10px;
}

.details-header img {
  max-width: 254px;
  height: auto;
}

.details-date {
  font-size: 15px;
  color: #666666;
}

.details-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 20px;
}

.details-card-section {
  display: grid;
  grid-template-columns: 1fr;
}

.details-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid #ece8d0;
}

.details-row:last-child {
  border-bottom: none;
}

.details-label {
  background-color: #f0f4f7;
  font-size: 14px;
  color: #496684;
  font-weight: 600;
  padding: 9px 12px;
  text-align: right;
  border-right: 1px solid #ddd;
}

.details-value {
  padding: 9px 12px;
  font-size: 16px;
  word-break: break-word;
}

.details-section-title {
  background-color: #496684;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  text-transform: uppercase;
}

.details-disclaimer {
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.details-disclaimer strong {
  display: block;
  margin-bottom: 4px;
}

/* ── Tablet ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  #header,
  #content2,
  #disclaimertxt {
    padding-left: 20px;
    padding-right: 20px;
  }

  .details-page {
    padding-left: 20px;
    padding-right: 20px;
  }

  #header {
    padding-top: 15px;
    padding-bottom: 10px;
  }

  #content2 {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  #disclaimertxt {
    padding-top: 10px;
    padding-bottom: 20px;
  }
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {

  /* Prevent any horizontal overflow */
  body {
    overflow-x: hidden;
  }

  #header,
  #content2,
  #disclaimertxt {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Header */
  #header {
    padding-top: 12px;
    padding-bottom: 0;
    align-items: center;
    text-align: center;
  }

  #header #headerlogo {
    align-items: center;
  }

  #header #headerlogo img {
    max-width: 200px;
  }

  #header #headerlogo ul {
    max-width: 100%;
    justify-content: center;
  }

  #header #headerlogo ul li {
    flex: 1 1 calc(50% - 6px);
    min-width: unset;
  }

  #header #headerlogo ul li a {
    font-size: 14px;
    padding: 8px 4px;
  }

  #header #headernav {
    padding-top: 12px;
    font-size: 15px;
    text-align: left;
  }

  /* Content */
  #content2 {
    padding-top: 12px;
    padding-bottom: 12px;
    overflow: hidden;
  }

  #disclaimertxt {
    padding-top: 10px;
    padding-bottom: 20px;
  }

  /* Search form */
  .search-box,
  .search-term,
  .footnote {
    max-width: 100%;
    box-sizing: border-box;
  }

  .search-box-body {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box-body label {
    min-width: unset;
  }

  .search-box-body input[type="text"],
  .search-box-body select {
    max-width: 100%;
    width: 100%;
    height: 44px;
    max-height: 44px;
    font-size: 16px;
    padding: 0 44px 0 12px;
    box-sizing: border-box;
  }

  .search-box-body input[type="text"] {
    padding: 0 12px;
  }

  .search-box-body input[type="submit"] {
    width: 100%;
    height: 44px;
    font-size: 16px;
  }

  /* Results table wrap */
  .results-table-wrap {
    max-width: 100%;
    overflow: hidden;
  }

  .results-table {
    min-width: 0;
  }

  /* Contact details card */
  .details-page {
    padding: 12px 12px;
  }

  .details-row {
    grid-template-columns: 1fr;
  }

  .details-label {
    text-align: left;
    border-right: none;
    border-bottom: 1px solid #ddd;
    padding: 6px 12px 3px;
    font-size: 11px;
  }

  .details-value {
    padding: 3px 12px 8px;
  }

  .details-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ── Print ────────────────────────────────────────────────── */
@media print {
  #header #headerlogo ul,
  .search-box,
  .search-term {
    display: none;
  }

  body {
    background-image: none;
  }
}
