/*
===============================================================
  THEME DETAILS
===============================================================
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
*/

/* ============================================================
  1. HEADER LAYOUT (Classic Header)
============================================================ */
.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;
}

/* ============================================================
  2. STICKY HEADER
============================================================ */
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;
}

body.scrolled header.sticky-header {
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* ============================================================
  3. OVERLAY HAMBURGER MENU (Mobile fullscreen nav)
============================================================ */
.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: #ffffff;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

body.has-navigation-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

.wp-block-navigation__responsive-container ul {
  list-style: none;
  margin: 0;
  padding: 20px !important;
  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;
  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);
  background: #f9f9f9;
}

/* ============================================================
  4. RESPONSIVE NAV & HEADER
============================================================ */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; align-items: center; }

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

  .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;
  }

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

/* Hide hamburger on desktop */
@media (min-width: 769px) {
  .wp-block-navigation.mobile-hamburger,
  .wp-block-navigation__responsive-container {
    display: none !important;
  }

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

  body.has-navigation-open {
    overflow: auto !important;
    position: static !important;
    width: auto !important;
  }
}

/* ============================================================
  5. FOOTER
============================================================ */
.classic-footer {
  background: var(--global-palette3);
  padding-bottom: 20px !important;
}

.mwp-copyright-p {
  color: var(--global-palette9);
}

@media (max-width: 768px) {
  .footer-res {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ============================================================
  6. REAL ESTATE LISTING 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;
}

/* ============================================================
  7. WHATSAPP FLOATING BUTTON
============================================================ */
.mwp-whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  text-decoration: none;
}

.mwp-whatsapp-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  color: #fff;
  font-size: 16px;
  font-family: Arial, sans-serif;
  font-weight: 600;
  transition: all 0.18s ease;
}

.mwp-whatsapp-inner img {
  width: 28px;
  height: 28px;
  display: block;
}

.mwp-whatsapp-inner:hover {
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .mwp-whatsapp-inner {
    padding: 10px 12px;
    gap: 8px;
    font-size: 14px;
  }
  .mwp-whatsapp-inner img {
    width: 24px;
    height: 24px;
  }
}

/* ============================================================
  8. PROPERTY GRID (Archive Layout)
============================================================ */
.property-grid .wp-block-post-template {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.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;
}

.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;
}

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

/* 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;
}

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

.property-grid .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 .property-meta strong {
  font-weight: 600;
  color: var(--global-palette1);
}

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

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

.property-grid .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;
  }
}

/* ============================================================
  9. GLOBAL UI REFINEMENTS
============================================================ */
body {
  background: #F8FAFC;
  color: #111827;
  font-family: 'Poppins', sans-serif;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  color: #0a2a43;
  letter-spacing: -0.2px;
}

/* ============================================================
  10. BUTTONS (Global)
============================================================ */
button,
.wp-block-button__link,
.kb-btn {
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.wp-block-button__link,
.kb-btn.solid {
  background: linear-gradient(135deg,#0077B6 0%,#00C2C5 100%);
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(0,119,182,0.25);
}

.wp-block-button__link:hover,
.kb-btn.solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,119,182,0.35);
}

/* Outline */
.kb-btn.outline {
  border: 2px solid #0077B6;
  background: transparent;
  color: #0077B6 !important;
}
.kb-btn.outline:hover {
  background: rgba(0,194,197,0.1);
}

/* ============================================================
  11. HERO, SIDEBAR, TESTIMONIAL, FORMS, FAQ
============================================================ */
/* Hero */
.hero-section,
.kb-row-layout-id4159_4fd7a8-39 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 40px 20px;
  background-size: cover;
  background-position: center;
}

.kb-row-layout-id4159_4fd7a8-39 h1 {
  font-size: 2rem;
  color: #fff;
}

.kb-row-layout-id4159_4fd7a8-39 p {
  font-size: 1.1rem;
  color: #fff;
  max-width: 600px;
}

/* Listings compact */
.re-listing {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}

.re-listing img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.re-listing-info strong {
  color: #0073E6;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-left: 4px solid #00C2C5;
  padding: 24px;
  border-radius: 16px;
  display: flex;
  gap: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.testimonial-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

/* Forms */
input, textarea {
  border-radius: 10px;
  border: 1px solid #CBD5E1;
  padding: 10px 12px;
  transition: all 0.25s ease;
}
input:focus, textarea:focus {
  border-color: #00C2C5;
  box-shadow: 0 0 0 3px rgba(0,194,197,0.25);
}

/* FAQ */
.kt-blocks-accordion-header {
  border-radius: 12px;
}
.kt-blocks-accordion-header:hover {
  background: rgba(0,119,182,0.05);
}

/* Responsive fixes */
@media (max-width: 768px) {
  .hero-section,
  .kb-row-layout-id4159_4fd7a8-39 {
    padding: 30px 16px;
    min-height: 70vh;
  }
  .re-listing {
    flex-direction: column;
  }
}

