/**
 * FromTo homepage — modern compact premium sales layout.
 */

/* Shell ------------------------------------------------------------------ */

html:has(.ramaya-fromto-home--sales),
body.home:has(.ramaya-fromto-home--sales) {
  overflow-x: hidden;
  max-width: 100%;
}

/*
 * Header fixed overlay di atas hero.
 * top mengikuti --wp-admin--admin-bar--height (0 guest / 32–46px login).
 */
body.home:has(.ramaya-fromto-home--sales) header.site-header {
  position: fixed !important;
  top: var(--wp-admin--admin-bar--height, 0px) !important;
  left: 0;
  right: 0;
  width: 100%;
}

@media screen and (max-width: 782px) {
  html.ramaya-header-flush-top body.admin-bar.home:has(.ramaya-fromto-home--sales) header.site-header {
    top: 0 !important;
  }
}

body.home:has(.ramaya-fromto-home--sales) .site {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

body.home:has(.ramaya-fromto-home--sales) .site-main,
body.home:has(.ramaya-fromto-home--sales) #main,
body.home:has(.ramaya-fromto-home--sales) .entry,
body.home:has(.ramaya-fromto-home--sales) .entry-content,
body.home:has(.ramaya-fromto-home--sales) .ramaya-fromto-home--sales {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.home:has(.ramaya-fromto-home--sales) .site-header .site-header__inner,
body.home:has(.ramaya-fromto-home--sales) .site-footer__inner,
body.home:has(.ramaya-fromto-home--sales) .site-footer__copy-inner {
  width: min(1120px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Tokens ----------------------------------------------------------------- */

.ramaya-fromto-home--sales {
  --ft-ink: #0a1f28;
  --ft-ink-soft: #1e3a45;
  --ft-muted: #5a727c;
  --ft-line: rgba(10, 31, 40, 0.1);
  --ft-sea: #1a6b75;
  --ft-sea-deep: #0f4a52;
  --ft-lagoon: #2f8f9a;
  --ft-gold: #d4a574;
  --ft-gold-hot: #e0b88a;
  --ft-foam: #f2f6f7;
  --ft-white: #ffffff;
  --ft-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --ft-sans: "Manrope", "Segoe UI", sans-serif;
  --ft-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ft-content-max: 1076px;
  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--ft-foam);
  color: var(--ft-ink);
  font-family: var(--ft-sans);
  box-sizing: border-box;
}

.ramaya-fromto-home--sales > .ramaya-fromto-hero {
  background: #0a1f28;
}

.ramaya-fromto-home--sales *,
.ramaya-fromto-home--sales *::before,
.ramaya-fromto-home--sales *::after {
  box-sizing: border-box;
}

.ramaya-fromto-home__inner {
  width: min(var(--ft-content-max), calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: 0 0 2.75rem;
}

/* Buttons ---------------------------------------------------------------- */

.ramaya-fromto-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.2s var(--ft-ease), background 0.2s ease, color 0.2s ease;
}

.ramaya-fromto-btn:hover {
  transform: translateY(-1px);
}

.ramaya-fromto-btn--gold {
  background: var(--ft-gold);
  color: var(--ft-ink) !important;
}

.ramaya-fromto-btn--gold:hover {
  background: var(--ft-gold-hot);
}

.ramaya-fromto-btn--ink {
  background: var(--ft-ink);
  color: #fff !important;
}

.ramaya-fromto-btn--ink:hover {
  background: var(--ft-ink-soft);
}

/* Hero ------------------------------------------------------------------- */

.ramaya-fromto-hero {
  position: relative;
  left: auto;
  right: auto;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
  min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.ramaya-fromto-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background-color: #0a1f28;
  background-image: var(--ft-hero-bg);
  background-size: cover !important;
  background-position: center center;
  background-repeat: no-repeat;
}

.ramaya-fromto-hero__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-width: 100%;
  min-height: 100%;
  max-width: none !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center center;
  transform: scale(1.03);
  animation: ramaya-fromto-hero-pan 22s var(--ft-ease) infinite alternate;
}

.ramaya-fromto-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 18, 24, 0.35) 0%, rgba(6, 18, 24, 0.12) 38%, rgba(6, 18, 24, 0.82) 100%),
    linear-gradient(115deg, rgba(15, 74, 82, 0.4) 0%, transparent 52%);
}

.ramaya-fromto-hero__inner {
  position: relative;
  z-index: 1;
  width: min(var(--ft-content-max), calc(100% - 2rem));
  max-width: none;
  margin: 0 auto;
  padding: clamp(5.25rem, 11vh, 6.75rem) 0 1.65rem;
}

.ramaya-fromto-hero__brand {
  margin: 0 0 0.55rem;
  font-family: var(--ft-display);
  font-size: clamp(2.65rem, 7vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.92;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  animation: ramaya-fromto-rise 0.75s var(--ft-ease) both;
}

.ramaya-fromto-hero__title {
  margin: 0 0 0.5rem;
  max-width: 18ch;
  font-family: var(--ft-sans);
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  animation: ramaya-fromto-rise 0.85s var(--ft-ease) 0.06s both;
}

.ramaya-fromto-hero__lead {
  margin: 0 0 1.1rem;
  max-width: 32rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  animation: ramaya-fromto-rise 0.95s var(--ft-ease) 0.12s both;
}

.ramaya-fromto-hero__finder {
  animation: ramaya-fromto-rise 1.05s var(--ft-ease) 0.18s both;
}

.ramaya-fromto-hero__wa {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  animation: ramaya-fromto-rise 1.1s var(--ft-ease) 0.24s both;
}

.ramaya-fromto-hero__wa a {
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(212, 165, 116, 0.55);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.ramaya-fromto-hero__wa a:hover {
  color: #fff !important;
  border-bottom-color: var(--ft-gold);
}

/* Hero finder (interaction surface) ------------------------------------- */

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter {
  position: static;
  padding: 0.9rem 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 48px rgba(4, 16, 22, 0.28);
  color: var(--ft-ink);
}

.ramaya-fromto-home--sales .ramaya-fromto-filter__heading {
  margin: 0 0 0.1rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ft-sea);
}

.ramaya-fromto-home--sales .ramaya-fromto-filter__lead {
  margin: 0 0 0.7rem;
  color: var(--ft-muted);
  font-size: 0.88rem;
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__form {
  display: grid;
  gap: 0.65rem;
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__route,
.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__extras {
  border-color: rgba(12, 36, 48, 0.1);
  box-shadow: none;
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__label {
  color: #3d5a66;
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__icon {
  background: #eef3f5;
  color: var(--ft-sea);
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__icon--meta {
  background: #f3f5f7;
  color: #475569;
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__submit {
  border: 0;
  border-radius: 12px;
  background: var(--ft-sea-deep);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__submit:hover {
  background: var(--ft-sea);
}

.ramaya-fromto-home--sales .ramaya-fromto-filter__select,
.ramaya-fromto-home--sales .ramaya-fromto-filter__input,
.ramaya-fromto-home--sales .ramaya-fromto-filter__trigger {
  color: var(--ft-ink);
}

.ramaya-fromto-home--sales .ramaya-fromto-filter__option.is-active {
  background: color-mix(in srgb, var(--ft-sea) 12%, #fff);
  color: var(--ft-sea-deep);
}

@media (min-width: 721px) {
  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter {
    padding: 0.7rem;
    border: 0;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 16px 40px rgba(4, 16, 22, 0.22);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__heading,
  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__lead {
    display: none;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__form {
    grid-template-columns: minmax(12rem, 1.2fr) minmax(15rem, 1.55fr) auto;
    align-items: stretch;
    gap: 0.45rem;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__route,
  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__extras {
    border: 0;
    background: transparent;
    gap: 0.4rem;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__route {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__extras {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__field {
    padding: 0.6rem 0.85rem;
    min-height: 3.1rem;
    border: 0 !important;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(4, 16, 22, 0.1);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__field--from .ramaya-fromto-filter__icon:not(.ramaya-fromto-filter__icon--meta),
  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__field--to .ramaya-fromto-filter__icon:not(.ramaya-fromto-filter__icon--meta) {
    display: none;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__field--from,
  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__field--to {
    grid-template-columns: minmax(0, 1fr);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__label {
    display: none;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__swap {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    align-self: center;
    margin: 0;
    width: 2rem;
    height: 2rem;
    border-color: transparent;
    background: #fff;
    color: var(--ft-sea);
    box-shadow: 0 6px 16px rgba(4, 16, 22, 0.1);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__swap-icon {
    transform: rotate(90deg);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__submit {
    min-width: 9.25rem;
    min-height: 100%;
    align-self: stretch;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(4, 16, 22, 0.16);
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__menu {
    min-width: 16rem;
  }
}

.ramaya-fromto-home--sales .ramaya-fromto-hero.is-menu-open,
.ramaya-fromto-home--sales .ramaya-fromto-hero:has(.is-open) {
  overflow: visible;
}

/* Section heads ---------------------------------------------------------- */

.ramaya-fromto-section-head {
  margin: 0 0 1rem;
  max-width: 36rem;
}

.ramaya-fromto-section-head__title {
  margin: 0 0 0.3rem;
  font-family: var(--ft-display);
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ft-ink);
}

.ramaya-fromto-section-head__lead {
  margin: 0;
  color: var(--ft-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Trust — slim strip ----------------------------------------------------- */

.ramaya-fromto-trust {
  margin-top: 1.35rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.ramaya-fromto-trust__list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  border-top: 1px solid var(--ft-line);
  border-bottom: 1px solid var(--ft-line);
  background: transparent;
}

.ramaya-fromto-trust__list li {
  display: grid;
  gap: 0.15rem;
  padding: 0 0.15rem;
}

.ramaya-fromto-trust__list strong {
  font-size: 0.88rem;
  font-weight: 750;
  color: var(--ft-ink);
}

.ramaya-fromto-trust__list span {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ft-muted);
}

/* Popular — compact chips ------------------------------------------------ */

.ramaya-fromto-popular,
.ramaya-fromto-modes,
.ramaya-fromto-steps,
.ramaya-fromto-routes {
  margin-bottom: 2.25rem;
}

.ramaya-fromto-popular__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ramaya-fromto-popular__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 2.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--ft-line);
  background: #fff;
  color: var(--ft-ink) !important;
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s var(--ft-ease);
}

.ramaya-fromto-popular__link:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ft-sea) 40%, var(--ft-line));
  background: color-mix(in srgb, var(--ft-sea) 6%, #fff);
}

.ramaya-fromto-popular__label {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}

.ramaya-fromto-popular__meta {
  font-size: 0.72rem;
  color: var(--ft-muted);
  font-weight: 650;
}

/* Modes ------------------------------------------------------------------ */

.ramaya-fromto-modes__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

.ramaya-fromto-modes__list li {
  padding-top: 0.65rem;
  border-top: 2px solid var(--ft-sea);
}

.ramaya-fromto-modes__list h3 {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ft-ink);
}

.ramaya-fromto-modes__list p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Steps ------------------------------------------------------------------ */

.ramaya-fromto-steps {
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(15, 74, 82, 0.97), rgba(26, 107, 117, 0.94)),
    var(--ft-sea-deep);
  color: #fff;
}

.ramaya-fromto-steps .ramaya-fromto-section-head {
  margin-bottom: 0.85rem;
}

.ramaya-fromto-steps .ramaya-fromto-section-head__title {
  color: #fff;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
}

.ramaya-fromto-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
}

.ramaya-fromto-steps__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
}

.ramaya-fromto-steps__num {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.8rem;
  font-weight: 800;
}

.ramaya-fromto-steps__list strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.92rem;
}

.ramaya-fromto-steps__list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Routes ----------------------------------------------------------------- */

.ramaya-fromto-home__layout {
  display: grid;
  grid-template-columns: minmax(200px, 230px) minmax(0, 1fr);
  gap: 1.1rem 1.35rem;
  align-items: start;
}

.ramaya-fromto-side {
  position: sticky;
  top: calc(var(--wp-admin--admin-bar--height, 0px) + 4.5rem);
  padding: 0.85rem 0.8rem 0.95rem;
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  background: #fff;
}

.ramaya-fromto-side__heading {
  margin: 0 0 0.7rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ft-muted);
}

.ramaya-fromto-side__group + .ramaya-fromto-side__group {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ft-line);
}

.ramaya-fromto-side__title {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ft-ink);
}

.ramaya-fromto-side__search {
  display: block;
  margin: 0 0 0.45rem;
}

.ramaya-fromto-side__search-input {
  width: 100%;
  box-sizing: border-box;
  min-height: 2.05rem;
  padding: 0.4rem 0.65rem 0.4rem 1.9rem;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m21 21-4.3-4.3M11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z'/%3E%3C/svg%3E")
    0.55rem 50% / 0.85rem no-repeat,
    #f8fafc;
  color: var(--ft-ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ramaya-fromto-side__search-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.ramaya-fromto-side__search-input:focus {
  border-color: color-mix(in srgb, var(--ft-sea) 45%, #cbd5e1);
  background-color: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ft-sea) 14%, transparent);
}

.ramaya-fromto-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: min(38vh, 18rem);
  overflow-y: auto;
  scrollbar-width: thin;
}

.ramaya-fromto-side__list [data-fromto-side-item][hidden] {
  display: none !important;
}

.ramaya-fromto-side__empty {
  margin: 0.3rem 0 0;
  color: var(--ft-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.ramaya-fromto-side__list li + li {
  margin-top: 0.15rem;
}

.ramaya-fromto-side__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  color: var(--ft-ink) !important;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}

.ramaya-fromto-side__link:hover {
  background: color-mix(in srgb, var(--ft-sea) 9%, #fff);
  color: var(--ft-sea-deep) !important;
}

.ramaya-fromto-side__count {
  flex: 0 0 auto;
  min-width: 1.25rem;
  padding: 0.08rem 0.32rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ft-sea) 10%, #f8fafc);
  color: var(--ft-muted);
  font-size: 0.66rem;
  font-weight: 700;
  text-align: center;
}

.ramaya-fromto-home__main {
  min-width: 0;
}

.ramaya-fromto-route-grid {
  display: grid;
  gap: 0.85rem;
}

.ramaya-fromto-route {
  margin: 0;
  padding: 0.95rem 1.05rem 1rem;
  border: 1px solid var(--ft-line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s var(--ft-ease);
}

.ramaya-fromto-route:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--ft-sea) 35%, var(--ft-line));
}

.ramaya-fromto-route__title {
  margin: 0 0 0.25rem;
  font-size: clamp(0.98rem, 1.5vw, 1.15rem);
  line-height: 1.25;
  font-weight: 700;
}

.ramaya-fromto-route__title a {
  color: inherit;
  text-decoration: none;
}

.ramaya-fromto-route__title a:hover {
  color: var(--ft-sea-deep);
}

.ramaya-fromto-route__price {
  margin: 0 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ft-sea-deep);
}

.ramaya-fromto-route__summary,
.ramaya-fromto-route__summary p {
  margin: 0 0 0.7rem;
  color: var(--ft-muted);
  font-size: 0.86rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ramaya-fromto-route__cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ft-sea-deep);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
}

.ramaya-fromto-route__cta:hover {
  background: var(--ft-sea);
}


/* Featured route cards — conversion offer layout ------------------------------- */

.ramaya-fromto-route-grid {
  display: grid;
  gap: 0.85rem;
}

.ramaya-fromto-route--offer {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 1rem 1.05rem 1.05rem;
  border: 1px solid var(--ft-line);
  border-radius: 16px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7fbfc 100%);
  box-shadow: 0 8px 22px rgba(10, 31, 40, 0.04);
  transition: border-color 0.2s ease, transform 0.2s var(--ft-ease), box-shadow 0.2s ease;
}

.ramaya-fromto-route--offer:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--ft-sea) 42%, var(--ft-line));
  box-shadow: 0 14px 28px rgba(15, 74, 82, 0.1);
}

.ramaya-fromto-route__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
}

.ramaya-fromto-route__modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.ramaya-fromto-route__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  max-width: 100%;
  padding: 0.22rem 0.55rem 0.22rem 0.38rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ft-sea) 10%, #fff);
  color: var(--ft-sea-deep);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.ramaya-fromto-route__mode svg {
  flex-shrink: 0;
}

.ramaya-fromto-route__mode-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ramaya-fromto-route__mode--car {
  background: color-mix(in srgb, #0f766e 12%, #fff);
  color: #0f5f59;
}

.ramaya-fromto-route__mode--speedboat,
.ramaya-fromto-route__mode--fastboat {
  background: color-mix(in srgb, #0369a1 12%, #fff);
  color: #075985;
}

.ramaya-fromto-route__mode--local_boat {
  background: color-mix(in srgb, #1d4ed8 10%, #fff);
  color: #1e40af;
}

.ramaya-fromto-route__stopchip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ramaya-fromto-route__stopchip.is-direct {
  background: color-mix(in srgb, #15803d 12%, #fff);
  color: #166534;
}

.ramaya-fromto-route__stopchip.is-multi {
  background: color-mix(in srgb, var(--ft-gold) 28%, #fff);
  color: #8a5a2b;
}

.ramaya-fromto-route__path {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  margin: 0;
  font-family: var(--ft-display);
  font-size: clamp(1.02rem, 1.7vw, 1.22rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ft-ink);
}

.ramaya-fromto-route__arrow {
  color: var(--ft-lagoon);
  font-weight: 700;
}

.ramaya-fromto-route__title--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ramaya-fromto-route__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.ramaya-fromto-route__pill {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  background: rgba(10, 31, 40, 0.05);
  color: var(--ft-ink-soft);
  font-size: 0.7rem;
  font-weight: 650;
}

.ramaya-fromto-route--offer .ramaya-fromto-route__summary,
.ramaya-fromto-route--offer .ramaya-fromto-route__summary p {
  margin: 0;
  color: var(--ft-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.ramaya-fromto-route__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding-top: 0.7rem;
  border-top: 1px solid color-mix(in srgb, var(--ft-line) 80%, transparent);
}

.ramaya-fromto-route__priceblock {
  min-width: 0;
}

.ramaya-fromto-route__price-label {
  display: block;
  margin-bottom: 0.05rem;
  color: var(--ft-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ramaya-fromto-route--offer .ramaya-fromto-route__price {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ft-sea-deep);
  line-height: 1.15;
}

.ramaya-fromto-route__price--ask {
  font-size: 0.92rem !important;
  color: var(--ft-ink-soft) !important;
}

.ramaya-fromto-route--offer .ramaya-fromto-route__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ft-sea-deep) 0%, var(--ft-lagoon) 100%);
  color: #fff !important;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none !important;
  box-shadow: 0 8px 16px rgba(15, 74, 82, 0.18);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.ramaya-fromto-route--offer .ramaya-fromto-route__cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--ft-sea) 0%, var(--ft-lagoon) 100%);
}

@media (max-width: 560px) {
  .ramaya-fromto-route__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .ramaya-fromto-route--offer .ramaya-fromto-route__cta {
    justify-content: center;
    width: 100%;
  }
}


/* Close ------------------------------------------------------------------ */

.ramaya-fromto-close {
  margin-top: 0.25rem;
  padding: 1.5rem 1.25rem;
  border-radius: 18px;
  background:
    radial-gradient(520px 180px at 92% 8%, rgba(212, 165, 116, 0.22), transparent 55%),
    linear-gradient(135deg, #e8f1f3 0%, #f4f0ea 100%);
  border: 1px solid rgba(12, 36, 48, 0.07);
}

.ramaya-fromto-close__inner {
  max-width: 36rem;
}

.ramaya-fromto-close__title {
  margin: 0 0 0.4rem;
  font-family: var(--ft-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ft-ink);
}

.ramaya-fromto-close__lead {
  margin: 0 0 1rem;
  color: var(--ft-ink-soft);
  font-size: 0.95rem;
  line-height: 1.45;
}

.ramaya-fromto-close__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ramaya-fromto-empty {
  margin: 0;
  color: var(--ft-muted);
}

/* Motion ----------------------------------------------------------------- */

@keyframes ramaya-fromto-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ramaya-fromto-hero-pan {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(0, -1.2%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ramaya-fromto-hero__img,
  .ramaya-fromto-hero__brand,
  .ramaya-fromto-hero__title,
  .ramaya-fromto-hero__lead,
  .ramaya-fromto-hero__finder,
  .ramaya-fromto-hero__wa {
    animation: none !important;
  }

  .ramaya-fromto-hero__img {
    transform: none;
  }
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 980px) {
  .ramaya-fromto-trust__list,
  .ramaya-fromto-modes__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ramaya-fromto-steps__list,
  .ramaya-fromto-home__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ramaya-fromto-side {
    position: static;
  }

  .ramaya-fromto-side__list {
    max-height: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    -webkit-overflow-scrolling: touch;
  }

  .ramaya-fromto-side__list li {
    margin: 0 !important;
    flex: 0 0 auto;
  }

  .ramaya-fromto-side__link {
    white-space: nowrap;
    border: 1px solid var(--ft-line);
  }
}

@media (max-width: 720px) {
  body.home:has(.ramaya-fromto-home--sales) .site,
  body.home:has(.ramaya-fromto-home--sales) .site-main,
  body.home:has(.ramaya-fromto-home--sales) #main,
  body.home:has(.ramaya-fromto-home--sales) .entry,
  body.home:has(.ramaya-fromto-home--sales) .entry-content,
  body.home:has(.ramaya-fromto-home--sales) .ramaya-fromto-home--sales {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.home:has(.ramaya-fromto-home--sales) .site-header__inner {
    width: 100%;
    max-width: none;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .ramaya-fromto-home--sales {
    width: 100%;
    max-width: none;
  }

  .ramaya-fromto-home__inner {
    width: min(var(--ft-content-max), calc(100% - 2rem));
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .ramaya-fromto-hero {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    min-height: calc(100svh - var(--wp-admin--admin-bar--height, 0px));
    min-height: calc(100dvh - var(--wp-admin--admin-bar--height, 0px));
    height: auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .ramaya-fromto-hero__media {
    position: absolute;
    inset: 0;
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    height: 100% !important;
  }

  .ramaya-fromto-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transform: none;
    animation: none;
  }

  .ramaya-fromto-hero__shade {
    background:
      linear-gradient(
        180deg,
        rgba(6, 18, 24, 0.28) 0%,
        rgba(6, 18, 24, 0.16) 40%,
        rgba(6, 18, 24, 0.78) 100%
      );
  }

  .ramaya-fromto-hero__inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
      calc(var(--ramaya-site-header-h, 3.75rem) + 0.65rem)
      1rem
      max(0.75rem, env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    flex: 1 1 auto;
    min-height: 0;
  }

  .ramaya-fromto-hero__brand {
    margin-bottom: 0.3rem;
    font-size: clamp(2.15rem, 11vw, 2.85rem);
  }

  .ramaya-fromto-hero__title {
    margin-bottom: 0.3rem;
    font-size: clamp(1.05rem, 4.4vw, 1.25rem);
    max-width: none;
  }

  .ramaya-fromto-hero__lead {
    margin-bottom: 0.75rem;
    font-size: 0.88rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }

  .ramaya-fromto-hero__wa {
    margin-top: 0.7rem;
    text-align: center;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter {
    padding: 0.75rem 0.8rem 0.85rem;
    border-radius: 16px;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-filter__lead {
    display: none;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__form {
    grid-template-columns: 1fr;
  }

  .ramaya-fromto-home--sales .ramaya-fromto-hero__finder .ramaya-fromto-filter__submit {
    min-width: 0;
    width: 100%;
    min-height: 2.5rem;
  }

  .ramaya-fromto-trust {
    margin-top: 1.15rem;
  }

  .ramaya-fromto-trust__list {
    gap: 0.65rem 0.85rem;
    padding: 0.75rem 0;
  }

  .ramaya-fromto-steps {
    padding: 1.1rem 1rem 1.15rem;
  }
}

@media (max-width: 560px) {
  .ramaya-fromto-trust__list,
  .ramaya-fromto-modes__list {
    grid-template-columns: 1fr 1fr;
  }

  .ramaya-fromto-steps__list {
    grid-template-columns: 1fr;
  }

  .ramaya-fromto-hero__brand {
    font-size: clamp(2.2rem, 12vw, 3rem);
  }
}
