/* TRAVLUNO TRAVEL DISTANCE CALCULATOR */

.tdc-app {
  --tdc-navy: #073c4b;
  --tdc-teal: #078589;
  --tdc-border: #d5e5e8;
  --tdc-muted: #607883;
  max-width: 1200px;
  margin: 35px auto;
  padding: 0 16px;
  color: #123e4d;
  font-family: Arial, sans-serif;
}

.tdc-app *,
.tdc-app *::before,
.tdc-app *::after {
  box-sizing: border-box;
}

.tdc-header {
  text-align: center;
  padding: 26px 12px 42px;
}

.tdc-header > span {
  color: var(--tdc-teal);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.tdc-header h2 {
  color: var(--tdc-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.2;
  font-weight: 800;
  margin: 13px 0 16px;
}

.tdc-header p {
  color: var(--tdc-muted);
  font-size: 16px;
  line-height: 1.8;
  max-width: 750px;
  margin: 0 auto;
}

.tdc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}

.tdc-panel {
  background: #fff;
  border: 1px solid var(--tdc-border);
  border-radius: 20px;
  padding: 28px;
  min-width: 0;
  box-shadow: 0 12px 35px rgba(7,60,75,.06);
}

.tdc-panel h3 {
  color: var(--tdc-navy);
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 25px;
}

.tdc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.tdc-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.tdc-full {
  grid-column: 1 / -1;
}

.tdc-field label {
  color: var(--tdc-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.tdc-field input,
.tdc-field select {
  width: 100%;
  min-width: 0;
  height: 55px;
  background: #fff;
  color: #123e4d;
  border: 1px solid #cbdfe3;
  border-radius: 12px;
  padding: 12px 15px;
  font: 600 15px Arial, sans-serif;
  outline: none;
  box-shadow: none;
}

.tdc-field input:focus,
.tdc-field select:focus {
  border-color: var(--tdc-teal);
  box-shadow: 0 0 0 3px rgba(7,133,137,.10);
}

.tdc-actions {
  display: flex;
  gap: 12px;
  margin-top: 27px;
}

.tdc-app button {
  font: 700 14px Arial, sans-serif !important;
  min-height: 53px;
  padding: 13px 17px;
  border-radius: 11px;
  cursor: pointer;
  transition: .2s ease;
}

.tdc-primary {
  flex: 1;
  background: var(--tdc-teal) !important;
  color: #fff !important;
  border: 1px solid var(--tdc-teal) !important;
}

.tdc-primary:hover {
  background: #066d72 !important;
}

.tdc-reset {
  background: #f4f9fa !important;
  color: var(--tdc-navy) !important;
  border: 1px solid var(--tdc-border) !important;
}

.tdc-hint,
.tdc-disclaimer {
  font-size: 12px;
  line-height: 1.8;
  color: var(--tdc-muted);
  margin: 20px 0 0;
}

.tdc-result-hero {
  background: linear-gradient(135deg,#073c4b,#078589);
  color: #fff;
  border-radius: 15px;
  padding: 30px 18px;
  text-align: center;
}

.tdc-result-hero > span {
  color: #def4f3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
}

.tdc-result-hero h3 {
  color: #fff !important;
  font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 800;
  margin: 13px 0 !important;
  overflow-wrap: anywhere;
}

.tdc-result-hero p {
  color: #e0f5f4;
  font-size: 13px;
  line-height: 1.6;
  margin: 0;
}

.tdc-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 23px 0 29px;
}

.tdc-stat {
  background: #eff8f8;
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  min-width: 0;
}

.tdc-stat span {
  display: block;
  color: var(--tdc-muted);
  font-size: 12px;
  margin-bottom: 9px;
}

.tdc-stat strong {
  display: block;
  color: var(--tdc-navy);
  font-size: 18px;
  overflow-wrap: anywhere;
}

.tdc-results h4 {
  color: var(--tdc-navy);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 18px;
}

.tdc-breakdown {
  display: grid;
}

.tdc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e9f0f2;
  font-size: 14px;
}

.tdc-row span {
  color: var(--tdc-muted);
}

.tdc-row strong {
  color: var(--tdc-navy);
  text-align: right;
  overflow-wrap: anywhere;
}

.tdc-actions-secondary {
  display: grid;
  gap: 11px;
  margin-top: 25px;
}

.tdc-actions-secondary button {
  width: 100%;
  background: #fff !important;
  color: var(--tdc-teal) !important;
  border: 1px solid var(--tdc-teal) !important;
}

.tdc-actions-secondary button:hover {
  background: #eaf7f7 !important;
}

.tdc-info {
  margin-top: 30px;
  background: #f3f9f9;
  border: 1px solid var(--tdc-border);
  border-radius: 18px;
  padding: 28px;
}

.tdc-info h3 {
  color: var(--tdc-navy);
  font-size: 23px;
  margin: 0 0 15px;
}

.tdc-info p {
  color: #486977;
  font-size: 15px;
  line-height: 1.9;
  margin: 0 0 13px;
}

@media(max-width:900px) {
  .tdc-layout {
    grid-template-columns: 1fr;
  }
}

@media(max-width:520px) {
  .tdc-app {
    padding: 0 10px;
  }

  .tdc-panel {
    padding: 20px 16px;
  }

  .tdc-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .tdc-actions {
    flex-direction: column;
  }

  .tdc-stat strong {
    font-size: 16px;
  }

  .tdc-info {
    padding: 20px;
  }
}

@media print {
  body * {
    visibility: hidden;
  }

  .tdc-app,
  .tdc-app * {
    visibility: visible;
  }

  .tdc-app {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }

  .tdc-header,
  .tdc-layout > form,
  .tdc-info,
  .tdc-actions-secondary {
    display: none !important;
  }

  .tdc-layout {
    display: block;
  }

  .tdc-results {
    box-shadow: none;
  }
}

/* Travel Distance Calculator - Input Placeholder Fix */

.tdc-app #tdc-from,
.tdc-app #tdc-to {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: #073c4b !important;
}

.tdc-app #tdc-from::placeholder,
.tdc-app #tdc-to::placeholder {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
}

/* TRAVLUNO - ADVANCED COORDINATES */

.tdc-advanced {
    border: 1px solid #d5e5e8;
    border-radius: 12px;
    padding: 16px;
    background: #f7fbfb;
    margin: 10px 0;
}

.tdc-advanced summary {
    cursor: pointer;
    color: #078589;
    font-size: 14px;
    font-weight: 700;
}

.tdc-advanced-note {
    font-size: 13px;
    color: #607883;
    margin: 15px 0;
    line-height: 1.7;
}

.tdc-advanced .tdc-grid {
    margin-top: 15px;
}
