/* ==========================================================================
   PropNetwork - Real Opportunity Journey Section CSS
   Author: PropNetwork Product Design Team
   Description: 5-step horizontal storytelling journey section matching Apple/Stripe quality.
                Supports 10 interactive connector concepts (dotted path, glowing nodes,
                curved Bezier arcs, glass bridges, progress path, etc.).
   ========================================================================== */

.opportunity-journey-section {
  position: relative;
  padding: 50px 0 !important;
  background-color: #FAFAFA;
  overflow: hidden;
  color: #0F172A;
  z-index: 1;
}

/* Header Styling (Matching platform-showcase-section 1:1) */
.journey-section-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.journey-section-header-wrap .journey-section-header {
  flex: 1;
  max-width: 620px;
  margin-bottom: 0;
}

.journey-header-graphic {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
  position: relative;
}

.journey-header-graphic svg {
  width: 100%;
  height: auto;
  max-height: 170px;
  overflow: visible;
}

.journey-section-header {
  position: relative;
  max-width: 860px;
  margin-bottom: 3.5rem;
  padding-left: 1.5rem;
  z-index: 2;
}

.journey-header-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #14B8A6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: 3px;
}

.journey-category-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #14B8A6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.journey-header-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0F172A;
  margin-bottom: 1.25rem;
}

.journey-text-gradient {
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 35%, #6366F1 75%, #8B5CF6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline;
}

.journey-header-desc {
  font-size: clamp(1rem, 1.15vw, 1.12rem);
  font-weight: 500;
  line-height: 1.65;
  color: #475569;
  margin: 0;
}

/* Concept Control Toolbar */
.journey-concept-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.concept-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #FFFFFF;
  color: #64748B;
  border: 1px solid #E2E8F0;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.concept-btn:hover {
  border-color: #14B8A6;
  color: #0F766E;
}

.concept-btn.active {
  background: #0F766E;
  color: #FFFFFF;
  border-color: #0F766E;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* ==========================================================================
   Horizontal 5-Card Journey Grid Architecture
   ========================================================================== */
.journey-flow-wrapper {
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

/* Main Timeline Bar Connector Outer Track */
.journey-timeline-track {
  position: absolute;
  top: 1.25rem;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #0F766E;
  z-index: 1;
  transform: translateY(-50%);
}

.journey-timeline-progress {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 60%, #8B5CF6 100%);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.journey-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 2;
  padding-top: 2.5rem;
}

/* Single Journey Card Styling */
.journey-card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  padding: 1.75rem 1.25rem 1.75rem 1.25rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.journey-card:hover {
  transform: translateY(-6px);
  border-color: #14B8A6;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.12);
}

/* Top Node Dot Indicator above Card */
.journey-node-dot {
  position: absolute;
  top: -1.25rem;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FAFAFA;
  border: 2.5px solid #0F766E;
  z-index: 3;
  transition: all 0.3s ease;
}

.journey-node-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0F766E;
}

.journey-card:hover .journey-node-dot {
  background: #14B8A6;
  border-color: #DFF7F3;
  box-shadow: 0 0 12px rgba(20, 184, 166, 0.6);
}

/* Top Flat Illustration Viewport */
.journey-card-media {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.journey-card-media svg {
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  stroke: #0F766E;
  stroke-width: 2.2px;
  fill: none;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.journey-card-media img {
  max-width: 100%;
  max-height: 105px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.journey-card:hover .journey-card-media svg,
.journey-card:hover .journey-card-media img {
  transform: scale(1.08);
}

/* Middle Role Title & Subtitle */
.journey-role-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.25rem;
}

.journey-role-subtitle {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F766E;
  margin-bottom: 0.85rem;
}

/* Bottom Explanation Copy */
.journey-role-desc {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
  color: #64748B;
  margin: 0;
}

/* ==========================================================================
   10 CONNECTOR CONCEPT VARIATIONS (Applied via .concept-X class)
   ========================================================================== */

/* Concept 1: Dotted Animated Path */
.concept-1 .journey-timeline-track {
  height: 0;
  border-top: 2.5px dashed #14B8A6;
  background: transparent;
}

/* Concept 2: Glowing Nodes */
.concept-2 .journey-node-dot {
  width: 24px;
  height: 24px;
  border-color: #14B8A6;
  box-shadow: 0 0 16px rgba(20, 184, 166, 0.8);
  animation: pulseNode 2s infinite ease-in-out;
}

@keyframes pulseNode {

  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateX(-50%) scale(1.2);
    opacity: 0.7;
  }
}

/* Concept 3: Curved Connection Line (Floating SVG Arc) */
.concept-3 .journey-timeline-track {
  background: transparent;
  height: 20px;
  top: -10px;
}

/* Concept 4: Segmented Timeline */
.concept-4 .journey-node-dot {
  border-radius: 6px;
  width: 24px;
  height: 24px;
  top: -2.8rem;
}

/* Concept 5: Flowing Teal Wave */
.concept-5 .journey-timeline-track {
  background: linear-gradient(90deg, #0F766E 0%, #14B8A6 40%, #6366F1 70%, #8B5CF6 100%);
  height: 4px;
}

/* Concept 6: Elegant Line & Connected Dots (Matching Screenshot 1:1) */
.concept-6 .journey-timeline-track {
  height: 2px;
  background: #0F766E;
  top: 1.25rem;
  left: 10%;
  right: 10%;
  transform: translateY(-50%);
}

.concept-6 .journey-node-dot {
  top: -1.25rem;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2.5px solid #0F766E;
  background: #FAFAFA;
}

/* Concept 7: Connected Circles */
.concept-7 .journey-node-dot {
  width: 28px;
  height: 28px;
  top: -2.9rem;
  border-width: 4px;
}

/* Concept 8: Progress Path */
.concept-8 .journey-timeline-track {
  height: 6px;
  border-radius: 3px;
  top: -1.7rem;
}

/* Concept 9: Premium Glass Connector */
.concept-10 .journey-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Mobile Navigation Arrow Controls */
.journey-mobile-nav-controls {
  display: none;
}

/* ==========================================================================
   Responsive Adaptation for Tablets & Mobile Devices
   ========================================================================== */
@media (max-width: 1199.98px) {
  .journey-cards-grid {
    gap: 0.85rem;
  }

  .journey-card {
    padding: 1.5rem 0.85rem;
  }
}

@media (max-width: 991.98px) {
  .opportunity-journey-section {
    padding: 40px 0 50px 0 !important;
  }

  .journey-section-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .journey-section-header-wrap .journey-section-header {
    max-width: 100%;
    padding-left: 0.85rem;
    margin-bottom: 0;
  }

  .journey-category-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 2;
  }

  .journey-header-title {
    font-size: clamp(1.85rem, 6.8vw, 2.3rem);
    line-height: 1.18;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
  }

  .journey-header-desc {
    font-size: 0.92rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
  }

  .journey-header-graphic {
    display: none !important;
  }

  /* Targeted ONLY to #opportunities (Timeline Section) so #resources stays 100% untouched */
  #opportunities .journey-flow-wrapper {
    margin-top: 0.5rem;
    position: relative;
    padding-left: 2.25rem !important;
    /* ~36px */
  }

  #resources .journey-flow-wrapper {
    padding-left: 0 !important;
  }

  /* Vertical Timeline Continuous Line on Left (Matching Reference Image) */
  #opportunities .journey-timeline-track,
  #opportunities[class*="concept-"] .journey-timeline-track {
    display: block !important;
    position: absolute !important;
    top: 1.25rem !important;
    bottom: 1.25rem !important;
    left: 0.72rem !important;
    /* Center of line at ~12.75px */
    right: auto !important;
    width: 2.5px !important;
    height: auto !important;
    background: linear-gradient(180deg, #0F766E 0%, #14B8A6 45%, #6366F1 80%, #8B5CF6 100%) !important;
    border-radius: 3px !important;
    z-index: 1 !important;
    transform: none !important;
    border: none !important;
  }

  #opportunities .journey-timeline-progress,
  #opportunities[class*="concept-"] .journey-timeline-progress {
    display: none !important;
  }

  #opportunities .journey-cards-grid,
  #opportunities[class*="concept-"] .journey-cards-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.15rem !important;
    position: relative !important;
    z-index: 2 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  /* Single Journey Card (1:1 Reference Screenshot Match) */
  #opportunities .journey-card,
  #opportunities[class*="concept-"] .journey-card {
    display: grid !important;
    grid-template-columns: 52px 1fr auto !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "icon title arrow"
      "icon subtitle arrow"
      "icon desc desc" !important;
    column-gap: 1rem !important;
    row-gap: 0.15rem !important;
    align-items: start !important;
    text-align: left !important;
    background: #FFFFFF !important;
    border-radius: 16px !important;
    border: 1px solid #E2E8F0 !important;
    padding: 1.25rem 1.15rem !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
    position: relative !important;
    transition: all 0.25s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transform: none !important;
  }

  #opportunities .journey-card:hover {
    transform: translateY(-2px) !important;
    border-color: #14B8A6 !important;
    box-shadow: 0 12px 28px rgba(15, 118, 110, 0.1) !important;
  }

  /* Node Dot positioned on vertical left line (Ring + Solid Dot inside matching reference image) */
  #opportunities .journey-node-dot,
  #opportunities[class*="concept-"] .journey-node-dot {
    display: block !important;
    position: absolute !important;
    top: 2.875rem !important;
    /* Vertically aligned with center of 52px icon badge (20px + 26px) */
    left: -1.45rem !important;
    /* 36px - 23.2px = 12.8px -> Center aligns with timeline track */
    transform: translate(-50%, -50%) !important;
    width: 16px !important;
    height: 16px !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 2.5px solid #0F766E !important;
    z-index: 3 !important;
    box-shadow: 0 0 0 3px #FAFAFA !important;
    animation: none !important;
  }

  #opportunities .journey-node-dot::after,
  #opportunities[class*="concept-"] .journey-node-dot::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #0F766E !important;
  }

  /* Left Icon Square Badge (Soft Teal Mint Tint) */
  #opportunities .journey-card-media,
  #opportunities[class*="concept-"] .journey-card-media {
    grid-area: icon !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 14px !important;
    background: #E6F7F5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
    flex-shrink: 0 !important;
  }

  #opportunities .journey-card-media svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    stroke: #0F766E !important;
    stroke-width: 2.2px !important;
    fill: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  #opportunities .journey-role-title {
    grid-area: title !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    font-size: 1.08rem !important;
    font-weight: 800 !important;
    color: #0F172A !important;
    margin-bottom: 0 !important;
    line-height: 1.25 !important;
  }

  #opportunities .journey-role-subtitle {
    grid-area: subtitle !important;
    font-size: 0.84rem !important;
    font-weight: 700 !important;
    color: #0F766E !important;
    margin-bottom: 0.35rem !important;
  }

  #opportunities .journey-role-desc {
    grid-area: desc !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    line-height: 1.52 !important;
    color: #475569 !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0 !important;
  }

  /* Right Arrow Chevron (Matching Reference Image 1:1) */
  #opportunities .journey-card::after {
    content: '' !important;
    grid-area: arrow !important;
    width: 9px !important;
    height: 9px !important;
    border-top: 2.2px solid #0F766E !important;
    border-right: 2.2px solid #0F766E !important;
    transform: rotate(45deg) !important;
    justify-self: end !important;
    align-self: start !important;
    margin-top: 6px !important;
    opacity: 0.9 !important;
  }

  /* Hide bottom mobile nav arrows completely */
  .journey-mobile-nav-controls {
    display: none !important;
  }
}

@media (max-width: 575.98px) {
  .opportunity-journey-section {
    padding: 32px 0 42px 0 !important;
  }

  .journey-section-header-wrap .journey-section-header {
    padding-left: 0.75rem;
  }

  .journey-header-title {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  #opportunities .journey-flow-wrapper {
    padding-left: 2rem !important;
    /* 32px */
  }

  #resources .journey-flow-wrapper {
    padding-left: 0 !important;
  }

  #opportunities .journey-timeline-track,
  #opportunities[class*="concept-"] .journey-timeline-track {
    left: 0.6rem !important;
    /* 9.6px */
  }

  #opportunities .journey-node-dot,
  #opportunities[class*="concept-"] .journey-node-dot {
    left: -1.4rem !important;
    /* 32 - 22.4 = 9.6px! Exactly aligned! */
    top: 2.6rem !important;
    /* Center aligns with 46px icon box (17.6px + 23px) */
  }

  #opportunities .journey-card,
  #opportunities[class*="concept-"] .journey-card {
    padding: 1.1rem 0.95rem !important;
    column-gap: 0.85rem !important;
    grid-template-columns: 46px 1fr auto !important;
  }

  #opportunities .journey-card-media,
  #opportunities[class*="concept-"] .journey-card-media {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
  }

  #opportunities .journey-card-media svg {
    width: 22px !important;
    height: 22px !important;
  }

  #opportunities .journey-role-title {
    font-size: 1.02rem !important;
  }

  #opportunities .journey-role-subtitle {
    font-size: 0.82rem !important;
  }

  #opportunities .journey-role-desc {
    font-size: 0.83rem !important;
  }
}

/* ==========================================================================
   Property Segment Cards (1:1 Match to User Reference Screenshot)
   ========================================================================== */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  padding-top: 1rem;
}

.cat-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.cat-card:hover {
  transform: translateY(-6px);
  border-color: #14B8A6;
  box-shadow: 0 20px 40px rgba(15, 118, 110, 0.12);
}

.cat-card-top {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: #F1F5F9;
}

.cat-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cat-card:hover .cat-card-img {
  transform: scale(1.06);
}

/* Inverted Curved White Wave SVG at the junction of image & white body */
.cat-card-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 28px;
  fill: #FFFFFF;
  pointer-events: none;
}

/* Centered Icon Badge sitting right in the curve dip */
.cat-card-icon-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -22px auto 0.85rem auto;
  z-index: 3;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cat-card:hover .cat-card-icon-wrap {
  transform: scale(1.08);
  border-color: #14B8A6;
}

.cat-card-body {
  padding: 0 1.15rem 1.6rem 1.15rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.cat-card-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 0.35rem;
}

.cat-card-subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
  color: #64748B;
  margin: 0;
}

@media (max-width: 1199.98px) {
  .cat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .cat-cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}