/*
Theme Name: mwp realestate
Theme URI: https://malabarwebpros.com
Author: malabarwebpros
Author URI: https://malabarwebpros.com
Description: A simple real estate theme.
Template: kadence
Version: 1.0
Requires at least: 5.9
Tested up to: 6.0
Requires PHP: 8.0
Text Domain: udemy
*/

/* ============================================================
  HEADER LAYOUT: Classic Solo - Navigation Display by Screen Size
============================================================ */
.classic-header {
  justify-content: space-around;
}

.wp-block-navigation {
  font-weight: 400;
  font-size: 20px;
  gap: 1.5em;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none !important;
}

/* ============================================================
  STICKY HEADER BEHAVIOR
============================================================ */
header.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

/* Sticky on scroll (solid background + shadow) */
body.scrolled header.sticky-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ============================================================
  OVERLAY HAMBURGER MENU (FULLSCREEN MOBILE NAV)
============================================================ */

/* Ensure overlay nav is above sticky header */
.wp-block-navigation__responsive-container {
  position: fixed !important;
  top: 0 !important;
  left: 0;
  width: 100%;
  height: 100vh !important;
  overflow-y: auto;
  z-index: 99999;
  background-color: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Prevent background scroll when overlay menu is open */
body.has-navigation-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

/* Inside the overlay menu */
.wp-block-navigation__responsive-container ul {
  list-style: none;
  padding: 20px !important;
  margin: 0;
  padding-bottom: 1rem;
}

.wp-block-navigation__responsive-container .wp-block-navigation-item a {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 400;
  color: #036837; /* Brand green */
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: all 0.2s ease-in-out;
}

.wp-block-navigation__responsive-container .wp-block-navigation-item a:hover {
  color: var(--global-palette1); /* Gold accent */
  background: #f9f9f9;
}

/* ============================================================
  RESPONSIVE STYLES (Mobile First Adjustments)
============================================================ */
@media (max-width: 768px) {

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
    align-items: center;
  }

  .site-logo img {
    max-width: 160px !important;
  }

  /* Hamburger Button */
  .wp-block-navigation.mobile-hamburger button {
    background: var(--global-palette1);
    color: var(--global-palette9);
    border: none;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }

  .wp-block-navigation.mobile-hamburger svg {
    width: 20px;
    height: 20px;
  }

  /* Mobile CTA inside menu */
  .menu-cta .wp-block-button__link {
    width: 100%;
    text-align: center;
    font-weight: bold;
  }
}

/* ============================================================
  HIDE HAMBURGER MENU ON DESKTOP
============================================================ */
@media (min-width: 769px) {
  /* Hide hamburger nav and overlay container on desktop */
  .wp-block-navigation.mobile-hamburger,
  .wp-block-navigation__responsive-container {
    display: none !important;
  }

  /* Show desktop menu container */
  .desktop-only {
    display: flex !important;
  }

  /* Reset body scroll lock on desktop */
  body.has-navigation-open {
    overflow: auto !important;
    position: static !important;
    width: auto !important;
  }
}

/* ============================================================
  FOOTER STYLES
============================================================ */
.classic-footer {
  background: var(--global-palette3);
  padding-bottom: 20px !important;
  }
.mwp-copyright-p {
	color: var(--global-palette9);
}

 /* ============================================================
  RESPONSIVE STYLES (Mobile First Adjustments)
============================================================ */
/* Responsive padding fix for footer container on small screens */
@media (max-width: 768px) {
  .footer-res {
    padding-left: 20px !important;
    padding-right: 20px !important;
    
  }
}

/* ============================================================
  REAL ESTATE POST CARD STYLES
============================================================ */
.real-estate-post-card a {
  text-decoration: none;
  color: #036837;
}
.real-estate-post-card a:hover {
  color: #D4AF37;
}
.real-estate-post-card .wp-block-post-excerpt {
  font-size: 15px;
  color: #444;
}

/*=============================================================
  whatsapp floating button
=============================================================*/
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float img {
  width: 30px;
  height: 30px;
}
/* Show on new tab button */
a.whatsapp-btn {
  target: _blank;
}

/* =========================
   Property Grid Container
========================= */
.property-grid .wp-block-post-template {
  display: grid; /* enable grid layout */
  grid-template-columns: repeat(3, 1fr); /* 3 columns */
  gap: 30px; /* spacing between cards */
  padding: 0;
  margin: 0;
  list-style: none;
}

/* =========================
   Individual Property Card
========================= */
.property-grid .wp-block-post {
  background: var(--global-palette7);
  border-radius: 5px;
  box-shadow: 0 4px 10px var(--global-palette7);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 0; /* padding handled inside content */
}

.property-grid .wp-block-post:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px var(--global-palette8);
}

/* =========================
   Featured Image
========================= */
.property-grid .wp-block-post img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.property-grid .wp-block-post:hover img {
  transform: scale(1.05);
}

/* =========================
   Card Content
========================= */
.property-grid .wp-block-post h2.wp-block-post-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--global-palette3);
  margin: 15px 15px 5px 15px;
}

.property-grid .wp-block-post .property-meta {
  list-style: none;
  margin: 0 15px 15px 15px;
  padding: 0;
}

.property-grid .wp-block-post .property-meta li {
  font-size: 0.9rem;
  color: var(--global-palette1);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--global-palette1);
  padding-bottom: 4px;
}

.property-grid .wp-block-post .property-meta strong {
  color: var(--global-palette1);
  font-weight: 600;
}

.property-grid .wp-block-post .property-meta .price {
  color: #e63946;
  font-weight: 700;
}

/* =========================
   Buttons
========================= */
.property-grid .wp-block-post .property-btn {
  display: inline-block;
  margin: 0 15px 15px 15px;
  background: #0077B6;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.property-grid .wp-block-post .property-btn:hover {
  background: var(--global-palette1);
}

/* =========================
   Responsive Grid
========================= */
@media (max-width: 1024px) {
  .property-grid .wp-block-post-template {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .property-grid .wp-block-post-template {
    grid-template-columns: 1fr;
  }
  
  .property-grid .wp-block-post img {
    height: 320px;
  }
}



