/* =========================
   FLOATING ACTION BUTTONS
   ========================= */

.global-dashboard-btn,
.global-support-btn,
.global-logout-btn {

    position: fixed;
    right: 20px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50px;

    overflow: hidden;

    z-index: 99999;

    transition: all 0.28s ease;

    box-shadow: 0 4px 10px rgba(0,0,0,0.15);

    color: #fff;
    text-decoration: none;

    white-space: nowrap;

    gap: 10px;
}

/* POSITION + COLORS */

.global-dashboard-btn {
    bottom: 148px;
    background: #2271b1;
}

.global-support-btn {
    bottom: 84px;
    background: #25d366;
}

.global-logout-btn {
    bottom: 20px;
    background: #ff4d4f;
}

/* HOVER EXPAND */

.global-dashboard-btn:hover,
.global-support-btn:hover,
.global-logout-btn:hover {

    width: 170px;

    justify-content: flex-start;

    padding-left: 16px;
}

/* ICONS */

.global-dashboard-btn::before {
    content: "🏠";
    min-width: 22px;
}

.global-support-btn::before {
    content: "💬";
    min-width: 22px;
}

.global-logout-btn::before {
    content: "🚪";
    min-width: 22px;
}

/* MOBILE */

@media (max-width: 768px) {

    .global-dashboard-btn,
    .global-support-btn,
    .global-logout-btn {

        width: 48px;
        height: 48px;
        right: 12px;
    }

    .global-dashboard-btn:hover,
    .global-support-btn:hover,
    .global-logout-btn:hover {

        width: 150px;
    }
}

.rp-btn {
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #ddd;
}

.rp-btn.danger {
    background: #e53935;
    color: #fff;
}

.rp-modal {
    position: fixed; /* 👈 critical */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

.rp-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rp-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.rp-modal-box {
  position: relative;
  background: #111;
  color: #fff;
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;   /* ✅ scroll inside modal */
  border-radius: 10px;
  padding: 20px;
}
.rp-modal-box h2 {
    color: #fff;
	margin-bottom: 12px;
}	

.rp-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #fff;
}

.rp-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 15px;
}


.rp-modal.view .rp-modal-box {
    max-width: 600px;
}

.rp-modal.edit .rp-modal-box {
    max-width: 700px;
}

.rp-modal.enquiry .rp-modal-box {
    max-width: 500px;
}

.rp-modal.system .rp-modal-box {
    max-width: 400px;
    text-align: center;
}

.rp-actions {
    display: flex;
    gap: 10px; /* spacing */
}

.rp-actions button {
    flex: 1; /* equal width */
    padding: 8px 12px;
    cursor: pointer;
}

.rp-actions button:first-child {
    background: #eee;
}

.rp-actions button:last-child {
    background: #0073aa;
    color: white;
}

.rp-chat-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}

.rp-chat-card.unread {
    border-left: 4px solid #0073aa;
    background: #f5faff;
}

.rp-chat-message {
    margin-bottom: 6px;
}

#rp-enquiry-modal {
    position: fixed; /* 👈 THIS IS KEY */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: none;
    align-items: center;
    justify-content: center;

    background: rgba(0,0,0,0.5);
    z-index: 9999;
}

#rp-enquiry-modal .rp-modal-box {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
}

#rp-system-modal button:not(.rp-ok-btn) {
    display: none;
}

.rp-ok-btn {
    background: #6c3cff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
}

.rp-ok-btn:hover {
    background: #5a2fd6;
}

.rp-view-btn {
    color: #000;
}
.rp-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;   /* 🔥 moves to top-right */
    
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.rp-modal-close:hover {
    opacity: 0.7;
}
/* Fix invisible page titles */
.entry-title,
h1.wp-block-post-title {
    color: #222 !important;  /* or your theme text color */
}
.entry-title,
.page-title,
h1 {
    color: inherit;
}
.rp-btn {
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
}
.rp-btn-primary {
    background: #007bff;
    color: #fff;
}

.rp-btn.rp-primary {
    background-color: #007bff;
    color: #fff;
}

.rp-btn.rp-secondary {
    background-color: #e0e0e0;
    color: #333;
}
/* Primary action (Login) */
.rp-login-btn {
    background-color: #007bff;   /* blue */
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

/* Hover effect */
.rp-login-btn:hover {
    background-color: #0056b3;
}
.rp-btn-primary:hover {
    background: #0056b3;
}

/* FORCE FLOATING BUTTON TEXT WHITE */
.global-dashboard-btn,
.global-support-btn,
.global-logout-btn,
.global-dashboard-btn:hover,
.global-support-btn:hover,
.global-logout-btn:hover,
.global-dashboard-btn:focus,
.global-support-btn:focus,
.global-logout-btn:focus {
    color: #fff !important;
    text-decoration: none !important;
}

/* Force inner text white too */
.global-dashboard-btn *,
.global-support-btn *,
.global-logout-btn *,
.global-dashboard-btn:hover *,
.global-support-btn:hover *,
.global-logout-btn:hover * {
    color: #fff !important;
}
/* =========================
   GLOBAL FOOTERS
   ========================= */

.public_footer,
.private_footer {
    width: 100%;
    margin-top: 40px;
    padding: 24px 20px;

    font-size: 13px;
    line-height: 1.5;

    border-top: 1px solid #e5e7eb;
}

/* =========================
   PUBLIC FOOTER
   ========================= */

.public_footer {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;

    background: #f8fafc;
    color: #555;
}

/* Columns */
.public_footer > div {
    min-width: 180px;
    flex: 1;
}

/* Section headings */
.public_footer p:first-child {
    font-weight: 600;
    color: #111827;
    margin-bottom: 10px;
}

/* Normal text */
.public_footer p {
    margin: 4px 0;
}

/* Links */
.public_footer a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.public_footer a:hover {
    color: #2271b1;
}

/* Legal block */
.public_footer .legal {
    max-width: 300px;
    color: #666;
}

/* =========================
   PRIVATE FOOTER
   ========================= */

.private_footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;

    background: #fff;
    color: #777;

    font-size: 12px;
}

/* Private footer links */
.private_footer a {
    color: #666;
    text-decoration: none;
}

.private_footer a:hover {
    color: #111827;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .public_footer {
        flex-direction: column;
        gap: 20px;
    }

    .private_footer {
        flex-wrap: wrap;
        gap: 10px;
        text-align: center;
    }
}
/* =========================
   MODAL TITLE STYLING
========================= */
#rp-modal .rp-modal-header h3 {
    color: #3b82f6; /* bright blue (Tailwind blue-500 style) */
    font-weight: 600;
    margin-bottom: 12px; /* spacing below title */
}

/* =========================
   MODAL CONTENT SPACING
========================= */
#rp-modal .rp-modal-content {
    margin-top: 8px; /* gap between header and content */
    line-height: 1.5;
}

/* =========================
   TEXT INSIDE MODAL
========================= */
#rp-modal .rp-modal-content p {
    margin-bottom: 12px;
}

/* =========================
   BUTTON GROUP SPACING
========================= */
#rp-modal .rp-modal-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

/* =========================
   OPTIONAL: LOADING STATE CENTER
========================= */
#rp-modal.view .rp-modal-content,
#rp-modal.system .rp-modal-content {
    padding-top: 4px;
}
#rp-modal .rp-modal-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 10px;
    margin-bottom: 10px;
}
/* Loading text */
#rp-modal .rp-loading {
    color: #3b82f6; /* same bright blue */
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px 0;
}
/* Modal Title (Login required / Listing Details) */
.rp-modal-header h3 {
    color: #4da3ff !important;
    font-weight: 600;
    margin-bottom: 14px; /* spacing fix */
}

/* Modal content spacing */
.rp-modal-content {
    margin-top: 10px;
}

/* Loading text */
.rp-modal-loading {
    color: #4da3ff !important;
    font-weight: 600;
    text-align: center;
    margin: 10px 0;
    opacity: 1 !important;
}

/* Fix inherited dimming */
.rp-modal-content h3,
.rp-modal-content * {
    opacity: 1;
}
/* Desktop */
.rp-burger-wrapper {
    display: none;
}

/* Mobile */
@media (max-width: 768px) {
	 body.home .site-content,
    body.home .entry-content,
    body.home .ast-container {
        padding-top: 120px;
    }
    .global-dashboard-btn,
    .global-support-btn,
    .global-logout-btn {
        display: none;
    }

    .rp-burger-wrapper {
        display: block;
    }
	.rp-burger-wrapper {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 99999;
}

#rp-burger-btn {
    font-size: 28px;
	color: #0628;
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
}

#rp-mobile-menu-dropdown {
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
      padding-top: 60px;
    z-index: 99998;
}

#rp-mobile-menu-dropdown a {
    display: block;
    width: 100%;
    padding: 18px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    text-decoration: none;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
}

#rp-mobile-menu-dropdown a:hover {
    background: #f5f5f5;
}
}
.ast-mobile-menu-trigger-minimal,
.main-header-menu-toggle,
.menu-toggle.main-header-menu-toggle {
    display: none !important;
}