/*
  FastApartments Mobile Photo Design Upgrade
  Only frontend CSS. No database/users/admin data changes.
*/

:root{
  --fa-photo-cyan:#35d6ff;
  --fa-photo-blue:#4368ff;
  --fa-photo-purple:#824eff;
  --fa-photo-pink:#ff49a0;
  --fa-photo-yellow:#ffdf5b;
  --fa-photo-green:#2cda99;
  --fa-photo-dark:#07112f;
}

/* Keep desktop clean, only enrich hero a little */
.app-hero{
  background:
    radial-gradient(circle at 12% 12%, rgba(130,78,255,.34), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(53,214,255,.34), transparent 35%),
    radial-gradient(circle at 12% 88%, rgba(255,73,160,.24), transparent 35%),
    radial-gradient(circle at 92% 92%, rgba(255,223,91,.22), transparent 32%),
    linear-gradient(135deg,#07112f 0%,#0b1b47 40%,#10103a 100%) !important;
}

.app-copy h1 strong{
  background:linear-gradient(90deg,var(--fa-photo-cyan),var(--fa-photo-purple),var(--fa-photo-pink));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-chips span,
.float-icon,
.phone-mockup,
.search-card,
.world-card,
.property-3d-card{
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

/* Mobile app-like bottom bar */
.fastapp-mobile-tabs{
  display:none;
}

@media (max-width: 768px){
  html,body{
    max-width:100%;
    overflow-x:hidden;
  }

  body{
    padding-bottom:92px;
    background:
      radial-gradient(circle at 15% 4%, rgba(130,78,255,.30), transparent 28%),
      radial-gradient(circle at 85% 10%, rgba(53,214,255,.28), transparent 32%),
      radial-gradient(circle at 20% 90%, rgba(255,73,160,.20), transparent 32%),
      #07112f;
  }

  .site-header{
    background:rgba(7,17,47,.72) !important;
    border-bottom:1px solid rgba(255,255,255,.12);
  }

  .app-hero{
    min-height:auto !important;
    padding:92px 0 96px !important;
    overflow:hidden;
  }

  .app-hero-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
    align-items:start !important;
  }

  .app-copy{
    order:1;
    width:100%;
    text-align:left;
    position:relative;
    z-index:4;
  }

  .hero-brand-line{
    display:inline-flex;
    margin-bottom:12px !important;
    transform:scale(.92);
    transform-origin:left center;
  }

  .app-copy .eyebrow{
    font-size:11px !important;
    letter-spacing:.13em !important;
    line-height:1.35 !important;
    display:block;
    max-width:92vw;
  }

  .app-copy h1{
    font-size:clamp(44px, 14vw, 68px) !important;
    line-height:.92 !important;
    letter-spacing:-.06em !important;
    margin:10px 0 12px !important;
  }

  .app-copy h1 span,
  .app-copy h1 strong{
    display:block;
  }

  .app-copy p{
    max-width:92vw !important;
    font-size:16px !important;
    line-height:1.55 !important;
    color:#e8f0ff !important;
    margin-bottom:14px !important;
  }

  .hero-chips{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
    margin:10px 0 14px !important;
  }

  .hero-chips span{
    min-height:42px !important;
    padding:7px 12px 7px 8px !important;
    border-radius:999px !important;
    font-size:14px !important;
    background:rgba(255,255,255,.14) !important;
    border:1px solid rgba(255,255,255,.22) !important;
    box-shadow:0 10px 28px rgba(0,0,0,.18) !important;
  }

  .hero-chips i{
    width:30px !important;
    height:30px !important;
    font-size:15px !important;
  }

  .hero-actions{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:9px !important;
    width:100%;
    margin:12px 0 12px !important;
  }

  .hero-actions .btn,
  .btn-xl{
    width:100% !important;
    min-height:48px !important;
    padding:12px 10px !important;
    border-radius:17px !important;
    font-size:14px !important;
    justify-content:center !important;
    white-space:nowrap;
  }

  .hero-mini-stats{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:8px !important;
    width:100%;
    margin-top:12px !important;
  }

  .hero-mini-stats div{
    padding:10px 6px !important;
    border-radius:18px !important;
    min-width:0 !important;
    text-align:center !important;
    background:rgba(255,255,255,.10) !important;
    border:1px solid rgba(255,255,255,.16) !important;
  }

  .hero-mini-stats b{
    font-size:18px !important;
  }

  .hero-mini-stats span{
    font-size:10px !important;
  }

  .phone-stage{
    order:2;
    min-height:560px !important;
    height:560px !important;
    display:grid !important;
    place-items:center !important;
    width:100% !important;
    margin-top:2px !important;
    transform:none !important;
    overflow:visible !important;
  }

  .phone-mockup{
    width:min(360px, 88vw) !important;
    height:545px !important;
    max-width:88vw !important;
    transform:none !important;
    margin:0 auto !important;
    border-radius:44px !important;
    border-width:7px !important;
    padding:20px 14px 13px !important;
    box-shadow:0 26px 70px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.08) inset !important;
    overflow:hidden !important;
  }

  .phone-mockup:before{
    width:102px !important;
    height:26px !important;
    top:12px !important;
  }

  .phone-top{
    font-size:11px !important;
    padding-bottom:11px !important;
  }

  .phone-app-head{
    height:42px !important;
    margin-bottom:9px !important;
  }

  .mini-logo{
    width:32px !important;
    height:32px !important;
    border-radius:11px !important;
  }

  .phone-app-head b{
    font-size:18px !important;
    line-height:.9 !important;
  }

  .phone-app-head b small{
    font-size:8px !important;
  }

  .phone-app-head em{
    width:34px !important;
    height:34px !important;
    border-radius:13px !important;
    display:grid !important;
    place-items:center !important;
  }

  .phone-search{
    height:44px !important;
    border-radius:18px !important;
    padding:0 10px !important;
    gap:7px !important;
    font-size:13px !important;
    margin-bottom:9px !important;
  }

  .phone-search p{
    font-size:12px !important;
  }

  .request-card-ui{
    border-radius:22px !important;
    padding:13px !important;
    margin-bottom:9px !important;
  }

  .request-card-ui h3{
    font-size:20px !important;
    margin-bottom:4px !important;
  }

  .request-card-ui p{
    font-size:12px !important;
  }

  .city-illustration{
    height:58px !important;
    margin:10px 0 !important;
  }

  .request-card-ui button{
    height:44px !important;
    border-radius:16px !important;
    font-size:16px !important;
  }

  .phone-tiles{
    display:grid !important;
    grid-template-columns:repeat(3,1fr) !important;
    gap:7px !important;
    margin-bottom:8px !important;
  }

  .phone-tiles div{
    min-height:68px !important;
    padding:6px 4px !important;
    border-radius:15px !important;
  }

  .phone-tiles i{
    width:28px !important;
    height:28px !important;
    border-radius:10px !important;
    font-size:13px !important;
    margin-bottom:4px !important;
  }

  .phone-tiles b{
    display:block !important;
    font-size:9.5px !important;
    line-height:1.12 !important;
  }

  /* This was hidden before on very small phones. Now the bottom phone buttons stay visible. */
  .phone-nav{
    display:grid !important;
    grid-template-columns:repeat(4,1fr) !important;
    gap:3px !important;
    height:54px !important;
    border-radius:19px !important;
    padding:6px 4px !important;
    background:#fff !important;
    box-shadow:0 -10px 30px rgba(15,23,42,.10) !important;
  }

  .phone-nav span{
    display:grid !important;
    place-items:center !important;
    gap:1px !important;
    font-size:16px !important;
    color:#667085 !important;
  }

  .phone-nav span.active{
    color:#4368ff !important;
  }

  .phone-nav small{
    display:block !important;
    font-size:7.5px !important;
    font-weight:800 !important;
    line-height:1 !important;
    letter-spacing:-.02em !important;
  }

  .float-icon{
    display:grid !important;
    width:48px !important;
    height:48px !important;
    border-radius:17px !important;
    font-size:23px !important;
    opacity:.95 !important;
  }

  .float-icon.search{right:4px !important;top:62px !important;}
  .float-icon.send{left:4px !important;top:250px !important;}
  .float-icon.home{right:10px !important;bottom:34px !important;}

  .search-floating{
    margin-top:-70px !important;
    position:relative;
    z-index:5;
  }

  .search-card{
    border-radius:26px !important;
    padding:16px !important;
  }

  .search-title-row{
    display:grid !important;
    gap:10px !important;
  }

  .search-title-row h2{
    font-size:26px !important;
  }

  .search-title-row a{
    width:100%;
    min-height:42px;
    display:grid;
    place-items:center;
    border-radius:16px;
    background:rgba(255,255,255,.11);
    border:1px solid rgba(255,255,255,.18);
  }

  .search-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .search-grid input,
  .search-grid select{
    height:50px !important;
    border-radius:17px !important;
  }

  .search-btn{
    min-height:52px !important;
    border-radius:18px !important;
  }

  .section-head{
    text-align:left !important;
  }

  .section-head h2{
    font-size:clamp(32px, 10vw, 42px) !important;
    line-height:1.02 !important;
  }

  .property-showcase,
  .simple-world,
  .grid-3,
  .grid-4{
    grid-template-columns:1fr !important;
  }

  /* Real mobile bottom buttons like app */
  .fastapp-mobile-tabs{
    position:fixed;
    left:10px;
    right:10px;
    bottom:10px;
    z-index:9999;
    height:72px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    align-items:center;
    gap:4px;
    padding:8px 8px calc(8px + env(safe-area-inset-bottom));
    border-radius:26px;
    background:rgba(255,255,255,.92);
    border:1px solid rgba(255,255,255,.95);
    box-shadow:0 24px 60px rgba(0,0,0,.34);
    -webkit-backdrop-filter:blur(22px);
    backdrop-filter:blur(22px);
  }

  .fastapp-mobile-tabs a{
    min-width:0;
    height:54px;
    display:grid;
    place-items:center;
    gap:2px;
    text-decoration:none;
    color:#64708a;
    border-radius:20px;
    font-weight:900;
  }

  .fastapp-mobile-tabs a.active,
  .fastapp-mobile-tabs a:hover{
    color:#0d1738;
    background:linear-gradient(135deg,rgba(53,214,255,.23),rgba(130,78,255,.16));
  }

  .fastapp-mobile-tabs span{
    font-size:20px;
    line-height:1;
  }

  .fastapp-mobile-tabs small{
    font-size:10px;
    line-height:1;
    font-weight:900;
    letter-spacing:-.03em;
  }

  .whatsapp-float{
    bottom:94px !important;
  }
}

@media (max-width: 380px){
  .app-copy h1{
    font-size:clamp(40px, 13vw, 58px) !important;
  }
  .phone-stage{
    min-height:535px !important;
    height:535px !important;
  }
  .phone-mockup{
    width:318px !important;
    height:518px !important;
    max-width:90vw !important;
  }
  .hero-actions{
    grid-template-columns:1fr !important;
  }
}

/* Desktop: bottom mobile bar never shows */
@media (min-width: 769px){
  .fastapp-mobile-tabs{
    display:none !important;
  }
}