body.trend-page {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #1f2933;
  background: #f6f8fb;
  overflow-x: clip;
}

body.trend-page *,
body.trend-page *::before,
body.trend-page *::after {
  box-sizing: border-box;
}

body.trend-page header {
  background: linear-gradient(135deg, #2c3e50, #16a085);
  color: #fff;
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 56px;
}

body.trend-page.theme-metro header {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

body.trend-page header nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

body.trend-page .logo {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  flex: 0 0 auto;
}

body.trend-page .nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

body.trend-page .nav-links > li {
  flex: 0 0 auto;
  text-align: center;
}

body.trend-page .nav-links a,
body.trend-page .nav-links .dropbtn {
  color: #fff;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.92rem;
}

body.trend-page .nav-links a:hover,
body.trend-page .nav-links a:focus {
  background: rgba(255, 255, 255, 0.18);
}

body.trend-page .nav-links .dropdown {
  position: relative;
}

body.trend-page .nav-links .dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  z-index: 1001;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
  padding: 0.35rem 0;
}

body.trend-page .nav-links .dropdown:hover .dropdown-content,
body.trend-page .nav-links .dropdown:focus-within .dropdown-content {
  display: block;
}

body.trend-page .nav-links .dropdown-content a {
  display: block;
  color: #17324d !important;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
  text-align: left;
}

body.trend-page .nav-links .dropdown-content a:hover,
body.trend-page .nav-links .dropdown-content a:focus {
  background: #f0f4f8;
}

body.trend-page main {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

body.trend-page .breadcrumb {
  margin: 0 0 1rem;
  color: #52636f;
  font-size: 0.95rem;
}

body.trend-page .breadcrumb a {
  color: #0d6d5a;
  font-weight: 800;
}

body.trend-page.theme-metro .breadcrumb a {
  color: #1e3c72;
}

body.trend-page .hero,
body.trend-page .hero-section {
  width: 100%;
  background: linear-gradient(135deg, #2c3e50 0%, #115e47 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 15px;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 12px 30px rgba(22, 82, 75, 0.18);
}

body.trend-page.theme-metro .hero,
body.trend-page.theme-metro .hero-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  box-shadow: 0 12px 30px rgba(30, 60, 114, 0.18);
}

body.trend-page .hero h1,
body.trend-page .hero-section h1 {
  font-size: clamp(1.85rem, 4vw, 2.8rem);
  line-height: 1.18;
  margin: 0 0 1rem;
  color: #fff;
  overflow-wrap: break-word;
  text-wrap: balance;
}

body.trend-page .hero p,
body.trend-page .hero-section p {
  max-width: 900px;
  margin: 0.4rem auto 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.95);
  overflow-wrap: break-word;
}

body.trend-page .hero a,
body.trend-page .hero-section a {
  color: #fff;
  font-weight: 800;
}

body.trend-page .tool,
body.trend-page .section,
body.trend-page .calculator-container,
body.trend-page .info-section,
body.trend-page .faq-section {
  background: #fff;
  border: 1px solid #d9e4ea;
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  box-shadow: 0 6px 18px rgba(20, 35, 60, 0.07);
  max-width: 100%;
  min-width: 0;
}

body.trend-page .tool,
body.trend-page .calculator-container {
  border-top: 5px solid #16a085;
}

body.trend-page.theme-metro .tool,
body.trend-page.theme-metro .calculator-container {
  border-top-color: #1e3c72;
}

body.trend-page h2 {
  color: #17324d;
  line-height: 1.25;
  overflow-wrap: break-word;
}

body.trend-page .answer,
body.trend-page .note {
  box-shadow: none;
}

body.trend-page .note {
  background: #fff8e6;
  border-color: #f0d38a;
}

body.trend-page .form-grid,
body.trend-page .quick,
body.trend-page .line-grid,
body.trend-page .link-grid,
body.trend-page .results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

body.trend-page label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.35rem;
  color: #17324d;
}

body.trend-page select,
body.trend-page button {
  width: 100%;
  min-height: 48px;
  border-radius: 6px;
  border: 1px solid #b9c7d3;
  padding: 0.75rem;
  font-size: 1rem;
}

body.trend-page button {
  background: linear-gradient(135deg, #115e47, #16a085);
  color: #fff;
  border: 0;
  font-weight: 800;
  cursor: pointer;
  margin-top: 1rem;
}

body.trend-page.theme-metro button {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}

body.trend-page .result,
body.trend-page .quick div,
body.trend-page .link-grid a,
body.trend-page .line-grid a,
body.trend-page .line-grid div {
  border: 1px solid #d9e4ea;
  border-left: 4px solid #16a085;
  border-radius: 8px;
  padding: 0.95rem;
  background: #f8fbff;
  color: #17324d;
  text-decoration: none;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.trend-page.theme-metro .result,
body.trend-page.theme-metro .quick div,
body.trend-page.theme-metro .link-grid a,
body.trend-page.theme-metro .line-grid a,
body.trend-page.theme-metro .line-grid div {
  border-left-color: #1e3c72;
}

body.trend-page .result span,
body.trend-page .quick span {
  display: block;
  color: #52636f;
  font-size: 0.88rem;
  font-weight: 500;
}

body.trend-page .result strong,
body.trend-page .quick strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.14rem;
  color: #102a43;
}

body.trend-page .map {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #d9e4ea;
  background: #fff;
}

body.trend-page table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: #fff;
}

body.trend-page th,
body.trend-page td {
  padding: 0.7rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

body.trend-page th {
  background: #123d3a;
  color: #fff;
}

body.trend-page.theme-metro th {
  background: #1e3c72;
}

body.trend-page .table-wrap {
  overflow-x: auto;
}

body.trend-page .station-list {
  columns: 2;
  column-gap: 2rem;
  padding-left: 1.5rem;
}

body.trend-page .station-list li {
  break-inside: avoid;
  margin: 0.35rem 0;
}

body.trend-page .site-footer {
  text-align: center;
  padding: 2rem;
  background: #2c3e50;
  color: #fff;
  margin: 3rem auto 0;
  border-radius: 15px;
  max-width: 1200px;
}

body.trend-page.theme-metro .site-footer {
  background: #1e3c72;
}

body.trend-page .site-footer a {
  color: #fff;
  margin: 0 0.65rem;
  text-decoration: none;
  font-weight: 700;
}

body.trend-page .site-footer a:hover,
body.trend-page .site-footer a:focus {
  text-decoration: underline;
}

body.trend-page .site-footer img {
  vertical-align: middle;
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 768px) {
  body.trend-page header {
    padding: 0;
    min-height: 88px;
  }

  body.trend-page header nav {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    max-width: 100%;
    min-height: 88px;
    overflow-x: visible;
    overflow-y: visible;
  }

  body.trend-page header nav::-webkit-scrollbar {
    display: none;
  }

  body.trend-page main {
    padding: 1rem 0;
  }

  body.trend-page .logo {
    display: flex;
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    overflow: visible;
    padding: 0.72rem 0.75rem 0.56rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    letter-spacing: 0;
  }

  body.trend-page .logo::after {
    content: none;
    display: none;
  }

  body.trend-page .hero,
  body.trend-page .hero-section,
  body.trend-page .tool,
  body.trend-page .section,
  body.trend-page .calculator-container,
  body.trend-page .info-section,
  body.trend-page .faq-section {
    width: auto;
    padding: 1.25rem;
    margin-left: 1rem;
    margin-right: 1rem;
  }

  body.trend-page .breadcrumb {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  body.trend-page .nav-links {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    flex: 0 0 auto;
    min-width: 0;
    justify-content: stretch;
    align-items: center;
    gap: 0.22rem;
    margin: 0;
    padding: 0.28rem 0.35rem 0.48rem;
    overflow: visible;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
  }

  body.trend-page .nav-links > li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  body.trend-page .nav-links > li > a,
  body.trend-page .nav-links > li > .dropbtn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #fff;
    white-space: nowrap;
    font-size: 0;
    line-height: 1.1;
    padding: 0.34rem 0.06rem;
    text-align: center;
    overflow: hidden;
    text-overflow: clip;
  }

  body.trend-page .nav-links > li > a::after,
  body.trend-page .nav-links > li > .dropbtn::after {
    display: inline-block;
    font-size: 0.64rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  body.trend-page .nav-links > li:nth-child(1) > a::after,
  body.trend-page .nav-links > li:nth-child(1) > .dropbtn::after {
    content: "Metro \25BE";
  }

  body.trend-page .nav-links > li:nth-child(2) > a::after,
  body.trend-page .nav-links > li:nth-child(2) > .dropbtn::after {
    content: "Marmaray \25BE";
  }

  body.trend-page .nav-links > li:nth-child(3) > a::after,
  body.trend-page .nav-links > li:nth-child(3) > .dropbtn::after {
    content: "Metrob\00FCs \25BE";
  }

  body.trend-page .nav-links > li:nth-child(4) > a::after,
  body.trend-page .nav-links > li:nth-child(4) > .dropbtn::after {
    content: "Rehber \25BE";
  }

  body.trend-page .nav-links > li:nth-child(5) > a::after,
  body.trend-page .nav-links > li:nth-child(5) > .dropbtn::after {
    content: "S\00FCre";
  }

  body.trend-page .nav-links .dropdown {
    position: static;
  }

  body.trend-page .nav-links .dropdown-content {
    position: fixed;
    top: 88px;
    left: 0.65rem;
    right: 0.65rem;
    width: auto;
    min-width: 0;
    max-width: calc(100vw - 1.3rem);
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    margin-top: 0;
    transform: none;
    border-radius: 12px;
  }

  body.trend-page .nav-links .dropdown-content a {
    display: block;
    color: #17324d;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.78rem 0.95rem;
    white-space: normal;
    text-align: left;
  }

  body.trend-page .station-list {
    columns: 1;
  }

  body.trend-page .site-footer a {
    display: inline-block;
    margin: 0.35rem 0.55rem;
  }
}
