/*
Theme Name: Property Market
Theme URI: https://propertymarket.online
Author: Mike
Description: Custom real estate theme with inbuilt marketplace features.
Version: 1.0
License: GPLv2 or later
Text Domain: propertymarket
*/

/*Mike - Reset and Base Styles*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #ff6600; /* Orange */
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/*Mike - Marketplace Grid*/
.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.pm-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

.pm-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pm-card h3 {
  margin: 15px;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.pm-card p {
  margin: 0 15px 10px;
  font-weight: bold;
  font-size: 16px;
  color: #ff6600;
}

.pm-btn {
  margin: 15px;
  padding: 12px;
  background: #ff6600;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s ease;
}

.pm-btn:hover {
  background: #e65c00;
}



/*Mike - Jiji.ng style Marketplace*/
.pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.pm-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.pm-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.pm-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.pm-card h3 {
  font-size: 16px;
  margin: 10px;
  color: #333;
}
.pm-card p {
  margin: 0 10px 10px;
  font-size: 15px;
  font-weight: bold;
  color: #ff6600;
}
.pm-btn {
  display: block;
  margin: 10px;
  padding: 10px;
  background: #ff6600;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  font-size: 14px;
}
.pm-btn:hover {
  background: #e65c00;
}




/*Mike - Single Property Page*/
.pm-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.pm-single-img img {
  width: 100%;
  border-radius: 8px;
}
.pm-single-content h1 {
  margin-bottom: 15px;
}
.pm-single-meta p {
  margin: 5px 0;
  font-size: 15px;
  color: #444;
}
.pm-single-desc {
  margin: 20px 0;
}
@media(max-width:768px) {
  .pm-single {
    grid-template-columns: 1fr;
  }
}

/*Mike - Prevent stretching on Single Property thumbnails & gallery */
.single-property .property-thumbnail img,
.single-property .property-gallery img {
    width: auto;           /* Keep natural width */
    height: auto;          /* Keep natural height */
    max-width: 100%;       /* Scale down if too large */
    max-height: 500px;     /* Limit overly tall images */
    object-fit: contain;   /* Keep full image visible */
    border-radius: 8px;    /* Slight rounded edges for neat look */
    display: block;
    margin: 0 auto;        /* Center align images */
}



/*Mike - Submit Property Form*/
.pm-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.pm-form label {
  font-weight: bold;
  margin-bottom: 5px;
}
.pm-form input, 
.pm-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 15px;
}
.pm-form button {
  padding: 12px;
  border: none;
  cursor: pointer;
}





/*Mike - Professional Property Form*/
.pm-form {
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pm-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.pm-form label {
  font-weight: bold;
  margin-bottom: 6px;
  color: #333;
}

.pm-form input,
.pm-form textarea,
.pm-form select {
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
}

.pm-form input:focus,
.pm-form textarea:focus,
.pm-form select:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 4px rgba(255,102,0,0.4);
}

.pm-form button {
  width: 100%;
  padding: 14px;
  background: #ff6600;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.pm-form button:hover {
  background: #e65c00;
}




/* Mike – Submit Property (white/orange, Jiji-like) */
.pm-form{max-width:800px;margin:40px auto;background:#fff;padding:30px 40px;border-radius:12px;box-shadow:0 4px 16px rgba(0,0,0,.08);font-family:Segoe UI,Roboto,Arial,sans-serif}
.pm-form h1,.pm-form h2{margin-bottom:20px;text-align:center;color:#ff6600;font-weight:700}
.pm-form-group{margin-bottom:18px}
.pm-form-group label{display:block;margin-bottom:8px;font-weight:600;color:#444}
.pm-form-group input,.pm-form-group select,.pm-form-group textarea{width:100%;padding:12px 14px;border:1px solid #ddd;border-radius:8px;font-size:.95rem;outline:none;transition:border .2s}
.pm-form-group input:focus,.pm-form-group select:focus,.pm-form-group textarea:focus{border-color:#ff6600;box-shadow:0 0 0 2px rgba(255,102,0,.15)}
.pm-form-group textarea{min-height:120px;resize:vertical}

/* File inputs */
.pm-form-group input[type="file"]{border:2px dashed #ff6600;background:#fffaf5;cursor:pointer;padding:26px;text-align:center;color:#ff6600;font-weight:600}
.pm-form-group input[type="file"]:hover{background:#fff3e5}

/* Image previews */
#thumb-preview img,#gallery-preview img{border-radius:8px;border:1px solid #ddd;margin-right:10px;margin-bottom:10px;width:120px;height:90px;object-fit:cover;transition:transform .2s,border-color .2s}
#thumb-preview img:hover,#gallery-preview img:hover{transform:scale(1.05);border-color:#ff6600}
#thumb-preview progress,#gallery-preview progress{display:block;width:120px;height:8px;border:none;margin-top:6px}

/* Submit button */
.pm-btn{width:100%;background:#ff6600;color:#fff;padding:14px;font-size:1rem;font-weight:700;border:none;border-radius:8px;cursor:pointer;transition:background .2s}
.pm-btn:hover{background:#e65c00}

/* Mobile */
@media(max-width:600px){.pm-form{padding:20px}}





/*Mike - Image preview styling*/
.pm-image-wrapper {
  display: inline-block;
  margin: 10px;
  position: relative;
}
.pm-image-preview {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #f97316; /* orange */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.pm-progress {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 5px;
}
.pm-progress-bar {
  height: 100%;
  width: 0;
  background: #f97316;
  transition: width 0.3s ease;
}



/*Mike - Marketplace Filters Styling 🌟*/
.pm-filters-wrapper {
    width: 100%;
    padding: 15px 20px;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.pm-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
}

.pm-filter-select, .pm-filter-input {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    min-width: 150px;
}

.pm-filter-input {
    flex: 1; /* takes remaining space */
}

.pm-filter-btn {
    background-color: #28a745;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.pm-filter-btn:hover {
    background-color: #218838;
}

/*Mobile responsiveness📱*/
@media(max-width: 768px) {
    .pm-filters {
        flex-direction: column;
        gap: 10px;
    }
}






/*Mike - Promoted Listings Carousel Styling 🌟*/
.pm-promoted-carousel {
    margin-bottom: 25px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    background: #fff;
    padding: 10px 0;
}

.pm-carousel-inner {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0 15px;
}

.pm-carousel-item {
    min-width: 250px;
    flex: 0 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0,0,0,0.1);
    background: #f8f8f8;
    cursor: pointer;
    transition: transform 0.3s;
}

.pm-carousel-item:hover {
    transform: scale(1.05);
}

.pm-carousel-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.pm-carousel-details {
    padding: 10px;
    font-size: 14px;
    text-align: center;
}





/*Mike - Property Card Styling 🌟*/
.pm-property-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    background: #fff;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.pm-property-card:hover {
    transform: scale(1.02);
}

.pm-card-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.pm-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pm-card-details {
    padding: 12px 15px;
    text-align: left;
}

.pm-card-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}

.pm-card-price, .pm-card-location {
    font-size: 14px;
    margin-bottom: 4px;
    color: #555;
}

.pm-chat-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    background: #25D366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.pm-chat-btn:hover {
    background: #1DA851;
}

/*Mobile responsiveness📱*/
@media(max-width:768px) {
    .pm-property-card {
        flex-direction: column;
    }
}



.pm-sidebar { width: 300px; float: right; margin-left: 20px; }
.pm-widget { margin-bottom: 30px; background: #f9f9f9; padding: 15px; border-radius: 8px; }
.pm-widget h3 { margin-bottom: 15px; color: #ff6600; }
.pm-card-small { margin-bottom: 10px; }
.pm-card-small img { width: 100%; border-radius: 6px; }
.pm-card-small h4 { margin: 5px 0; font-size: 14px; }
.pm-card-small p { font-size: 13px; margin: 2px 0; }
.pm-chat-btn { display:inline-block; margin-top:5px; background:#25D366; color:#fff; padding:5px 8px; border-radius:5px; text-decoration:none; font-size:13px; }
@media(max-width:768px){ .pm-sidebar{ width:100%; float:none; margin:0 0 20px 0; } }






/*Mike - Single Property Layout Flex*/
.pm-main-content {
  margin-bottom: 20px;
}

.pm-sidebar {
  margin-bottom: 20px;
}

.pm-widget {
  margin-bottom: 30px;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}

.pm-card-small img {
  width: 100%;
  border-radius: 6px;
}

.pm-card-small h4 {
  margin: 5px 0;
  font-size: 14px;
}

.pm-card-small p {
  font-size: 13px;
  margin: 2px 0;
}

.pm-chat-btn {
  display:inline-block;
  margin-top:5px;
  background:#25D366;
  color:#fff;
  padding:5px 8px;
  border-radius:5px;
  text-decoration:none;
  font-size:13px;
}

/* Responsive */
@media(max-width:768px){
  .container {
    flex-direction: column !important;
  }
  .pm-main-content, .pm-sidebar {
    flex:1 1 100%;
    min-width:100% !important;
  }
  .pm-single-gallery img {
    width:45% !important;
  }
}




/* Mike - Forgot Password Modal Styling */
.pm-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
}

.pm-modal-card {
  background: #fff;
  border-radius: 16px;
  padding: 25px;
  width: 350px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
  border-top: 6px solid orange;
}

.pm-modal-header h2 {
  color: orange;
  margin-bottom: 5px;
}

.pm-subtext {
  font-size: 14px;
  color: #555;
}

.pm-modal-body label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.pm-modal-body input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
  outline: none;
}

.pm-btn-primary {
  background: orange;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  font-size: 15px;
}

.pm-btn-primary:hover {
  background: #e69500;
}

.pm-close {
  float: right;
  font-size: 20px;
  cursor: pointer;
  color: #888;
}

.pm-close:hover {
  color: red;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}





/* Mike - Header & Footer Menu */
.pm-header-container, .pm-footer-container {
    max-width:1200px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:10px 20px;
}

.pm-main-menu ul, .pm-footer-nav {
    list-style:none;
    display:flex;
    gap:20px;
    margin:0;
    padding:0;
}

.pm-main-menu ul li a, .pm-footer-nav li a {
    text-decoration:none;
    color:#fff;
    font-weight:500;
    transition:0.3s;
}

.pm-main-menu ul li a:hover, .pm-footer-nav li a:hover {
    color:#ff6600;
}

/* Search Box Styling */
#pm-search-box, #pm-footer-search-box {
    max-width:1200px;
    margin:auto;
}

/* Responsive */
@media(max-width:768px){
    .pm-header-container, .pm-footer-container { flex-direction:column; gap:10px; text-align:center; }
    .pm-main-menu ul, .pm-footer-nav { flex-direction:column; gap:10px; }
}


/*Mike - Carousel Styling*/
.pm-carousel {
  position: relative;
  max-width: 90%;
  margin: 20px auto;
  overflow: hidden;
}
.pm-slide img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.pm-carousel .slick-dots { display: none !important; } /* Remove dots */



/*Mike - Responsive Fixes*/
body {
  overflow-x: hidden;
}
.pm-menu, .pm-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
@media(max-width:768px){
  .pm-nav { text-align: center; }
  .pm-menu { flex-direction: column; }
  .pm-logo img { max-width: 150px; height:auto; }
}





/*Mike - Header Menu Styling*/
.pm-nav .pm-menu {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-nav .pm-menu li {
  display: inline-block;
}

.pm-nav .pm-menu a {
  text-decoration: none;
  color: #ff6600; /* Orange */
  font-weight: 600;
  padding: 8px 12px;
}

/*Mike - Footer Menu Styling*/
.pm-footer-nav .pm-footer-menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.pm-footer-nav .pm-footer-menu li {
  display: inline-block;
}

.pm-footer-nav .pm-footer-menu a {
  text-decoration: none;
  color: #fff; /* White text in footer */
  font-weight: 500;
  padding: 5px 10px;
}

/*Mike - Mobile Adjustments*/
@media(max-width: 768px){
  .pm-nav {
    display: none; /* Hide header menu on mobile */
  }
  .pm-footer-nav {
    display: block; /* Show footer menu on mobile */
  }
}




/* ================================
   Mike - Responsiveness & Sticky Footer Menu
   ================================ */

/* Desktop: keep menu items in one straight line */
header .menu,
.navbar .menu {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px; /* spacing between items */
}

header .menu li,
.navbar .menu li {
  display: inline-block;
  white-space: nowrap;
}

/* Mobile view: sticky footer menu */
@media (max-width: 768px) {
  header .menu,
  .navbar .menu {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff; /* white background */
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    z-index: 9999;

    /* Sticky effect */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
  }

  header .menu li a,
  .navbar .menu li a {
    font-size: 14px;
    padding: 8px;
    display: block;
    text-align: center;
  }

  /* Ensure logo scales properly */
  header .site-logo img {
    max-width: 120px;
    height: auto;
  }

  /* Carousel scaling fix */
  .swiper-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
  }
}





/* 🌐 Blog Page Layout */
.pm-blog-container {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}
.pm-blog-title {
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
}
.pm-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.pm-blog-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.pm-blog-thumb {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}
.pm-blog-card-title {
  font-size: 20px;
  margin: 10px 0;
}

/* 📝 Single Blog Post */
.pm-single-container {
  max-width: 900px;
  margin: auto;
  padding: 20px;
}
.pm-single-title {
  font-size: 32px;
  margin-bottom: 10px;
}
.pm-single-meta {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}
.pm-single-thumb img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 20px;
}
.pm-related-posts {
  margin-top: 40px;
  padding: 20px;
  background: #f8f8f8;
  border-radius: 10px;
}
.pm-related-posts h2 {
  margin-bottom: 15px;
}
.pm-related-posts ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
}
.pm-related-posts li {
  flex: 1;
  text-align: center;
}
.pm-related-posts img {
  border-radius: 8px;
  display: block;
  margin: auto;
}



/* 📌 Single Blog Layout */
.pm-single-wrapper {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Main Content */
.pm-single-main {
  flex: 3;
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.pm-single-title {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.pm-single-meta {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.pm-single-thumb img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
}

.pm-single-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

/* 📌 Read Also Section */
.pm-read-also {
  margin-top: 40px;
  padding: 20px;
  background: #fff7e6;
  border-left: 4px solid #ff6600;
  border-radius: 6px;
}

.pm-read-also h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ff6600;
}

/* 📌 Sidebar */
.pm-single-sidebar {
  flex: 1;
  background: #fafafa;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: fit-content;
}

.pm-related-posts h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: #333;
}

.pm-related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pm-related-posts li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.pm-related-posts li img {
  width: 60px;
  height: 60px;
  border-radius: 6px;
  object-fit: cover;
}

.pm-related-posts li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  font-weight: 500;
}

.pm-related-posts li a:hover {
  color: #ff6600;
}

/* 📱 Mobile */
@media (max-width: 768px) {
  .pm-single-wrapper {
    flex-direction: column;
  }
  .pm-single-sidebar {
    margin-top: 25px;
  }
}




/* === Single Post Page Styling === */
.pm-single-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.pm-single-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ff6600; /* Orange */
  margin-bottom: 10px;
  text-align: center;
}

.pm-single-meta {
  font-size: 0.9rem;
  color: #888;
  text-align: center;
  margin-bottom: 20px;
}

.pm-single-thumb img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.pm-single-content {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #333;
}

/* === Related Posts === */
.pm-related-posts {
  margin-top: 40px;
  padding: 20px;
  background: #fff5f0; /* light orange tint */
  border-radius: 10px;
}

.pm-related-posts h2 {
  font-size: 1.5rem;
  color: #ff6600;
  margin-bottom: 15px;
}

.pm-related-posts ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.pm-related-posts li {
  background: #fff;
  border: 1px solid #f1f1f1;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease-in-out;
}

.pm-related-posts li:hover {
  transform: translateY(-4px);
  border-color: #ff6600;
}

.pm-related-posts a {
  color: #333;
  text-decoration: none;
  font-weight: 600;
  display: block;
  text-align: center;
}

.pm-related-posts a:hover {
  color: #ff6600;
}

.pm-related-posts img {
  display: block;
  margin: 0 auto 10px;
  border-radius: 6px;
}

/* 📱 Responsive */
@media (max-width: 768px) {
  .pm-single-title {
    font-size: 1.8rem;
  }
  .pm-single-content {
    font-size: 1rem;
  }
}



/* ✅ Responsive Logo Styling - Mike */
.pm-logo img {
  max-width: 200px;  /* desktop size */
  height: auto;
}

@media (max-width: 768px) {
  .pm-logo img {
    max-width: 120px;  /* smaller logo on tablets & mobile */
  }
}

@media (max-width: 480px) {
  .pm-logo img {
    max-width: 90px;   /* very small phones */
  }
}



/* ✅ Ensure the site fits mobile screen - Mike */
html, body {
  max-width: 100%;
  overflow-x: hidden; /* prevent horizontal scroll */
}

/* Containers should not overflow */
.pm-container, .content, .site-content, .entry-content {
  max-width: 100%;
  padding: 0 15px; /* breathing room */
  box-sizing: border-box;
}

/* ✅ Hide top navigation on mobile - Mike */
@media (max-width: 768px) {
  .site-header,
  .main-navigation {
    display: none !important;
  }
}


/* ✅ Sticky Mobile Bottom Menu - Mike */
.pm-mobile-menu {
  display: none; /* hidden on desktop */
}

@media (max-width: 768px) {
  .pm-mobile-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #28a745; /* green theme like Jiji */
    color: white;
    padding: 8px 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    z-index: 9999;
  }

  .pm-mobile-menu a {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: white;
    text-decoration: none;
  }

  .pm-mobile-menu a:hover {
    opacity: 0.8;
  }
}


/* Mike - Header Styling */
header.pm-header {
  background: #ff6600; /* orange */
  color: #fff;
}
header.pm-header .menu a {
  color: #fff;
  padding: 15px 20px;
  font-weight: 600;
  text-transform: uppercase;
}
header.pm-header .menu a:hover {
  background: #fff;
  color: #ff6600;
}


/*Mike - Advanced Search Form Styling */
.pm-search-form {
    background: #fff; /* clean background */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px auto;
    max-width: 1200px;
}

.pm-search-form select,
.pm-search-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.pm-search-form select:focus,
.pm-search-form input:focus {
    border-color: #7d482e; /* green highlight */
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(46,125,50,0.15);
}

.pm-search-form button {
    grid-column: span 2;
    padding: 12px;
    background: #2e7d32;
    color: #fff;
    font-weight: bold;
    font-size: 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pm-search-form button:hover {
    background: #256d27;
}

@media (max-width: 768px) {
    .pm-search-form {
        grid-template-columns: 1fr; /* stack fields on mobile */
    }

    .pm-search-form button {
        grid-column: span 1;
    }
}




/* Mike - Header Styling */
header.pm-header {
  background: #ff6600; /* orange */
  color: #fff;
}
header.pm-header .menu a {
  color: #fff;
  padding: 15px 20px;
  font-weight: 600;
  text-transform: uppercase;
}
header.pm-header .menu a:hover {
  background: #fff;
  color: #ff6600;
}




/* Mike - Hero Section Styling */
.pm-hero-search {
  background: url('/path/to/your/city-bg.jpg') center/cover no-repeat;
  position: relative;
  padding: 80px 20px;
  color: #fff;
  text-align: center;
}

.pm-hero-overlay {
  background: rgba(0,0,0,0.55);
  padding: 60px 20px;
  border-radius: 20px;
}

.pm-hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.pm-hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Mike - Form Styling */
.pm-search-form {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  display: inline-block;
  max-width: 1000px;
  width: 100%;
}

.pm-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  align-items: center;
}

.pm-form-group select,
.pm-form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
}

/* Mike - Submit Button */
.pm-search-btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 12px;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pm-search-btn:hover {
  background: #e65c00;
}




/* Mike - Header Styling */
#pm-header {
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: relative;
  z-index: 1000;
}

.pm-header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pm-logo img {
  max-height: 50px;
  width: auto;
}

.pm-logo a {
  font-size: 20px;
  font-weight: bold;
  color: #ff6600;
  text-decoration: none;
}

/* Menu */
.pm-nav .pm-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pm-nav .pm-menu li a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.pm-nav .pm-menu li a:hover {
  color: #ff6600;
}

/* Mike - Space below header */
.pm-header-space {
  height: 40px; /* adjust this for more/less space */
}

/* Responsive Menu */
@media(max-width: 768px) {
  .pm-header-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .pm-nav .pm-menu {
    flex-direction: column;
    gap: 10px;
  }
}





/* Mike - Footer Styling */
#pm-footer {
  background: #222;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  border-top: 3px solid #ff6600;
}

.pm-footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.pm-footer-logo a {
  font-size: 20px;
  font-weight: bold;
  color: #ff6600;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 15px;
}

.pm-footer-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}

.pm-footer-menu li a {
  color: #ddd;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.pm-footer-menu li a:hover {
  color: #ff6600;
}

/* Mike - Sticky Mobile Footer Menu */
.pm-mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  z-index: 9999;
}

.pm-mobile-menu a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  text-align: center;
  flex: 1;
}

.pm-mobile-menu a:hover {
  color: #ff6600;
}

/* Hide sticky mobile menu on desktop */
@media(min-width: 769px) {
  .pm-mobile-menu {
    display: none;
  }
}






/* Mike - Fixed iframe size for desktop, smaller for mobile, centered */
.pm-brand-video-wrapper {
    text-align: center; /* center the video */
}

.pm-video-frame {
    width: 900px;  /* desktop width */
    height: 350px; /* desktop height */
}

@media (max-width: 1024px) {
    .pm-video-frame {
        width: 700px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .pm-video-frame {
        width: 500px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .pm-video-frame {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9; /* keeps ratio on tiny screens */
    }
}



/*Mike - Marketplace Grid 4 items per row*/
.pm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns */
    gap: 20px;
    margin: 20px 0;
}

.pm-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.pm-card-info {
    padding: 10px 5px;
    text-align: center;
}

/*Mike - Responsive adjustments*/
@media (max-width: 1200px) {
    .pm-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for smaller desktops */
    }
}

@media (max-width: 900px) {
    .pm-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets */
    }
}

@media (max-width: 600px) {
    .pm-grid {
        grid-template-columns: 1fr; /* 1 column for mobiles */
    }
}





/* Mike - Mobile Responsive Header Menu */
@media only screen and (max-width:768px) {
    .pm-header-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .pm-menu-custom {
        flex-direction: column;
        width: 100%;
    }

    .pm-menu-custom li {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    .pm-footer-menu {
        flex-direction: column;
        gap:10px;
    }
}





/* Mike - Force Horizontal Mobile Menu */
.pm-nav ul.pm-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pm-nav ul.pm-menu li {
  display: inline-block;
  margin: 0 5px;
}

.pm-nav ul.pm-menu li a {
  font-size: 14px;
  padding: 6px 10px;
  text-decoration: none;
}





/*Mike - Register Page Styling*/
.pm-register-wrapper {
  max-width: 400px;
  margin: 30px auto;
  padding: 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.pm-register-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.pm-register-form input,
.pm-register-form select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.pm-btn {
  background: orange;
  color: #fff;
  border: none;
  padding: 12px;
  margin-top: 15px;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

.pm-btn:hover {
  background: darkorange;
}




/* Mike - Prevent Thumbnail & Gallery Stretching */
.single-property .property-thumbnail img,
.single-property .property-gallery img {
    width: auto;           /* Keep natural width */
    height: auto;          /* Keep natural height */
    max-width: 100%;       /* Scale down if too large */
    max-height: 500px;     /* Limit overly tall images */
    object-fit: contain;   /* Ensure full image is visible */
    display: block;
    margin: 0 auto;        /* Center the images horizontally */
    border-radius: 8px;    /* Rounded edges for neat look */
}

/* Mike - Centralize Single Property Page */
.single-property .container,
.single-property .pm-single-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px;    /* Limit the page width */
    padding: 0 20px;      /* Add horizontal padding for breathing room */
    box-sizing: border-box;
}

/* Responsive Fix */
@media(max-width:768px) {
    .single-property .pm-single-wrapper {
        width: 100%;
        padding: 0 15px;
    }
    .single-property .property-gallery img,
    .single-property .property-thumbnail img {
        max-width: 100%;
        height: auto;
    }
}





/* Mike - Centralize Single Property Page */
.single-property .pm-single-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: 1000px; /* Page width */
    padding: 20px;     /* Add spacing around content */
    box-sizing: border-box;
    gap: 20px;         /* Space between sections */
}

/* Mike - Prevent Thumbnail & Gallery Stretching */
.single-property .property-thumbnail img,
.single-property .property-gallery img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    cursor: pointer; /* Indicate clickable images */
}

/* Mike - Gallery Wrapper */
.single-property .property-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Responsive Adjustments */
@media(max-width:768px) {
    .single-property .pm-single-wrapper {
        padding: 15px;
    }
    .single-property .property-gallery img {
        max-width: 100%;
        height: auto;
    }
}





/* Mike - Lightbox Styles */
#pm-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    background: rgba(0,0,0,0.8);
    flex-direction: column;
}

.pm-lightbox-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
}

.pm-lightbox-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    z-index: 10000;
}

.pm-lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
}





/* Mike - Promotion Popup */
.pm-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.pm-popup-content {
    background: #fff;
    padding: 20px;
    width: 400px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
}

.pm-popup-content h3 {
    margin-bottom: 15px;
    color: #333;
}

.pm-popup-content label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.pm-popup-content input,
.pm-popup-content select {
    width: 100%;
    padding: 8px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.pm-popup-content .dashboard-btn {
    width: 100%;
}

.pm-popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}




/* Mike - Logo styling */
.site-logo img {
    height: 50px; /* adjust to fit */
    width: auto;  /* keeps proportions */
    display: block;
}







/* Desktop Menu */
.pm-nav-desktop {
  display: flex;
}
.pm-menu {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.pm-menu li a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

/* Mobile Toggle */
.pm-mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Mobile Menu */
#pm-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #ddd;
}
#pm-mobile-menu.open {
  display: block;
}
.pm-menu-mobile {
  list-style: none;
  padding: 10px;
  margin: 0;
}
.pm-menu-mobile li {
  margin: 10px 0;
}
.pm-menu-mobile li a {
  display: block;
  text-decoration: none;
  color: #333;
  padding: 10px;
}

/* Responsive */
@media (max-width: 768px) {
  .pm-nav-desktop { display: none; }
  .pm-mobile-toggle { display: block; }
}







/* Mike this is for messaging

/* Mike - Chat styling */
#pm-chat-box {
  max-width: 600px;
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 500px;
}

#pm-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #f9f9f9;
}

.pm-message {
  margin: 8px 0;
  padding: 10px;
  border-radius: 8px;
  max-width: 70%;
}

.pm-message.sent {
  background: #2c7a3f;
  color: #fff;
  margin-left: auto;
}

.pm-message.received {
  background: #e5e5e5;
  color: #000;
  margin-right: auto;
}

#pm-chat-form {
  display: flex;
  border-top: 1px solid #ddd;
}

#pm-message {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}

#pm-chat-form button {
  padding: 10px 20px;
  border: none;
  background: #2c7a3f;
  color: #fff;
  cursor: pointer;
}




/* Mike - Message Seller button styling */
.pm-message-btn {
  display: inline-block;
  background: #2c7a3f;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  transition: background 0.3s ease;
}

.pm-message-btn:hover {
  background: #1e572a;
}



/* Mike - Notification badge */
.pm-badge {
  background: red;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
}





/* Mike - Chat layout */
.pm-chat-shell { max-width: 780px; margin: 30px auto; padding: 0 15px; }
.pm-chat-main { border: 1px solid #ddd; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; height: 520px; background:#fff; }
#pm-messages { flex:1; overflow-y:auto; padding:16px; background:#f9f9f9; }
.pm-message { margin:8px 0; padding:10px 12px; border-radius:10px; max-width:72%; }
.pm-message.sent { background:#2c7a3f; color:#fff; margin-left:auto; }
.pm-message.received { background:#e9ecef; color:#000; margin-right:auto; }
#pm-chat-form { display:flex; border-top:1px solid #ddd; gap:10px; padding:10px; background:#fff; }
#pm-message { flex:1; border:1px solid #ddd; border-radius:8px; padding:10px; resize:none; min-height:44px; }
#pm-chat-form button { border:none; border-radius:8px; padding:0 18px; background:#2c7a3f; color:#fff; font-weight:700; cursor:pointer; }
.pm-chat-hint { padding:16px; color:#666; }





