#tj-services-section.tjdc-home-services {
  --tjdc-accent: #b42332;
  box-sizing: border-box;
  max-width: 648px;
  margin: 0 auto;
  padding: 46px 24px 44px;
  font-family: Poppins, Arial, sans-serif;
}

#tj-services-section.tjdc-home-services * { box-sizing: border-box; }
#tj-services-section .tjdc-home-heading { margin: 0 0 16px; }
#tj-services-section .tjdc-home-heading p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #686e75;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
#tj-services-section .tjdc-home-heading p::before {
  content: "";
  flex: 0 0 28px;
  height: 2px;
  background: var(--tjdc-accent);
}
#tj-services-section .tjdc-home-heading h2 {
  margin: 0;
  color: #30343a;
  font: 700 clamp(27px, 4vw, 38px)/1.15 Poppins, Arial, sans-serif;
}
#tj-services-section .tjdc-home-heading h2 span { color: var(--tjdc-accent); }

#tj-services-section .tjdc-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

#tj-services-section .tjdc-home-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid #eceef1;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  color: #30343a;
  text-decoration: none;
  box-shadow: 0 9px 24px rgb(20 30 45 / 8%);
}
#tj-services-section .tjdc-home-card:focus-visible {
  outline: 2px solid var(--tjdc-accent);
  outline-offset: 2px;
}

#tj-services-section .tjdc-home-photo {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f3ebe2;
}
#tj-services-section .tjdc-home-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .6s ease;
}
#tj-services-section .tjdc-home-card:hover img { transform: scale(1.035); }
#tj-services-section .tjdc-home-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: rgb(255 255 255 / 97%);
  color: var(--tjdc-accent);
  box-shadow: 0 8px 20px rgb(30 40 60 / 14%);
}
#tj-services-section .tjdc-home-icon::before {
  content: "";
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--tjdc-icon) center / contain no-repeat;
  mask: var(--tjdc-icon) center / contain no-repeat;
}
#tj-services-section .tjdc-home-icon--airport { --tjdc-icon: url("icons/plane.svg"); }
#tj-services-section .tjdc-home-icon--oneday { --tjdc-icon: url("icons/duration.svg"); }
#tj-services-section .tjdc-home-icon--open { --tjdc-icon: url("icons/option.svg"); }
#tj-services-section .tjdc-home-icon--custom { --tjdc-icon: url("icons/settings.svg"); }

#tj-services-section .tjdc-home-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 5px 9px;
  border-radius: 99px;
  background: #fffdfa;
  color: #93202c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

#tj-services-section .tjdc-home-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
}
#tj-services-section .tjdc-home-body h3 {
  margin: 0;
  color: #30343a;
  font: 700 20px/1.25 Poppins, Arial, sans-serif;
}
#tj-services-section .tjdc-home-body .tjdc-home-detail {
  margin: 0;
  color: #535860;
  font-size: 13px;
  line-height: 1.55;
}
#tj-services-section .tjdc-home-body ul.tjdc-home-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  list-style: none;
}
#tj-services-section .tjdc-home-route-arrow { color: var(--tjdc-accent); }
#tj-services-section [data-route-focus="origin"] .tjdc-home-route-origin,
#tj-services-section [data-route-focus="destination"] .tjdc-home-route-destination {
  color: #30343a;
  font-weight: 600;
}
#tj-services-section .tjdc-home-action {
  display: flex;
  align-self: flex-end;
  align-items: center;
  justify-content: flex-end;
  width: 208px;
  max-width: 100%;
  min-height: 44px;
  gap: 8px;
  margin-top: auto;
  color: var(--tjdc-accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: right;
}
#tj-services-section .tjdc-home-card:hover .tjdc-home-action,
#tj-services-section .tjdc-home-card:focus-visible .tjdc-home-action {
  color: #941c28;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#tj-services-section .tjdc-home-action svg { flex: 0 0 auto; width: 16px; height: 16px; }

@media (max-width: 767px) {
  #tj-services-section.tjdc-home-services { padding: 30px 20px 32px; }
  #tj-services-section .tjdc-home-body h3 { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #tj-services-section .tjdc-home-photo img { transition: none; }
}

/* Balanced homepage service copy and aligned actions. */
@media screen and (min-width: 1024px) {
  #tj-services-section .tjdc-home-body .tjdc-home-detail { text-wrap: pretty; }
  #tj-services-section .tjdc-home-body .tjdc-home-action {
    align-self: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
}

/* Keep the original service copy below the desktop breakpoint. */
#tj-services-section .tjdc-home-body .tjdc-copy-desktop { display: none !important; }
@media screen and (min-width: 1024px) {
  #tj-services-section .tjdc-home-body .tjdc-copy-mobile { display: none !important; }
  #tj-services-section .tjdc-home-body .tjdc-copy-desktop { display: block !important; }
}

/* Three complete desktop cards with a preview of the next service. */
#tj-services-section .tjdc-carousel-controls { display:none; }
@media screen and (min-width:1024px) {
  #tj-services-section #tjdc-services-carousel {
    display:grid !important;
    grid-template-columns:none !important;
    grid-auto-flow:column !important;
    grid-auto-columns:calc((100% - 72px) / 3.25) !important;
    gap:24px !important;
    align-items:stretch;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;
    scrollbar-width:none;
    padding:3px 0 14px;
  }
  #tj-services-section #tjdc-services-carousel::-webkit-scrollbar { display:none; }
  #tj-services-section #tjdc-services-carousel:focus-visible { outline:2px solid var(--tjdc-accent); outline-offset:4px; }
  #tj-services-section #tjdc-services-carousel > .tjdc-home-card {scroll-snap-align:start;height:100%!important;min-width:0;}
  #tj-services-section .tjdc-home-body .tjdc-route-list {margin:0;padding:0;list-style:none;}
  #tj-services-section .tjdc-route-list li {display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr);align-items:center;gap:7px;margin:0 0 7px;line-height:1.6;}
  #tj-services-section .tjdc-route-list li > span:last-child {font-weight:600;color:#30343a;}
  #tj-services-section .tjdc-route-symbol {display:flex;align-items:center;justify-content:center;color:var(--tjdc-accent);}
  #tj-services-section .tjdc-route-symbol svg {display:block;width:20px;height:20px;}
  #tj-services-section .tjdc-carousel-controls {display:flex;justify-content:flex-end;gap:10px;margin-top:12px;}
  #tj-services-section .tjdc-carousel-controls button {display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #d9dde2;border-radius:50%;background:#fff;color:#b42332;cursor:pointer;transition:background .2s;}
  #tj-services-section .tjdc-carousel-controls button svg {width:21px;height:21px;}
  #tj-services-section .tjdc-carousel-controls button:hover:not(:disabled) {background:#fff3f4;border-color:#b42332;}
  #tj-services-section .tjdc-carousel-controls button:disabled {opacity:.35;cursor:default;}
  #tj-services-section .tjdc-carousel-controls button:focus-visible {outline:2px solid #b42332;outline-offset:3px;}
}

@media screen and (min-width:1024px) {
#tj-services-section .tjdc-home-card:nth-child(2) .tjdc-route-list li {grid-template-columns:minmax(0,.72fr) 20px minmax(0,1.28fr);}
}

@media screen and (min-width:1024px) {
  #tj-services-section .tjdc-route-pill {display:inline-flex;align-items:center;justify-content:center;max-width:100%;box-sizing:border-box;padding:2px 7px;border:2px solid #b42332;border-radius:999px;background:#fff;color:#111;font-size:12px;font-weight:600;line-height:1.25;white-space:nowrap;}
}

@media screen and (min-width:1024px) {
  #tj-services-section .tjdc-home-body .tjdc-route-list {display:flex!important;flex-flow:row wrap!important;align-items:flex-start;gap:8px;}
  #tj-services-section .tjdc-route-list li {display:block;margin:0;line-height:1.4;}
  #tj-services-section .tjdc-route-pill {border-width:1px;}
}

@media screen and (min-width:1024px) {
  #tj-services-section .tjdc-home-body ul.tjdc-route-list {flex-flow:row wrap!important;}
}

@media screen and (min-width:1024px) {
  #tj-services-section .tjdc-home-body table.tjdc-route-table.tjdc-copy-desktop {display:table!important;width:100%;margin:0;border-collapse:collapse;table-layout:fixed;text-align:left;color:#30343a;font-size:12px;line-height:1.45;}
  #tj-services-section .tjdc-route-table th {padding:0 7px 6px;border-bottom:1px solid #dfe3e8;color:#737a84;text-align:left;font-size:10px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;}
  #tj-services-section .tjdc-route-table th:first-child, #tj-services-section .tjdc-route-table td:first-child {width:50%;}
  #tj-services-section .tjdc-route-table td {padding:6px 7px;border-bottom:1px solid #eceef1;vertical-align:middle;}
  #tj-services-section .tjdc-route-table tbody tr:last-child td {border-bottom:0;}
  #tj-services-section .tjdc-route-table td:first-child {font-weight:500;}
}

@media screen and (min-width:1024px) {
  #tj-services-section .tjdc-home-card:nth-child(2) .tjdc-route-table th:first-child,
  #tj-services-section .tjdc-home-card:nth-child(2) .tjdc-route-table td:first-child {width:38%;}
}
