/* Apartmandžija Preporuke — partner recommendation cards + submit CTA.
   Hero, criteria, category nav and the myRent card live in preporuke.css. */

/* ==========================================================================
   Preserved — footer responsive tweak for this page. Do not change header
   or footer appearance; kept verbatim from the previous stylesheet.
   ========================================================================== */
@media (max-width: 767px) {
  .recommendations-reference-page .site-footer .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    text-align: left;
  }

  .recommendations-reference-page .site-footer a {
    min-height: 44px;
  }
}

/* ==========================================================================
   Partner recommendation cards
   ========================================================================== */
.pr-partners {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.pr-partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.pr-partner-card {
  border: 1px solid var(--pr-hairline);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 20px 46px rgba(11, 31, 67, 0.22);
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-self: start;
  position: relative;
}

.pr-partner-body {
  padding: 26px 26px 0;
  height: 238px;
}

.pr-partner-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  margin-bottom: 14px;
  color: var(--pr-muted);
}

.pr-partner-brand svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-partner-brand span {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--pr-ink);
}

.pr-partner-brand--wordmark span {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--pr-ink);
}

.pr-partner-card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 10px;
  color: #10182b;
}

.pr-partner-lead {
  color: var(--pr-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 20px;
}

.pr-partner-lead-mobile {
  display: none;
}

.pr-partner-lead strong {
  font-weight: 600;
  color: var(--pr-ink);
}

.pr-partner-media {
  position: relative;
  height: 240px;
  flex: 0 0 auto;
  border-radius: 0 0 18px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

/* Ellipse — a separate layer behind the image, never baked into the artwork
   itself, so it always renders as exactly one soft shape per card. */
.pr-partner-media-bg {
  position: absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  width: 76%;
  height: 60%;
  border-radius: 999px;
  z-index: 1;
  pointer-events: none;
}

.pr-partner-media--scanncheckin .pr-partner-media-bg {
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.05) 62%, transparent 80%);
}

.pr-partner-media--linoflow .pr-partner-media-bg {
  background: radial-gradient(ellipse at center, rgba(52, 168, 106, 0.13), rgba(52, 168, 106, 0.04) 62%, transparent 80%);
}

.pr-partner-media--orbis .pr-partner-media-bg {
  background: radial-gradient(ellipse at center, rgba(214, 176, 130, 0.22), rgba(214, 176, 130, 0.07) 62%, transparent 80%);
}

.pr-partner-media-img {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 84%;
  max-height: 86%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pr-partner-media--scanncheckin .pr-partner-media-img {
  max-width: 92%;
  max-height: 88%;
  transform: scale(1.59);
}

.pr-partner-media--linoflow .pr-partner-media-img {
  max-width: 90%;
  max-height: 96%;
  transform: scale(0.98);
}

.pr-partner-media--orbis .pr-partner-media-img {
  max-width: 76%;
  max-height: 90%;
  transform: scale(0.98);
}

@media (max-width: 600px) {
  /* Card/media height is no longer forced equal across cards on mobile —
     each card's height now follows its own (shortened) copy + enlarged
     visual, per card. Desktop equal-height behavior is untouched. The
     existing max-width/max-height% + transform(scale) sizing system is
     kept as-is; only the media container's own height (and, where the
     image would otherwise hit its width cap, that cap) are recalibrated
     per card so the same scale factor renders visibly larger. */
  .pr-partner-body {
    height: auto;
  }

  .pr-partner-lead:not(.pr-partner-lead-mobile) {
    display: none;
  }

  .pr-partner-lead-mobile {
    display: block;
    margin: 0 0 14px;
  }

  .pr-partner-media--scanncheckin {
    height: 254px;
  }

  .pr-partner-media--linoflow {
    height: 240px;
  }

  .pr-partner-media--linoflow .pr-partner-media-img {
    max-width: 96%;
  }

  .pr-partner-media--orbis {
    height: 224px;
  }

  .pr-partner-media--orbis .pr-partner-media-img {
    max-width: 85%;
  }
}

.pr-partner-toggle {
  position: absolute;
  left: 50%;
  bottom: -19px;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(31, 31, 34, 0.15);
  background: var(--pr-navy);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s ease, transform 0.15s ease;
}

.pr-partner-toggle:active {
  transform: translateX(-50%) scale(0.92);
}

@media (hover: hover) and (pointer: fine) {
  .pr-partner-toggle:hover { background: var(--pr-coral); }
}

.pr-partner-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: inline-flex;
  transition: transform 0.2s ease;
}

.pr-partner-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Animated disclosure: grid-template-rows 0fr → 1fr instead of the old
   hidden-attribute instant show/hide, so opening/closing feels like a real
   app transition rather than a hard cut. */
.pr-partner-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.pr-partner-panel.is-open {
  grid-template-rows: 1fr;
}

.pr-partner-panel-inner {
  min-height: 0;
  overflow: hidden;
}

.pr-partner-panel-content {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
}

.pr-partner-panel-divider {
  border-top: 1px solid var(--pr-hairline);
  margin: 0 0 20px;
}

@media (prefers-reduced-motion: reduce) {
  .pr-partner-panel {
    transition: none;
  }
}

/* Stagger the three cards' entrance so they don't all pop in at once. */
.pr-partner-card.pr-reveal:nth-child(1) { transition-delay: 0ms; }
.pr-partner-card.pr-reveal:nth-child(2) { transition-delay: 90ms; }
.pr-partner-card.pr-reveal:nth-child(3) { transition-delay: 180ms; }

.pr-partner-benefits {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 22px;
}

.pr-partner-benefit {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 13px 0;
}

.pr-partner-benefit:first-child {
  padding-top: 0;
}

.pr-partner-benefit + .pr-partner-benefit {
  border-top: 1px solid var(--pr-hairline);
}

.pr-partner-benefit-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eef2fb;
  color: #1f3a73;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pr-partner-benefit-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-partner-benefit-copy {
  padding-top: 1px;
}

.pr-partner-benefit-copy strong {
  color: var(--pr-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  margin-bottom: 2px;
}

.pr-partner-benefit-copy span {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--pr-muted);
}

/* Info blocks — "Šta rešava u praksi" / "Cena": compact utility cards,
   stacked one under the other on both desktop and mobile. */
.pr-partner-info {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 15px;
}

.pr-partner-info-block {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f7fb;
  border: 1px solid #e6eaf2;
}

.pr-partner-info-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--pr-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pr-partner-info-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-partner-info-copy {
  padding-top: 1px;
  min-width: 0;
}

.pr-partner-info-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--pr-ink);
  margin-bottom: 3px;
}

.pr-partner-info-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--pr-muted);
}

.pr-partner-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  border-radius: 12px;
  background: transparent;
  color: var(--pr-ink);
  font: 600 13.5px/1 Inter, sans-serif;
  border: 1.5px solid rgba(31, 31, 34, 0.18);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.pr-partner-visit:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .pr-partner-visit:hover {
    background: var(--pr-coral);
    color: #ffffff;
    border-color: var(--pr-coral);
  }
}

.pr-partner-visit svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   Submit CTA
   ========================================================================== */
.pr-cta {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.pr-cta-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(11, 31, 67, 0.1);
  background: #ffffff;
  padding: clamp(32px, 4vw, 56px);
}

.pr-cta-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.pr-cta-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #63708a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.pr-cta-eyebrow i {
  display: block;
  width: 24px;
  height: 2px;
  background: #b7bccb;
  border-radius: 2px;
}

.pr-cta-copy h2 {
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  margin: 0 0 16px;
  color: var(--pr-navy);
}

.pr-cta-copy p {
  font-size: 15.5px;
  color: #4a5670;
  line-height: 1.65;
  margin: 0 0 12px;
}

.pr-cta-copy p.pr-cta-copy-secondary {
  font-size: 14px;
  color: var(--pr-muted);
  line-height: 1.6;
  margin: 0 0 26px;
}

.pr-cta-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.pr-cta-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.pr-cta-step:not(:first-child) {
  border-left: 1px solid #e4e4e0;
  padding-left: 20px;
}

.pr-cta-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pr-navy);
}

.pr-cta-step-icon svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pr-cta-step-number {
  font: 700 25px/1 Inter, sans-serif;
  letter-spacing: -0.02em;
  color: var(--pr-navy);
  margin-top: 2px;
}

.pr-cta-step-text {
  font-size: 12.5px;
  font-weight: 500;
  color: #63708a;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
}

.pr-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--pr-navy);
  color: #ffffff;
  font: 600 15px/1 Inter, sans-serif;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: background 200ms ease, transform 200ms ease;
}

.pr-cta-button:active {
  transform: scale(0.98);
}

@media (hover: hover) and (pointer: fine) {
  .pr-cta-button:hover {
    background: var(--pr-coral);
  }

  .pr-cta-button:hover .pr-cta-arrow {
    transform: translateX(4px);
  }
}

.pr-cta-arrow {
  display: inline-flex;
  transition: transform 200ms ease;
}

.pr-cta-arrow svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==========================================================================
   CTA visual — custom premium illustration: a central verified badge with
   floating cards connected by dotted lines. No stock art, no photography.
   ========================================================================== */
.pr-cta-visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.pr-cta-visual-img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .pr-cta-grid {
    grid-template-columns: 1fr;
  }

  /* .pr-cta-copy's children become direct grid items so the visual and
     button (siblings at the grid level) can be interleaved with them via
     order — content order: eyebrow, h2, lead, steps, VISUAL, BUTTON. */
  .pr-cta-copy {
    display: contents;
  }

  .pr-cta-eyebrow {
    order: 1;
  }

  .pr-cta-copy > h2 {
    order: 2;
    margin-bottom: 2px;
  }

  .pr-cta-copy > p:not(.pr-cta-copy-secondary) {
    order: 3;
    margin-bottom: 22px;
  }

  .pr-cta-copy-secondary {
    display: none;
  }

  .pr-cta-steps {
    order: 4;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
  }

  .pr-cta-step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 11px;
    row-gap: 3px;
    align-items: center;
    padding: 11px 0;
    border-left: none;
  }

  .pr-cta-step:not(:first-child) {
    border-left: none;
    border-top: 1px solid #edede9;
    padding-left: 0;
  }

  .pr-cta-step-icon {
    grid-row: 1 / 3;
    grid-column: 1;
  }

  .pr-cta-step-icon svg {
    width: 40px;
    height: 40px;
  }

  .pr-cta-step-number {
    grid-row: 1;
    grid-column: 2;
    font-size: 19px;
    margin-top: 0;
  }

  .pr-cta-step-text {
    grid-row: 2;
    grid-column: 2;
    font-size: 14.5px;
    line-height: 1.42;
    min-height: 0;
    text-wrap: pretty;
  }

  .pr-cta-visual {
    order: 5;
    max-width: 340px;
    margin-top: 18px;
  }

  .pr-cta-button {
    order: 6;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
  }
}
