/* =========================
   Telefonkatalogen - komplett CSS
   ========================= */

.tk-page {
  padding: 20px;
}

/* ---------- Form ---------- */

.tk-form {
  margin-bottom: 18px;
}

.tk-title {
  margin: 0 0 10px;
}

.tk-form-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tk-input {
  width: 100%;
  max-width: 400px;
}

.tk-submit {
  white-space: nowrap;
}

.tk-checks {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Results ---------- */

.tk-results {
  margin-top: 20px;
}

.tk-results-title {
  margin: 0 0 4px;
}

.tk-results-meta {
  margin: 0 0 12px;
}

.tk-section-title {
  margin: 18px 0 10px;
}

.tk-error {
  padding: 10px;
  border: 1px solid #d33;
  background: #fee;
  color: #900;
  border-radius: 4px;
}

/* ---------- Card ---------- */

.tk-card {
  border: 1px solid #b3b3b3;
  border-left: 4px solid #b3b3b3;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  background: #fff;
}

/* Ny topp-rad:
   vänster = namn + adress
   höger = telefon */
.tk-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: nowrap;
}

.tk-card-head-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.tk-card-name {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  white-space: nowrap;
}

.tk-card-address-inline {
  color: #444;
  white-space: nowrap;
}

.tk-card-numbers-inline {
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
}

.tk-card-line {
  margin-top: 6px;
}

.tk-ad-wrap {
  margin: 10px 0;
}

.tk-ad-img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Tel links ---------- */

.tk-tel-link {
  display: inline-block;
  text-decoration: none;
}

.tk-tel-link-first {
  margin-right: 8px;
}

/* ---------- Children ---------- */

.tk-children {
  margin-top: 10px;
}

.tk-group-title {
  margin: 2px 0 6px;
}

.tk-child-row {
  border-radius: 6px;
  background: #ececec;
  margin: 5px 0;
  padding: 8px;
}

.tk-child-row-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tk-child-label {
  flex: 1 1 auto;
  min-width: 0;
}

.tk-child-numbers {
  flex: 0 0 170px;   /* fast högerkolumn */
  text-align: right;
  white-space: nowrap;
}

.tk-child-meta {
  margin-top: 4px;
}

/* ---------- Pagination ---------- */

.tk-pagination {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.tk-page-btn {
  text-decoration: none;
}

.tk-page-current {
  padding: 6px 10px;
  border: 1px solid #333;
  border-radius: 4px;
}

.tk-page-num {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
}

/* ---------- Links in catalog ---------- */

.tk-card a,
.tk-child-meta a {
  text-decoration: none;
}

.tk-card a:hover,
.tk-child-meta a:hover,
.tk-tel-link:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */

@media (max-width: 768px) {
  .tk-page {
    padding: 14px;
  }

  .tk-card-name {
    font-size: 20px;
  }

  .tk-card-address-inline {
    font-size: 12px;
  }
}

@media (max-width: 640px) {
  .tk-form-row {
    align-items: stretch;
  }

  .tk-submit {
    width: 100%;
  }

  /* låt topp-raden brytas snyggt på mobil */
  .tk-card-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .tk-card-head-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .tk-card-name {
	  font-size; 20px;
  }
  .tk-card-address-inline {
   font-size: 
  }
  .tk-card-name,
  .tk-card-address-inline {
    white-space: normal;
  }

  .tk-card-numbers-inline {
    width: 100%;
    text-align: left;
    margin-top: 2px;
    white-space: normal;
  }

  .tk-child-row-main {
    flex-direction: column;
    gap: 4px;
  }

  .tk-child-numbers {
    flex: 0 0 auto;
    width: 100%;
    text-align: left;
    white-space: normal;
  }
}

.tk-form {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 20, 20, 0.04);
}

.tk-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.1px;
}

.tk-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: nowrap;
}

.tk-input {
  width: 100%;
  max-width: none;
  height: 44px;
  border: 1px solid #b3b3b3 !important;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 16px;
  line-height: 44px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  box-sizing: border-box;
}

.tk-input::placeholder {
  color: #9aa3af;
}

.tk-input:hover {
  border-color: #bfc7d2;
}

.tk-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  background: #fff;
}

/* Knapp */
.tk-submit.button,
.button.tk-submit {
  height: 44px;
  border-radius: 10px;
  padding: 0 18px;
  border: 1px solid #2f6fda;
  background: #3b82f6;
  color: #fff;
  font-weight: 600;
  line-height: 42px;
  font-size: 16px;  
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.06s ease, box-shadow 0.16s ease, opacity 0.16s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.tk-submit.button:hover,
.button.tk-submit:hover {
  opacity: 0.95;
}

.tk-submit.button:active,
.button.tk-submit:active {
  transform: translateY(1px);
}

.tk-submit.button:focus-visible,
.button.tk-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

/* Checkboxrad */
.tk-checks {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.tk-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #374151;
  padding: 6px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f9fafb;
  cursor: pointer;
  user-select: none;
}

.tk-checks input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

/* Mobil */
@media (max-width: 640px) {
  .tk-form {
    padding: 14px;
    border-radius: 10px;
  }

  .tk-form-row {
    flex-wrap: wrap;
  }

  .tk-input {
    height: 42px;
    font-size: 16px; /* undviker iOS-zoom */
  }

  .tk-submit.button,
  .button.tk-submit {
    width: 100%;
    height: 42px;
    line-height: 40px;
  }
}

/* === Fix: samma höjd input/knapp + röd profilfärg === */

.tk-form-row {
  align-items: stretch; /* gör att barnen matchar höjd */
}

.tk-input {
  height: 46px !important;
  line-height: 46px !important;
  box-sizing: border-box;
}

.tk-submit.button,
.button.tk-submit {
  height: 46px;
  line-height: 46px;
  padding: 0 18px;
  box-sizing: border-box;
  border: none !important;          /* ingen border */
  background: #c52a30 !important;   /* din röda färg */
  box-shadow: 0 2px 8px rgba(197, 42, 48, 0.28);
}

.tk-submit.button:hover,
.button.tk-submit:hover {
  background: #ad2429 !important;
}

.tk-submit.button:focus-visible,
.button.tk-submit:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(197, 42, 48, 0.2);
}

/* Focusfärg på input kan matcha knappen */
.tk-input:focus {
  border-color: #c52a30;
  box-shadow: 0 0 0 4px rgba(197, 42, 48, 0.15);
}

/* Checkbox accent-färg */
.tk-checks input[type="checkbox"] {
  accent-color: #c52a30;
}

/* Valfritt: text/chip-känsla lite mer rödtonad */
.tk-checks label {
  border-color: #f0d4d5;
  background: #fff7f7;
}

.tk-submit.button, .button.tk-submit { display: inline-flex; align-items: center; justify-content: center; }

/* Partnerrad under knappen, högerjusterad */
.tk-partner {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.tk-partner-text {
  font-size: 13px;
  color: #666;
  line-height: 1;
}

.tk-partner-logo {
  display: block;
  height: 22px;   /* justera 20–28px efter smak */
  width: auto;
  max-width: 140px;
}

/* Mobil: centrera för bättre balans */
@media (max-width: 640px) {
  .tk-partner {
    justify-content: center;
    margin-top: 12px;
  }

  .tk-partner-logo {
    height: 20px;
  }
}
/* Checkbox + partner på samma rad */
.tk-form-bottom {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.tk-checks {
  margin-top: 0;                 /* viktig: ta bort tidigare top-margin */
  display: flex;
  gap: 10px 16px;
  flex-wrap: wrap;
  min-width: 0;
}

.tk-partner {
  margin-top: 0;                 /* viktig: ta bort tidigare top-margin */
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.tk-partner-text {
  font-size: 13px;
  color: #666;
  line-height: 1;
}

.tk-partner-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: 140px;
}

/* Mobil: bryt till två rader */
@media (max-width: 640px) {
  .tk-form-bottom {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .tk-checks {
    width: 100%;
  }

  .tk-partner {
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }
}
.tk-inline-ad:before {
	content: '- ANNONS -';
}
.tk-inline-ad {
  margin: 12px 0 16px;
  padding: 0;
  padding-top:10px;
  text-align: center;
}