/* ====================================================================
   JustHome — Theme Stylesheet (PROJECTS PAGE - FIXED)
   - White body with green shades
   - Glass effect (frosted panels)
   - Transparent elements
   - Rounded corners on all images
   - ALL SECTIONS have EQUAL SIZED elements
   - Navbar FIXED at top (transparent, blur on mobile)
   - Footer TRANSPARENT (no background anywhere)
   - Fully responsive
   ==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* ---- Color tokens ---- */
  --jh-black:        #07100c;
  --jh-black-soft:   #0d1812;
  --jh-green-deep:   #0f3d24;
  --jh-green:        #1f7a4d;
  --jh-green-bright: #34d399;
  --jh-white:        #f3f7f4;
  --jh-muted:        #4a6b5a;
  --jh-hairline:     rgba(52,211,153,0.18);

  /* ---- Glass tokens ---- */
  --glass-bg:         rgba(255,255,255,0.10);
  --glass-bg-strong:  rgba(255,255,255,0.18);
  --glass-border:     rgba(52,211,153,0.25);
  --glass-blur:       blur(16px) saturate(160%);

  /* ---- Type tokens ---- */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ---- Layout tokens ---- */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  
  /* ---- Fixed sizes ---- */
  --section-padding: 3.5rem 0;
  --card-height: 100%;
  --image-height: 300px;
  --carousel-image-height: 420px;
  --navbar-height: 76px;
  --container-max-width: 1320px; /* FIXED: changed from 1200px to 1320px */
}

/* ====================================================================
   Reset / page ground — White with green shades
   ==================================================================== */

body{
  background-color: #f2f8f5 !important;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(52,211,153,0.07) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(31,122,77,0.06) 0%, transparent 50%);
  color: #1a2e24;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  min-height: 100vh;
  position: relative;
  padding-top: calc(var(--navbar-height) + 10px);
}

/* Faint blueprint grid + ambient green glow behind everything */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(31,122,77,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,122,77,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}
body::after{
  content: "";
  position: fixed;
  top: -10%;
  left: 50%;
  width: 80vw;
  height: 80vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(52,211,153,0.10), transparent 65%);
  z-index: -1;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-display);
  font-weight: 600;
  color: #0d2b1e;
  letter-spacing: -0.01em;
}

p, .lead, li, a{
  font-family: var(--font-body);
}
p, .lead{ 
  color: #2b4a3a; 
}

a{ 
  color: var(--jh-green); 
}
a:hover{ 
  color: #0f3d24; 
}

::selection{ 
  background: var(--jh-green); 
  color: var(--jh-white); 
}

/* Visible keyboard focus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible{
  outline: 2px solid var(--jh-green-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}

/* ====================================================================
   CONTAINER FIX — All containers use 1320px max-width
   ==================================================================== */

.container,
.container-fluid,
.container-lg,
.container-md,
.container-sm,
.container-xl,
.container-xxl{
  max-width: var(--container-max-width) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 24px;
  padding-right: 24px;
}

/* ====================================================================
   Navigation — FIXED NAVBAR (transparent, blur background on mobile)
   ==================================================================== */

/* Navbar section - FIXED and TRANSPARENT */
.container.px-3.px-lg-4 > section.py-2.py-md-3,
section.py-2.py-md-3{
  padding: 0 !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  padding: 12px 20px 0 20px !important;
  background: transparent !important;
  transition: all 0.3s ease;
  max-width: var(--container-max-width) !important;
  margin: 0 auto !important;
  width: 100%;
}
.container.px-3.px-lg-4 > section.py-2.py-md-3 .container-fluid,
section.py-2.py-md-3 .container-fluid{
  max-width: var(--container-max-width) !important;
  padding: 0;
  margin: 0 auto;
}
.container.px-3.px-lg-4 > section.py-2.py-md-3 .container-fluid .container-fluid,
section.py-2.py-md-3 .container-fluid .container-fluid{
  padding: 0 !important;
  max-width: 100% !important;
}

nav.navbar{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0.6rem 1.25rem;
  width: 100%;
  box-shadow: none !important;
  transition: all 0.3s ease;
}

/* ===== NAVBAR BRAND WITH LOGO ===== */
.navbar-brand{
  font-family: var(--font-display);
  font-weight: 700;
  color: #0d2b1e !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar-brand .logo-icon{
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--jh-green-bright);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  text-align: center;
  line-height: 36px;
  flex-shrink: 0;
}
.navbar-brand .brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar-brand .brand-text .main{
  font-size: 1.1rem;
  font-weight: 800;
  color: #0d2b1e;
}
.navbar-brand .brand-text .main span{
  color: var(--jh-green-bright);
}
.navbar-brand .brand-text .sub{
  font-size: 0.5rem;
  letter-spacing: 0.12em;
  color: var(--jh-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.navbar-brand::before{
  display: none;
}

.navbar-nav .nav-link{
  color: #2b4a3a !important;
  font-weight: 500;
  position: relative;
  padding: 0.4rem 0.2rem;
  margin: 0 0.6rem;
  transition: color 0.2s var(--ease);
}
.navbar-nav .nav-link::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0%;
  height: 2px;
  background: var(--jh-green-bright);
  transition: width 0.25s var(--ease);
}
.navbar-nav .nav-link:hover{ 
  color: #0d2b1e !important; 
}
.navbar-nav .nav-link:hover::after{ 
  width: 100%; 
}
.navbar-nav .nav-link.active{
  color: var(--jh-green) !important;
}
.navbar-nav .nav-link.active::after{
  width: 100%;
}

.navbar-toggler{
  background: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 8px;
  border: 1px solid rgba(52,211,153,0.2);
  padding: 0.5rem 0.75rem;
}
.navbar-toggler-icon{
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(7, 16, 12, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  filter: none !important;
}
.navbar-collapse{
  background: transparent !important;
  border-radius: var(--radius-md);
}

/* ====================================================================
   Mobile Navigation - 3 Lines with Transparent Blur Background
   ==================================================================== */

@media (max-width: 991.98px){
  /* Navbar background becomes glass blur on mobile */
  .container.px-3.px-lg-4 > section.py-2.py-md-3,
  section.py-2.py-md-3{
    background: rgba(255,255,255,0.70) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(52,211,153,0.10) !important;
    padding: 8px 12px 0 12px !important;
    max-width: 100% !important;
  }
  
  nav.navbar{
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  
  .navbar-collapse{ 
    background: rgba(255,255,255,0.85) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-radius: var(--radius-md);
    padding: 0.75rem; 
    margin-top: 0.5rem;
    border: 1px solid rgba(52,211,153,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  }
  
  .navbar-nav .nav-link{
    padding: 0.6rem 0.8rem;
    margin: 0.2rem 0;
    border-radius: 8px;
    transition: all 0.2s ease;
  }
  
  .navbar-nav .nav-link:hover{
    background: rgba(52,211,153,0.08) !important;
    border-radius: 8px;
  }
  
  .navbar-nav .nav-link::after{
    display: none;
  }
  
  .navbar-toggler{
    background: rgba(255,255,255,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(52,211,153,0.15);
  }
  
  .navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(7, 16, 12, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Show 3 lines (hamburger) on mobile */
  .navbar-toggler{
    display: flex !important;
  }
  
  /* Mobile brand smaller */
  .navbar-brand .logo-icon{
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 0.7rem;
  }
  .navbar-brand .brand-text .main{
    font-size: 0.95rem;
  }
  .navbar-brand .brand-text .sub{
    font-size: 0.45rem;
  }
}

/* ====================================================================
   Gallery / Carousel Section
   ==================================================================== */

section.py-5{
  padding: var(--section-padding);
}

section.py-5 .display-5{
  font-size: 2.8rem;
  font-weight: 700;
  color: #0d2b1e;
}
section.py-5 .lead{
  font-size: 1.15rem;
  color: #2b4a3a;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

#portfolioCarousel .carousel-item{
  padding: 1.5rem !important;
}
#portfolioCarousel .card{
  background: rgba(255,255,255,0.50);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52,211,153,0.18);
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  height: 100%;
  display: flex;
  flex-direction: column;
}
#portfolioCarousel .card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}
#portfolioCarousel .card img{
  border-radius: var(--radius-lg) var(--radius-lg) 0 0 !important;
  height: 250px;
  object-fit: cover;
  width: 100%;
  flex-shrink: 0;
}
#portfolioCarousel .card-body{
  background: transparent;
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
#portfolioCarousel .card-body h6{
  font-family: var(--font-display);
  color: #0d2b1e;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
#portfolioCarousel .card-body .text-muted{
  color: var(--jh-green) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}
#portfolioCarousel .card-body p{
  color: #2b4a3a;
  font-size: 0.95rem;
  margin-bottom: 0;
  flex: 1;
}

#portfolioCarousel .row{
  display: flex;
  flex-wrap: wrap;
}
#portfolioCarousel .row .col-md-4{
  display: flex;
}
#portfolioCarousel .row .col-md-4 .card{
  width: 100%;
}

#portfolioCarousel .carousel-control-prev,
#portfolioCarousel .carousel-control-next{
  width: 48px;
  height: 48px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  background: transparent;
}
#portfolioCarousel .carousel-control-prev{
  left: -10px;
}
#portfolioCarousel .carousel-control-next{
  right: -10px;
}
#portfolioCarousel .carousel-control-prev-icon,
#portfolioCarousel .carousel-control-next-icon{
  background-color: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 50%, auto;
  border: 1px solid rgba(52,211,153,0.2);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ====================================================================
   Featured Properties Grid
   ==================================================================== */

.page-wrap{
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* Main Content */
.main{
  flex: 1;
  min-width: 0;
}

.section-title{
  text-align: center;
  color: var(--jh-green-bright);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 0 0 20px;
  text-transform: uppercase;
  font-family: var(--font-display);
}

.properties-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Property Cards - Glass Effect */
.properties-grid .card{
  background: rgba(255,255,255,0.50) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(52,211,153,0.15) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.properties-grid .card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 46px rgba(0,0,0,0.12);
}

.properties-grid .card .card-image{
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #e8f0ec;
}
.properties-grid .card .card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.properties-grid .card:hover .card-image img{
  transform: scale(1.05);
}

.ribbon{
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--jh-green);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 14px;
  border-top-right-radius: 8px;
  letter-spacing: 0.3px;
}

.properties-grid .card .card-body{
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title-row{
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  flex-wrap: wrap;
}
.card-title-row h3{
  font-size: 17px;
  margin: 0;
  font-weight: 700;
  color: #0d2b1e;
}

.badge-sale{
  background: #fdeaea;
  color: #c0392b;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tag-apt{
  display: inline-block;
  background: rgba(31,122,77,0.10);
  color: var(--jh-green);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.location{
  display: flex;
  align-items: center;
  gap: 5px;
  color: #4a6b5a;
  font-size: 13px;
  margin-bottom: 14px;
}
.location svg{
  flex-shrink: 0;
}

.details-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  border: 1px solid rgba(52,211,153,0.10);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.15);
}
.details-grid > div{
  text-align: center;
  padding: 6px 4px;
  border-right: 1px solid rgba(52,211,153,0.08);
}
.details-grid > div:last-child{
  border-right: none;
}
.details-grid .label{
  color: var(--jh-green-bright);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.details-grid .value{
  color: #0d2b1e;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}

hr{
  border: none;
  border-top: 1px solid rgba(52,211,153,0.12);
  margin: 8px 0 12px;
  width: 100%;
}

.company-row{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}
.company-logo{
  width: 36px;
  height: 36px;
  background: rgba(31,122,77,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jh-green);
  font-weight: 800;
  font-size: 11px;
  flex-shrink: 0;
}
.company-logo.rounded-circle{
  border-radius: 50% !important;
}
.company-info a{
  color: var(--jh-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.company-info a:hover{
  color: #0f3d24;
}
.company-info .type{
  display: block;
  color: #4a6b5a;
  font-size: 11px;
  margin-top: 1px;
}

/* ====================================================================
   Sidebar
   ==================================================================== */

.sidebar{
  width: 300px;
  flex-shrink: 0;
}

.ad-banner{
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 30px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.ad-banner img{
  width: 100%;
  height: auto;
  display: block;
}

.recent-list{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recent-item{
  display: flex;
  gap: 12px;
  background: rgba(255,255,255,0.30);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(52,211,153,0.10);
  border-radius: var(--radius-md);
  padding: 10px;
  transition: all 0.3s var(--ease);
}
.recent-item:hover{
  background: rgba(255,255,255,0.50);
  transform: translateX(4px);
  border-color: rgba(52,211,153,0.20);
}

.recent-item .thumb{
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.recent-item .thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.badge-sale-small{
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #fdeaea;
  color: #c0392b;
  font-size: 8px;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.recent-info{
  min-width: 0;
  flex: 1;
}
.recent-info a{
  color: var(--jh-green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 3px;
  line-height: 1.25;
}
.recent-info a:hover{
  color: #0f3d24;
}
.recent-info .loc{
  color: #4a6b5a;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 3px;
}
.recent-info .specs{
  color: #4a6b5a;
  font-size: 11px;
  margin-bottom: 3px;
}
.recent-info .price{
  color: var(--jh-green);
  font-size: 12px;
  font-weight: 700;
}

/* ====================================================================
   Footer — TRANSPARENT (no background)
   ==================================================================== */

footer{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  box-shadow: none !important;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  padding: 1.5rem 0;
}

.footer-brand{
  font-family: var(--font-display);
  color: #0d2b1e !important;
  font-weight: 700;
  font-size: 1.5rem;
  display: inline-block;
}

footer .footer-address p{ 
  color: #2b4a3a; 
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
footer .footer-address a{ 
  color: var(--jh-green); 
  text-decoration: none;
}
footer .footer-address a:hover{
  color: #0f3d24;
}

footer h4{
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0d2b1e;
  margin-bottom: 0.9rem;
}

footer ul.list-unstyled{
  padding: 0;
  margin: 0;
  list-style: none;
}
footer ul.list-unstyled li{
  margin-bottom: 0.5rem;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: none !important;
  padding: 0 !important;
  min-height: auto !important;
  box-shadow: none !important;
}
footer ul.list-unstyled li:hover{
  background: transparent !important;
  border: none !important;
  transform: none !important;
}

footer .text-dark{
  color: #2b4a3a !important;
  transition: color 0.2s var(--ease);
  text-decoration: none;
  font-size: 0.95rem;
  background: transparent !important;
  padding: 0 !important;
}
footer .text-dark:hover{ 
  color: var(--jh-green) !important; 
  background: transparent !important;
}

footer .border-top{
  border-color: rgba(52,211,153,0.10) !important;
}

footer svg.text-primary,
footer i{
  color: var(--jh-green) !important; 
}

footer .small,
footer .small.text-muted{ 
  color: #4a6b5a !important;
  font-size: 0.85rem;
}
footer .text-muted{
  color: #4a6b5a !important;
}

footer .border-top.d-lg-none{
  border-color: rgba(52,211,153,0.08) !important;
}

/* ====================================================================
   Responsive Tweaks
   ==================================================================== */

@media (max-width: 1199.98px){
  .properties-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  .sidebar{
    width: 260px;
  }
}

@media (max-width: 991.98px){
  :root{
    --image-height: 260px;
    --carousel-image-height: 380px;
    --section-padding: 3rem 0;
    --navbar-height: 72px;
  }
  body{ padding-top: calc(var(--navbar-height) + 10px); }
  .page-wrap{
    flex-direction: column;
    padding: 20px 16px 30px;
  }
  .sidebar{
    width: 100%;
  }
  .properties-grid{
    grid-template-columns: repeat(2, 1fr);
  }
  section.py-5 .display-5{
    font-size: 2.4rem;
  }
  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl{
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767.98px){
  :root{
    --image-height: 220px;
    --carousel-image-height: 340px;
    --section-padding: 2.5rem 0;
    --navbar-height: 64px;
  }
  body{ padding-top: calc(var(--navbar-height) + 8px); }
  .properties-grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .properties-grid .card .card-image{
    height: 180px;
  }
  #portfolioCarousel .carousel-item{
    padding: 0.5rem !important;
  }
  #portfolioCarousel .card img{
    height: 200px;
  }
  #portfolioCarousel .carousel-control-prev,
  #portfolioCarousel .carousel-control-next{
    width: 36px;
    height: 36px;
  }
  #portfolioCarousel .carousel-control-prev-icon,
  #portfolioCarousel .carousel-control-next-icon{
    width: 36px;
    height: 36px;
    padding: 0.8rem;
  }
  #portfolioCarousel .carousel-control-prev{
    left: 0;
  }
  #portfolioCarousel .carousel-control-next{
    right: 0;
  }
  section.py-5 .display-5{
    font-size: 2rem;
  }
  section.py-5 .lead{
    font-size: 1rem;
  }
  .navbar-brand{
    font-size: 1.2rem;
  }
  nav.navbar{
    padding: 0.4rem 0.8rem;
  }
  footer{
    padding: 1.5rem 0;
  }
  .footer-brand{
    font-size: 1.3rem;
  }
  .recent-item{
    padding: 8px;
  }
  .recent-item .thumb{
    width: 70px;
    height: 70px;
  }
  .section-title{
    font-size: 18px;
  }
  .ad-banner{
    margin-bottom: 20px;
  }
  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl{
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 576px){
  :root{
    --radius-lg: 14px;
    --radius-md: 10px;
    --image-height: 200px;
    --carousel-image-height: 300px;
    --section-padding: 2rem 0;
    --navbar-height: 60px;
  }
  body{ padding-top: calc(var(--navbar-height) + 6px); }
  .container,
  .container-fluid,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl,
  .container-xxl{
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-wrap{
    padding: 16px 12px 30px;
  }
  .properties-grid .card .card-image{
    height: 160px;
  }
  #portfolioCarousel .card img{
    height: 180px;
  }
  #portfolioCarousel .card-body{
    padding: 1rem;
  }
  #portfolioCarousel .card-body h6{
    font-size: 1rem;
  }
  #portfolioCarousel .card-body p{
    font-size: 0.85rem;
  }
  section.py-5 .display-5{
    font-size: 1.8rem;
  }
  section.py-5 .lead{
    font-size: 0.9rem;
  }
  nav.navbar{
    padding: 0.3rem 0.6rem;
  }
  .navbar-brand{
    font-size: 1.1rem;
  }
  footer{
    padding: 1rem 0;
    margin-top: 1.5rem;
  }
  .footer-brand{
    font-size: 1.2rem;
  }
  footer .footer-address p,
  footer .text-dark{
    font-size: 0.85rem;
  }
  footer h4{
    font-size: 0.75rem;
  }
  .recent-item .thumb{
    width: 60px;
    height: 60px;
  }
  .recent-info a{
    font-size: 12px;
  }
  .recent-info .loc,
  .recent-info .specs{
    font-size: 10px;
  }
  .recent-info .price{
    font-size: 11px;
  }
  .section-title{
    font-size: 16px;
  }
  .card-title-row h3{
    font-size: 15px;
  }
  .details-grid .value{
    font-size: 14px;
  }
  .ribbon{
    font-size: 10px;
    padding: 3px 12px;
  }
}

/* ====================================================================
   Utility Classes
   ==================================================================== */

.glass{
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}
.glass-strong{
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.bg-transparent{ background: transparent !important; }
.rounded-4{ border-radius: var(--radius-lg) !important; }
.shadow-soft{ box-shadow: 0 8px 30px rgba(0,0,0,0.04); }

/* ====================================================================
   Image corner fix — all images get rounded corners
   ==================================================================== */

img{
  border-radius: var(--radius-md) !important;
}
.rounded-4 img{
  border-radius: var(--radius-lg) !important;
}
.img-fluid.rounded{
  border-radius: var(--radius-md) !important;
}