/* Nilaya Ventures motion refinements — visual-only enhancements. */
:root{--nv-motion-ease:cubic-bezier(.22,1,.36,1)}

/* Gentle entry animation, preserving normal document layout. */
main{animation:nv-page-arrive .55s var(--nv-motion-ease) both}
@keyframes nv-page-arrive{from{opacity:.88;transform:translate3d(0,7px,0)}to{opacity:1;transform:translate3d(0,0,0)}}

/* Live and curated property cards, including cards injected by Supabase. */
.rn-property,.card,.nv-member{
  transition:transform .45s var(--nv-motion-ease),box-shadow .45s var(--nv-motion-ease),border-color .35s ease;
  will-change:auto;
}
.rn-property>a:first-child{display:block;position:relative;overflow:hidden}
.rn-property>a:first-child>img{transition:transform .8s var(--nv-motion-ease),filter .6s ease;transform-origin:center center}
.card-img{overflow:hidden;isolation:isolate}
/* Allow the background images on existing static property cards to zoom as well. */
.card-img::before{
  content:"";position:absolute;inset:0;z-index:0;
  background-image:inherit;background-position:inherit;background-size:cover;background-repeat:no-repeat;
  transform:scale(1);transition:transform .8s var(--nv-motion-ease);
  pointer-events:none;
}
.card-img>img{position:relative;z-index:1;transition:transform .8s var(--nv-motion-ease),filter .6s ease;transform-origin:center center}
.card-img::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:0;transition:opacity .5s ease;background:linear-gradient(180deg,transparent 45%,rgba(7,57,36,.18))}
.card-img>.badge,.card-img>.property-image-tags{z-index:3}
.rn-property .more,.card .cardfoot a{
  display:inline-flex;align-items:center;gap:.2em;transition:color .25s ease,transform .3s var(--nv-motion-ease)
}

@media(hover:hover) and (pointer:fine){
  .rn-property:hover,.card:hover,.nv-member:hover{transform:translate3d(0,-8px,0);box-shadow:0 22px 50px rgba(15,63,44,.14);border-color:#b9dccc}
  .rn-property:hover>a:first-child>img,.card:hover .card-img>img{transform:scale(1.055);filter:saturate(1.045)}
  .card:hover .card-img::before{transform:scale(1.055)}
  .card:hover .card-img::after{opacity:1}
  .rn-property:hover .more,.card:hover .cardfoot a{transform:translateX(4px);color:#007e51}
  .rn-cat:hover,.cat:hover{transform:translate3d(0,-6px,0);box-shadow:0 20px 40px rgba(9,52,33,.19)}
  .property-filter:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(6,73,44,.1)}
  .rn-button:hover,.cta:hover,.btn:hover,.rn-search button:hover,.form button:hover{filter:brightness(1.045);box-shadow:0 13px 27px rgba(0,99,62,.19)}
}
.rn-cat,.cat{transition:transform .45s var(--nv-motion-ease),box-shadow .45s var(--nv-motion-ease),filter .4s ease}
.rn-button,.cta,.btn,.rn-search button,.form button,.property-filter{transition:transform .28s var(--nv-motion-ease),box-shadow .3s ease,filter .3s ease,background-color .3s ease,color .3s ease}
:where(.rn-property,.card,.nv-member,.rn-cat,.cat) :where(a,button):focus-visible,
:where(.rn-button,.cta,.btn,.property-filter,.rn-search button,.form button):focus-visible{
  outline:3px solid #10bd80;outline-offset:3px;
}

/* New Property badge: a noticeable double blink every 3.8s.
   Keep the text fully visible while the background brightens and the status light flashes.
   All other property tags remain static. */
.property-image-tag.nv-badge-new,.rn-home-tag.nv-badge-new{
  position:relative;isolation:isolate;overflow:hidden;
  display:inline-flex;align-items:center;gap:7px;
  background-color:#0c5943;color:#fff;border:1px solid rgba(255,255,255,.18);
  box-shadow:0 4px 12px rgba(6,67,44,.28);
  transform-origin:center center;
  animation:nv-new-double-blink 3.8s ease-in-out infinite;
}
.property-image-tag.nv-badge-new::before,.rn-home-tag.nv-badge-new::before{
  content:"";width:7px;height:7px;flex:none;border-radius:50%;
  background:#a7ffce;box-shadow:0 0 0 2px rgba(151,245,186,.18),0 0 7px rgba(151,245,186,.44);
  animation:nv-new-dot-blink 3.8s ease-in-out infinite;
}
.property-image-tag.nv-badge-new::after,.rn-home-tag.nv-badge-new::after{
  content:"";position:absolute;top:0;bottom:0;left:-70%;width:45%;z-index:-1;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);
  transform:skewX(-22deg);pointer-events:none;
  animation:nv-new-sheen 3.8s ease-in-out infinite;
}
@keyframes nv-new-double-blink{
  0%,8%,16%,23%,29%,100%{background-color:#0c5943;box-shadow:0 4px 12px rgba(6,67,44,.28);transform:scale(1)}
  11%,20%{background-color:#00a86b;box-shadow:0 0 0 3px rgba(0,195,112,.2),0 7px 22px rgba(0,160,95,.45);transform:scale(1.045)}
  32%,36%{background-color:#116e4d;box-shadow:0 5px 16px rgba(6,67,44,.29);transform:scale(1)}
}
@keyframes nv-new-dot-blink{
  0%,8%,16%,23%,29%,100%{opacity:.48;box-shadow:0 0 0 2px rgba(151,245,186,.12)}
  11%,20%{opacity:1;box-shadow:0 0 0 4px rgba(151,245,186,.28),0 0 13px rgba(185,255,214,.95)}
}
@keyframes nv-new-sheen{0%,27%{left:-70%;opacity:0}30%{opacity:1}48%,100%{left:135%;opacity:0}}
@media(hover:hover) and (pointer:fine){
  .property-image-tag.nv-badge-new:hover,.rn-home-tag.nv-badge-new:hover{
    box-shadow:0 0 0 3px rgba(0,195,112,.15),0 9px 24px rgba(0,160,95,.4)
  }
}

/* Lightweight scroll reveal only for sections without their own entrance animation. */
.nv-motion-target{opacity:0;transform:translate3d(0,17px,0);transition:opacity .7s var(--nv-motion-ease),transform .75s var(--nv-motion-ease);transition-delay:var(--nv-motion-delay,0ms)}
.nv-motion-target.nv-motion-in{opacity:1;transform:translate3d(0,0,0)}

/* Existing motion remains optional for people preferring reduced motion. */
@media(prefers-reduced-motion:reduce){
  main,.property-image-tag.nv-badge-new,.rn-home-tag.nv-badge-new,
  .property-image-tag.nv-badge-new::before,.rn-home-tag.nv-badge-new::before,
  .property-image-tag.nv-badge-new::after,.rn-home-tag.nv-badge-new::after{animation:none!important}
  .nv-motion-target{opacity:1!important;transform:none!important}
  .rn-property,.card,.nv-member,.rn-cat,.cat,.card-img::before,.card-img::after,
  .rn-property>a:first-child>img,.card-img>img,.rn-button,.cta,.btn,.rn-search button,.form button,.property-filter,.rn-property .more,.card .cardfoot a{transition:none!important}
  .rn-property:hover,.card:hover,.nv-member:hover,.rn-cat:hover,.cat:hover,
  .rn-property:hover>a:first-child>img,.card:hover .card-img>img,.card:hover .card-img::before{transform:none!important}
}


/* ===============================================================
   NILAYA 2026-11-08 — UNIFORM LISTING CARDS + REFINED INTERACTION
   Applies to live Supabase listings and existing curated cards alike.
   =============================================================== */

/* Use equally sized implicit rows across the whole property grid,
   not just between neighbours. All descriptions may remain full-length. */
#listings .cards, .rn-home .rn-grid {
  grid-auto-rows: 1fr;
  align-items: stretch;
}
#listings .cards > .card,
.rn-home .rn-grid > .rn-property {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 19px;
  background: #fff;
}

/* PROPERTY LISTINGS: image, flowing body, footer fixed to card bottom. */
#listings .card .card-img {
  height: 230px;
  min-height: 230px;
  flex: 0 0 230px;
  overflow: hidden;
  background-position: center;
}
#listings .card .cardbody {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding: 20px 19px 18px;
}
#listings .card .cardbody > h3 {
  line-height: 1.28;
  margin: 6px 0 7px;
  overflow-wrap: anywhere;
}
#listings .card .cardbody > p {
  min-height: 0;
  margin: 0 0 20px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
#listings .card .cardbody > .plan-link { margin: 0 0 18px; }
#listings .card .cardfoot {
  margin-top: auto;
  min-height: 48px;
  padding: 14px 0 0;
  border-top: 1px solid #e5ece7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: 11px;
  line-height: 1.4;
}
#listings .card .cardfoot > span { min-width: 0; overflow-wrap: anywhere; }
#listings .card .cardfoot > b { margin-left: auto; white-space: nowrap; }
#listings .card[hidden] { display: none !important; }

/* HOMEPAGE: all featured cards share an identical image zone and
   the bottom CTA divider remains aligned even with variable keywords. */
.rn-home .rn-grid > .rn-property > a:first-child {
  display: block;
  position: relative;
  width: 100%;
  height: 235px;
  min-height: 235px;
  flex: 0 0 235px;
  overflow: hidden;
  background: #e8f2eb;
}
.rn-home .rn-grid .rn-property > a:first-child > img,
.rn-home .rn-grid .rn-property > a:first-child > .rn-home-image-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rn-home .rn-grid .rn-property > a:first-child > .rn-home-image-placeholder {
  display: grid;
  place-items: center;
}
.rn-home .rn-property .content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  padding: 22px 22px 21px;
}
.rn-home .rn-property .content > .rn-pill { line-height: 1.45; }
.rn-home .rn-property .content > h3 {
  margin: 11px 0 8px;
  line-height: 1.24;
  overflow-wrap: anywhere;
}
.rn-home .rn-property .content > p {
  min-height: 0 !important;
  margin: 0 0 16px;
  line-height: 1.66;
  overflow-wrap: anywhere;
}
.rn-home .rn-property .content > .meta {
  margin: 0 0 17px;
  min-height: 29px;
  align-self: flex-start;
}
.rn-home .rn-property .content > .more {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  margin-top: auto;
  padding: 17px 0 0;
  border-top: 1px solid #e5ece7;
  line-height: 1.5;
}

/* Visibly blinking NEW PROPERTY badge: two bright pops per cycle,
   plus a small live-status dot. Text never vanishes. */
.property-image-tags .property-image-tag.nv-badge-new,
.rn-home-tags .rn-home-tag.nv-badge-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  isolation: isolate;
  overflow: hidden;
  padding: 8px 11px;
  border-radius: 7px;
  color: #fff;
  background: #0b5941;
  border: 1px solid rgba(177,255,202,.38);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform-origin: center;
  animation: nv-badge-flash-v3 3.15s cubic-bezier(.3,0,.2,1) infinite;
}
.property-image-tags .property-image-tag.nv-badge-new::before,
.rn-home-tags .rn-home-tag.nv-badge-new::before {
  content: '';
  display: block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  background: #bcffd2;
  border-radius: 100%;
  animation: nv-badge-dot-v3 3.15s ease-in-out infinite;
}
.property-image-tags .property-image-tag.nv-badge-new::after,
.rn-home-tags .rn-home-tag.nv-badge-new::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: -65%;
  width: 44%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);
  transform: skewX(-22deg);
  pointer-events: none;
  animation: nv-badge-sheen-v3 3.15s ease-in-out infinite;
}
@keyframes nv-badge-flash-v3 {
  0%,7%,19%,32%,45%,100% {
    background-color: #0b5941;
    box-shadow: 0 3px 10px rgba(2,50,31,.3);
    transform: scale(1);
  }
  12%,25% {
    background-color: #02b875;
    box-shadow: 0 0 0 4px rgba(0,190,108,.21),0 0 24px rgba(0,205,113,.54);
    transform: scale(1.07);
  }
}
@keyframes nv-badge-dot-v3 {
  0%,7%,19%,32%,45%,100% {background:#a1eab8;box-shadow:0 0 0 1px rgba(199,255,215,.14);opacity:.6}
  12%,25% {background:#fff;box-shadow:0 0 0 4px rgba(224,255,230,.45),0 0 15px #e2ffeb;opacity:1}
}
@keyframes nv-badge-sheen-v3 {
  0%,36%{left:-65%;opacity:0}
  39%{opacity:1}
  58%,100%{left:145%;opacity:0}
}

/* Small micro-interactions that never change the card's layout. */
#listings .card,
.rn-home .rn-property {
  transition: transform .48s var(--nv-motion-ease),
              box-shadow .48s var(--nv-motion-ease),
              border-color .34s ease;
}
#listings .card .card-img,
.rn-home .rn-property>a:first-child { isolation: isolate; }
#listings .card .card-img::after,
.rn-home .rn-property>a:first-child::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg,rgba(0,82,53,.13),transparent 55%);
  opacity: 0;
  transition: opacity .5s ease;
}
#listings .card .card-img>.property-image-tags,
.rn-home .rn-home-tags { z-index: 4; }
#listings .card .card-img>.badge { z-index: 4; }

/* Navigation, filter buttons and enquiry controls. */
.links a::after { transition: width .35s var(--nv-motion-ease); }
.rn-search :is(input,select,textarea),
.form :is(input,select,textarea) {
  transition: box-shadow .28s ease,border-color .28s ease,background-color .28s ease;
}
.rn-search :is(input,select,textarea):focus,
.form :is(input,select,textarea):focus {
  outline: none;
  background: #fff;
  border-color: #00a86b;
  box-shadow: 0 0 0 3px rgba(0,168,107,.12);
}
.property-filter:active,.rn-button:active,.cta:active,.btn:active {
  transform: translateY(1px) scale(.98);
}

@media (hover:hover) and (pointer:fine) {
  #listings .card:hover,
  .rn-home .rn-property:hover {
    transform: translateY(-8px);
    border-color: #b4dac5;
    box-shadow: 0 22px 48px rgba(15,63,44,.15);
  }
  #listings .card:hover .card-img::after,
  .rn-home .rn-property:hover>a:first-child::after {opacity:1}
  #listings .card:hover .card-img>img,
  .rn-home .rn-property:hover>a:first-child>img {
    transform: scale(1.065);
  }
  #listings .card .cardfoot a:hover,
  .rn-home .rn-property .more:hover {color:#009e66}
  .nav .links a:hover {color:#007953}
}

/* Stagger the arrival of admin-loaded listings only. */
@keyframes nv-listing-enter-v3 {
  from {opacity: 0;translate: 0 16px;filter: saturate(.9)}
  to {opacity: 1;translate: 0 0;filter: saturate(1)}
}
#listings .card[data-supabase-listing="true"],
.rn-home .rn-property[data-supabase-listing="true"] {
  animation: nv-listing-enter-v3 .65s var(--nv-motion-ease) both;
}
#listings .card[data-supabase-listing="true"]:nth-child(3n+2),
.rn-home .rn-property[data-supabase-listing="true"]:nth-child(3n+2) {animation-delay: 65ms}
#listings .card[data-supabase-listing="true"]:nth-child(3n+3),
.rn-home .rn-property[data-supabase-listing="true"]:nth-child(3n+3) {animation-delay: 120ms}

@media (max-width: 700px) {
  #listings .card .card-img {height: 214px;min-height:214px;flex-basis:214px}
  .rn-home .rn-grid > .rn-property > a:first-child {height:220px;min-height:220px;flex-basis:220px}
  .rn-home .rn-property .content,#listings .card .cardbody {padding:18px}
  .rn-home .rn-grid {grid-auto-rows:auto}
  #listings .cards {grid-auto-rows:auto}
}

@media (prefers-reduced-motion: reduce) {
  .property-image-tags .property-image-tag.nv-badge-new,
  .rn-home-tags .rn-home-tag.nv-badge-new,
  .property-image-tags .property-image-tag.nv-badge-new::before,
  .rn-home-tags .rn-home-tag.nv-badge-new::before,
  .property-image-tags .property-image-tag.nv-badge-new::after,
  .rn-home-tags .rn-home-tag.nv-badge-new::after,
  #listings .card[data-supabase-listing="true"],
  .rn-home .rn-property[data-supabase-listing="true"] {animation:none!important;filter:none!important;translate:none!important}
  #listings .card,#listings .card *,
  .rn-home .rn-property,.rn-home .rn-property *,
  .links a::after,
  .rn-search :is(input,select,textarea) {transition:none!important}
}


/* 2026-11-12 — extra lightweight, consistent motion throughout the site. */
.nav{transition:box-shadow .32s ease,background-color .32s ease}
.nav.nv-nav-scrolled{box-shadow:0 10px 30px rgba(13,59,39,.1);background:rgba(255,255,255,.98)}
/* Hero: softly stagger copy and search box without changing their layout. */
.rn-hero .rn-fade > .rn-kicker{animation:nv-hero-enter .65s .02s both}
.rn-hero .rn-fade > h1{animation:nv-hero-enter .74s .12s both}
.rn-hero .rn-fade > p{animation:nv-hero-enter .8s .24s both}
.rn-hero .rn-fade > .rn-button{animation:nv-hero-enter .8s .34s both}
.rn-hero .rn-search{animation:nv-hero-enter .78s .25s both}
@keyframes nv-hero-enter{from{opacity:0;transform:translate3d(0,18px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
/* Harmonized entrance for content added from the live property database. */
.rn-grid>.rn-property,#listings .cards>.card{animation:nv-card-bloom .65s cubic-bezier(.2,.8,.2,1) both}
.rn-grid>.rn-property:nth-child(3n + 2),#listings .cards>.card:nth-child(3n + 2){animation-delay:85ms}
.rn-grid>.rn-property:nth-child(3n + 3),#listings .cards>.card:nth-child(3n + 3){animation-delay:145ms}
@keyframes nv-card-bloom{from{opacity:.25;transform:translate3d(0,14px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
/* Buttons, inputs, image tiles and editorial cards. */
.rn-search input,.rn-search select,.rn-search textarea,.form input,.form select,.form textarea{
  transition:border-color .24s ease,box-shadow .24s ease,background-color .24s ease;
}
.rn-search :is(input,select,textarea):focus-visible,
.form :is(input,select,textarea):focus-visible{
  outline:none;border-color:#1aa878;box-shadow:0 0 0 3px rgba(0,168,107,.12);background:#fff;
}
.testimonial-story,.timeline-item,.story-panel,.rn-benefits img{
  transition:transform .48s cubic-bezier(.22,1,.36,1),box-shadow .48s cubic-bezier(.22,1,.36,1),border-color .38s ease;
}
@media(hover:hover) and (pointer:fine){
  .testimonial-story:hover,.timeline-item:hover,.story-panel:hover{
    transform:translate3d(0,-5px,0);box-shadow:0 18px 42px rgba(14,60,42,.11);
  }
  .rn-benefits img:hover{transform:scale(1.012);box-shadow:0 18px 34px rgba(14,60,42,.15)}
  .rn-cat:hover .rn-cat-content,.cat:hover div{transform:translate3d(0,-3px,0)}
}
.rn-cat .rn-cat-content,.cat div{transition:transform .4s cubic-bezier(.22,1,.36,1)}
.rn-cats .rn-cat,.cards .card{backface-visibility:hidden}
/* Ensure the animated new listing badge remains readable and gently flashes. */
.property-image-tag.nv-badge-new,.rn-home-tag.nv-badge-new{animation-duration:3.15s!important}
@media(prefers-reduced-motion:reduce){
  .rn-hero .rn-fade>*,.rn-hero .rn-search,
  .rn-grid>.rn-property,#listings .cards>.card{animation:none!important;opacity:1!important;transform:none!important}
  .nav,.testimonial-story,.timeline-item,.story-panel,.rn-benefits img,
  .rn-search input,.rn-search select,.rn-search textarea,.form input,.form select,.form textarea{transition:none!important}
}
