/* ==========================================================================
   Uttarakhand Distance Calculator Styles (Ghughuti Travel Tools)
   ========================================================================== */

.uk-udc-container {
  box-sizing: border-box;
  max-width: 1140px;
  margin: 30px auto;
  padding: 28px 24px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(15, 56, 34, 0.08);
  font-family: inherit;
  color: #2d3748;
}

.uk-udc-container * {
  box-sizing: border-box;
}

.uk-udc-header {
  text-align: center;
  margin-bottom: 22px;
}

.uk-udc-badge {
  display: inline-block;
  background: #eef6f1;
  color: #1a5336;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid #c8e6d5;
}

.uk-udc-title {
  font-size: 28px;
  font-weight: 800;
  color: #1a5336;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.uk-udc-subtitle {
  font-size: 15px;
  color: #55695d;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Most Searched Routes Strip */
.uk-udc-popular-strip {
  background: #f4f9f6;
  border: 1px solid #d8e8de;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 24px;
}

.uk-udc-popular-title {
  font-size: 12px;
  font-weight: 800;
  color: #1a5336;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.uk-udc-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.uk-udc-chip {
  background: #ffffff;
  border: 1px solid #c4dcce;
  color: #1a5336;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.uk-udc-chip:hover {
  background: #1a5336;
  color: #ffffff;
  border-color: #1a5336;
  transform: translateY(-1px);
}

.uk-udc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 35px;
}

@media (max-width: 820px) {
  .uk-udc-layout {
    grid-template-columns: 1fr;
  }
}

.uk-udc-inputs {
  background: #fbfdfc;
  padding: 24px;
  border-radius: 14px;
  border: 1px solid #e2ebe5;
}

.uk-udc-group {
  margin-bottom: 16px;
}

.uk-udc-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1e3a2b;
  margin-bottom: 6px;
}

.uk-udc-select-wrap {
  position: relative;
}

.uk-udc-select {
  width: 100%;
  padding: 11px 14px;
  font-size: 14px;
  border-radius: 8px;
  border: 1.5px solid #d2ded7;
  background: #ffffff;
  color: #2d3748;
  outline: none;
  cursor: pointer;
}

.uk-udc-select:focus {
  border-color: #1a5336;
}

/* GPS Button */
.uk-udc-gps-wrap {
  margin: -6px 0 12px 0;
  text-align: center;
}

.uk-udc-gps-btn {
  width: 100%;
  background: #eef6f1;
  color: #1a5336;
  border: 1px dashed #2e7d56;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uk-udc-gps-btn:hover {
  background: #1a5336;
  color: #ffffff;
  border-style: solid;
}

.uk-udc-gps-notice {
  font-size: 11.5px;
  color: #2e7d56;
  font-weight: 600;
  margin-top: 4px;
}

.uk-udc-swap-wrap {
  text-align: center;
  margin: -4px 0 12px 0;
}

.uk-udc-swap-btn {
  background: #ffffff;
  border: 1.5px solid #d2ded7;
  color: #1a5336;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uk-udc-swap-btn:hover {
  background: #1a5336;
  color: #ffffff;
  border-color: #1a5336;
}

/* Results Card */
.uk-udc-card {
  background: #ffffff;
  border: 1.5px solid #d2ded7;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(15, 56, 34, 0.06);
}

.uk-udc-card-badge {
  display: inline-block;
  background: #eef6f1;
  color: #1a5336;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uk-udc-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.uk-udc-metric-item {
  background: #fbfdfc;
  border: 1px solid #e5ede8;
  border-radius: 10px;
  padding: 14px 10px;
}

.uk-udc-metric-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #718096;
}

.uk-udc-metric-value {
  font-size: 26px;
  font-weight: 900;
  color: #1a5336;
  margin-top: 4px;
}

/* Terrain bar */
.uk-udc-terrain-box {
  background: #fbfdfc;
  border: 1px solid #e5ede8;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 20px;
}

.uk-udc-terrain-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e3a2b;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.uk-udc-terrain-bar {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 8px;
}

.uk-udc-terrain-plain {
  background: #3b82f6;
  height: 100%;
}

.uk-udc-terrain-hill {
  background: #1a5336;
  height: 100%;
}

.uk-udc-terrain-legend {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #4a5568;
}

/* Specs list */
.uk-udc-specs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.uk-udc-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  border-bottom: 1px solid #f0f4f2;
  padding-bottom: 8px;
}

.uk-udc-spec-k {
  color: #64748b;
  font-weight: 600;
}

.uk-udc-spec-v {
  color: #1e293b;
  font-weight: 700;
  text-align: right;
  max-width: 60%;
}

/* Actions */
.uk-udc-actions {
  display: flex;
  gap: 10px;
}

.uk-udc-btn {
  flex: 1;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s ease;
}

.uk-udc-btn-maps {
  background: #1a5336;
  color: #ffffff;
}

.uk-udc-btn-maps:hover {
  background: #0f3822;
  color: #ffffff;
}

.uk-udc-btn-copy {
  background: #ffffff;
  color: #1a5336;
  border: 1.5px solid #1a5336;
}

.uk-udc-btn-copy:hover {
  background: #edf5f0;
}

/* Structured Reference Tables */
.uk-udc-table-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2ebe5;
}

.uk-udc-table-heading {
  font-size: 20px;
  font-weight: 800;
  color: #1a5336;
  margin: 0 0 10px 0;
}

.uk-udc-table-desc {
  font-size: 14.5px;
  color: #4a5568;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.uk-udc-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2ebe5;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.uk-udc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13.5px;
  min-width: 580px;
}

.uk-udc-table thead {
  background: #edf6f1;
}

.uk-udc-table th {
  padding: 12px 16px;
  color: #1a5336;
  font-weight: 700;
  border-bottom: 2px solid #d2ded7;
}

.uk-udc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #edf2ef;
  color: #2d3748;
}

.uk-udc-table tbody tr:nth-child(even) {
  background: #fbfdfc;
}

.uk-udc-table tbody tr:hover {
  background: #f2f8f4;
}

/* FAQ Accordion */
.uk-udc-faq-box {
  margin-top: 36px;
  padding: 24px;
  background: #f8faf9;
  border: 1px solid #e2ebe5;
  border-radius: 14px;
}

.uk-udc-faq-header {
  font-size: 20px;
  font-weight: 800;
  color: #1a5336;
  margin: 0 0 18px 0;
}

.uk-udc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.uk-udc-faq-item {
  background: #ffffff;
  border: 1px solid #dbe6e0;
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uk-udc-faq-item[open] {
  border-color: #1a5336;
  box-shadow: 0 2px 8px rgba(26, 83, 54, 0.08);
}

.uk-udc-faq-q {
  font-size: 15px;
  font-weight: 700;
  color: #1e3a2b;
  outline: none;
}

.uk-udc-faq-a {
  margin-top: 10px;
  font-size: 14px;
  color: #4a5568;
  line-height: 1.6;
  border-top: 1px solid #f0f4f2;
  padding-top: 10px;
}
