/*
 * Sakarun.hr V3.15 — contextual editorial media.
 * Verified photographs now support existing text instead of forming a gallery.
 */

.editorial-media-host {
  display: flow-root;
}

.editorial-media-set {
  float: right;
  display: grid;
  width: min(38%, 460px);
  gap: 13px;
  margin: 4px 0 26px clamp(24px, 4vw, 58px);
}

.editorial-media {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 221, 169, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(18, 41, 42, 0.98), rgba(6, 17, 18, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.editorial-media picture {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #102426;
}

.editorial-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.editorial-media:hover img {
  transform: scale(1.02);
  filter: saturate(1.05);
}

.editorial-media figcaption {
  padding: 11px 14px 13px;
  color: rgba(248, 244, 235, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.editorial-media-credit {
  justify-self: end;
  color: #f0dda9;
  font-size: 0.72rem;
  font-weight: 700;
  text-underline-offset: 3px;
}

/*
 * Destination pages used to squeeze the information cards into the second
 * half of a split section. The contextual photo now shares only the section
 * introduction; the text cards continue below at a readable two-column width.
 */
.compass-v3-page .content-section.editorial-media-host {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.compass-v3-page .content-section.editorial-media-host > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  column-gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.compass-v3-page .content-section.editorial-media-host > div:first-child > .section-kicker,
.compass-v3-page .content-section.editorial-media-host > div:first-child > h2,
.compass-v3-page .content-section.editorial-media-host > div:first-child > p {
  grid-column: 1;
}

.compass-v3-page .content-section.editorial-media-host > div:first-child > .editorial-media-set {
  float: none;
  grid-column: 2;
  grid-row: 1 / span 4;
  width: 100%;
  margin: 0;
}

.compass-v3-page .content-section.editorial-media-host .destination-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-credits-shell {
  width: min(1180px, calc(100% - clamp(32px, 7vw, 112px)));
  margin: clamp(48px, 7vw, 96px) auto;
}

.photo-credits-intro {
  max-width: 820px;
  margin-bottom: 34px;
}

.photo-credits-intro h1 {
  margin: 8px 0 18px;
  color: #f8f4eb;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.photo-credits-intro p {
  color: rgba(248, 244, 235, 0.72);
  line-height: 1.7;
}

.photo-credits-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.photo-credit-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(220px, 1.15fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.photo-credit-row dt {
  color: #f8f4eb;
  font-weight: 800;
}

.photo-credit-row dd {
  margin: 0;
  color: rgba(248, 244, 235, 0.68);
}

.photo-credit-row a {
  color: #f0dda9;
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (max-width: 780px) {
  .compass-v3-page .content-section.editorial-media-host > div:first-child {
    grid-template-columns: minmax(0, 1fr);
  }

  .compass-v3-page .content-section.editorial-media-host > div:first-child > .section-kicker,
  .compass-v3-page .content-section.editorial-media-host > div:first-child > h2,
  .compass-v3-page .content-section.editorial-media-host > div:first-child > p,
  .compass-v3-page .content-section.editorial-media-host > div:first-child > .editorial-media-set {
    grid-column: 1;
  }

  .compass-v3-page .content-section.editorial-media-host > div:first-child > .editorial-media-set {
    grid-row: auto;
  }

  .compass-v3-page .content-section.editorial-media-host .destination-info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .editorial-media-set {
    float: none;
    width: 100%;
    max-width: 520px;
    gap: 11px;
    margin: 22px 0 28px;
  }

  .editorial-media-set[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .editorial-media {
    border-radius: 15px;
  }

  .editorial-media picture {
    aspect-ratio: 4 / 3;
  }

  .editorial-media figcaption {
    padding: 9px 11px 11px;
    font-size: 0.76rem;
  }

  .editorial-media-credit {
    grid-column: 1 / -1;
  }

  .photo-credit-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .editorial-media img {
    transition: none;
  }
}

/*
 * Sakarun.hr V3.16 — visual rhythm.
 * Exact-location photography breaks up long text runs without turning guides
 * into generic galleries or implying that a pictured venue is a listed partner.
 */
body.trip-page.compass-v3-page .hero-image {
  display: block;
}

body.trip-page.compass-v3-page .hero-image-split {
  object-position: center 58%;
}

.faq-visual-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
  width: min(1180px, calc(100% - clamp(32px, 7vw, 112px)));
  margin: clamp(28px, 4vw, 52px) auto 0;
}

.faq-visual-card,
.route-photo-card,
.context-photo-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(240, 221, 169, 0.16);
  border-radius: 18px;
  background: #102426;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.faq-visual-card picture,
.route-photo-card picture,
.context-photo-card picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.faq-visual-card img,
.route-photo-card img,
.context-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 340ms ease, filter 340ms ease;
}

.faq-visual-card::after,
.route-photo-card::after,
.context-photo-card::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(3, 12, 13, 0.96), rgba(3, 12, 13, 0));
  pointer-events: none;
}

.faq-visual-card span,
.route-photo-card span,
.context-photo-card span {
  position: absolute;
  inset: auto 15px 14px;
  z-index: 2;
  color: #fff;
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  font-weight: 820;
  line-height: 1.25;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.68);
}

.faq-visual-card:hover img,
.route-photo-card:hover img,
.context-photo-card:hover img {
  transform: scale(1.035);
  filter: saturate(1.06);
}

.route-photo-strip {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  margin-top: clamp(24px, 4vw, 42px);
}

.route-photo-strip .route-photo-card picture {
  aspect-ratio: 16 / 10;
}

.context-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.7vw, 22px);
  width: min(1180px, calc(100% - clamp(32px, 7vw, 112px)));
  margin: clamp(34px, 5vw, 68px) auto 0;
}

.context-photo-strip[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.context-photo-card picture {
  aspect-ratio: 16 / 8.5;
}

.partner-page .content-section {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
}

.partner-page .content-section > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(260px, 0.42fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.partner-page .content-section > div:first-child h2,
.partner-page .content-section > div:first-child p {
  margin: 0;
}

.partner-page .partner-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .faq-visual-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .partner-page .content-section > div:first-child,
  .partner-page .partner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .route-photo-strip,
  .context-photo-strip,
  .context-photo-strip[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-photo-strip > :last-child:nth-child(odd),
  .context-photo-strip > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .route-photo-strip > :last-child:nth-child(odd) picture,
  .context-photo-strip > :last-child:nth-child(odd) picture {
    aspect-ratio: 16 / 8.5;
  }

  .partner-page .content-section > div:first-child,
  .partner-page .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 460px) {
  .faq-visual-nav {
    gap: 10px;
  }

  .faq-visual-card,
  .route-photo-card,
  .context-photo-card {
    border-radius: 14px;
  }

  .faq-visual-card span,
  .route-photo-card span,
  .context-photo-card span {
    inset: auto 10px 10px;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-visual-card img,
  .route-photo-card img,
  .context-photo-card img {
    transition: none;
  }
}

/*
 * Sakarun.hr V3.8.1 — home arrival showcase.
 * The original split layout squeezed four cards into half of the section.
 */
.compass-v3-page .arrival-needs {
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(30px, 4vw, 50px);
}

.compass-v3-page .arrival-needs > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 0.66fr) minmax(300px, 0.34fr);
  column-gap: clamp(32px, 6vw, 90px);
  align-items: end;
}

.compass-v3-page .arrival-needs > div:first-child .section-kicker,
.compass-v3-page .arrival-needs > div:first-child h2 {
  grid-column: 1;
}

.compass-v3-page .arrival-needs > div:first-child h2 {
  max-width: 780px;
  margin-bottom: 0;
}

.compass-v3-page .arrival-needs > div:first-child > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.7;
}

.compass-v3-page .arrival-needs .arrival-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.5vw, 20px);
}

.compass-v3-page .arrival-needs .arrival-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(14, 36, 38, 0.78), rgba(5, 15, 16, 0.98));
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.compass-v3-page .arrival-needs .arrival-card:hover {
  transform: translateY(-4px);
  border-color: rgba(217, 185, 111, 0.42);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.28);
}

.arrival-card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #102326;
}

.arrival-card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(4, 14, 15, 0.7));
  pointer-events: none;
}

.arrival-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
  transition: transform 420ms ease, filter 420ms ease;
}

.arrival-card:hover .arrival-card-media img {
  transform: scale(1.035);
  filter: saturate(1.04) contrast(1.04);
}

.compass-v3-page .arrival-needs .arrival-card > span {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  min-width: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(248, 244, 235, 0.28);
  border-radius: 999px;
  color: #071011;
  background: rgba(240, 221, 169, 0.94);
  font-size: 0.74rem;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(10px);
}

.compass-v3-page .arrival-needs .arrival-card h3 {
  margin: 24px 24px 10px;
  font-size: clamp(1.25rem, 1.5vw, 1.65rem);
  line-height: 1.1;
  text-wrap: balance;
}

.compass-v3-page .arrival-needs .arrival-card p {
  margin: 0 24px 20px;
  overflow-wrap: normal;
  hyphens: none;
  color: rgba(248, 244, 235, 0.68);
  line-height: 1.58;
}

.compass-v3-page .arrival-needs .arrival-card .text-link {
  align-self: flex-start;
  margin: auto 24px 26px;
  color: #f0dda9;
}

@media (max-width: 1040px) {
  .compass-v3-page .arrival-needs .arrival-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .compass-v3-page .arrival-needs > div:first-child {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .compass-v3-page .arrival-needs > div:first-child .section-kicker,
  .compass-v3-page .arrival-needs > div:first-child h2,
  .compass-v3-page .arrival-needs > div:first-child > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .compass-v3-page .arrival-needs .arrival-grid {
    grid-template-columns: 1fr;
  }

  .compass-v3-page .arrival-needs .arrival-card h3 {
    margin-top: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .compass-v3-page .arrival-needs .arrival-card,
  .arrival-card-media img {
    transition: none;
  }
}
