/* ---- from legacy footer.php, lines 230-709 ---- */
.modern-footer {
    background: linear-gradient(180deg, #1c2535 0%, #141c2b 100%);
    color: #fff;
    font-family: 'Arial', sans-serif;
    border-top: 3px solid #C89A3C;
    border-radius: 20px 20px 0 0;
    margin-top: 8px;
    overflow: hidden;
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-widget {
    padding-right: 15px;
}

.footer-about {
    margin-bottom: 30px;
}

.footer-logo h3 {
    margin-bottom: 5px;
    font-size: 24px;
}

/* Remove inherited white lines */
.footer-about,
.footer-logo {
    border-top: none !important;
    border-bottom: none !important;
}
.footer-about hr,
.footer-logo hr,
.modern-footer .footer-top hr {
    display: none !important;
}

/* Brand card */
.footer-brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(42,181,176,0.12), rgba(255,255,255,0.05));
    border: 1.5px solid rgba(42,181,176,0.35);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
    box-shadow: 0 4px 20px rgba(42,181,176,0.10), inset 0 1px 0 rgba(255,255,255,0.07);
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
}
.footer-brand-card:hover {
    border-color: rgba(42,181,176,0.75);
    box-shadow: 0 6px 28px rgba(42,181,176,0.22);
    transform: translateY(-2px);
    text-decoration: none;
}
.footer-brand-logo-wrap img {
    height: 64px;
    width: 64px;
    object-fit: contain;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}
.footer-brand-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.footer-brand-name {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.25;
    letter-spacing: 0.2px;
}
.footer-brand-tag {
    font-size: 11px;
    color: #C89A3C;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

.footer-tagline {
    color: #C89A3C;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.footer-description {
    margin-bottom: 20px;
    line-height: 1.7;
    color: rgba(255,255,255,0.88);
    font-size: 13px;
}

.footer-contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    color: rgba(255,255,255,0.92);
    font-size: 14px;
}

.contact-item i {
    width: 20px;
    margin-right: 10px;
    color: #C89A3C;
}

.contact-item a {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
}

.contact-item a:hover {
    color: #C89A3C;
}

.footer-social h5 {
    color: #C89A3C;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: #e1306c;
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #C89A3C;
    position: relative;
}

.footer-menu {
    list-style: none;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu li a {
    color: rgba(255,255,255,0.88);
    text-decoration: none;
    display: flex;
    align-items: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-menu li a i {
    margin-right: 8px;
    color: #ff4f6a;
    font-size: 11px;
}

.footer-menu li a:hover {
    color: #C89A3C;
    padding-left: 5px;
}

.featured-properties {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.footer-featured-property {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #1d2636;
    border: 1px solid rgba(0,255,200,0.15);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 16px;
    transition: 0.3s ease;
    text-decoration: none;
}

.footer-featured-property:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.footer-featured-property img {
    width: 110px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.footer-property-content {
    flex: 1;
    overflow: hidden;
}

.footer-property-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.footer-property-price {
    color: #C89A3C;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 768px) {
    .footer-featured-property {
        padding: 10px;
        gap: 10px;
    }
    .footer-featured-property img {
        width: 85px;
        height: 75px;
    }
    .footer-property-title {
        font-size: 13px;
    }
    .footer-property-price {
        font-size: 14px;
    }
}

.footer-locations-newsletter {
    background: rgba(0,0,0,0.18);
    padding: 26px 0;
    border-top: 1px solid rgba(42,181,176,0.15);
    border-bottom: 1px solid rgba(42,181,176,0.15);
}

.fln-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 0.3px;
}

.fln-heading i {
    color: #C89A3C;
    margin-right: 8px;
}

.fln-location-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fln-pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(42,181,176,0.30);
    color: rgba(255,255,255,0.85);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.fln-pill:hover {
    background: #C89A3C;
    border-color: #C89A3C;
    color: #0f1622;
    transform: translateY(-2px);
    text-decoration: none;
}

.fln-newsletter-form {
    display: flex;
    gap: 0;
    max-width: 420px;
    margin-left: auto;
}

/* Right-align pushes the form flush against the viewport edge on wide
   screens, where the fixed Call/WhatsApp buttons then sit right on top of
   the submit arrow — shift it left enough to clear them. */
@media (min-width: 992px) {
    .fln-newsletter-form { margin-right: 90px; }
}

@media (max-width: 991px) {
    .fln-newsletter-form { margin-left: 0; margin-top: 4px; }
    .footer-locations-newsletter .col-lg-5 { margin-top: 24px; }
}

.fln-newsletter-form input {
    flex: 1;
    height: 46px;
    border-radius: 30px 0 0 30px;
    border: 1.5px solid rgba(42,181,176,0.30);
    border-right: none;
    background: rgba(255,255,255,0.06);
    color: #fff;
    padding: 0 18px;
    font-size: 13.5px;
    outline: none;
}

.fln-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }

.fln-newsletter-form input:focus {
    background: rgba(255,255,255,0.10);
    border-color: #C89A3C;
}

.fln-newsletter-form button {
    width: 50px;
    height: 46px;
    border-radius: 0 30px 30px 0;
    border: none;
    background: #197003;
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s ease;
}

.fln-newsletter-form button:hover {
    background: linear-gradient(135deg, #ff4f6a, #e6193f);
}

.fln-newsletter-msg {
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    min-height: 16px;
}

.fln-msg-ok { color: #C89A3C; }
.fln-msg-err { color: #ff8080; }

.footer-bottom {
    background: rgba(0,0,0,0.25);
    padding: 20px 0;
    border-top: 1px solid rgba(42,181,176,0.20);
}

.copyright p {
    margin: 0;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    /* #back2Top is a fixed circle pinned to bottom:24px/left:26px, sitting
       right on top of this text once the page is scrolled all the way
       down — same reason .footer-bottom-links already reserves 80px on
       the right for the call/WhatsApp fab-stack. Reserve matching room
       on the left here instead of shifting the button. */
    padding-left: 80px;
}

.copyright a {
    color: #C89A3C;
    text-decoration: none;
}

.copyright a:hover {
    color: #fff;
}

.footer-bottom-links ul {
    list-style: none;
    padding: 0;
    padding-right: 80px;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-bottom-links ul li a {
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}

.footer-bottom-links ul li a:hover {
    color: #C89A3C;
}

@media (max-width: 768px) {
    /* On mobile the two footer-bottom columns stack full-width, so the
       copyright paragraph's wrapped second line runs right into the
       fixed call/WhatsApp fab-stack on the right — same reason
       .footer-bottom-links already reserves 80px there. Desktop's two-
       column layout keeps the text well clear of it, so this is scoped
       to mobile only rather than cramping the wider desktop line. */
    .copyright p {
        padding-right: 80px;
    }

    .footer-bottom-links ul {
        justify-content: center;
        margin-top: 15px;
    }
    
    .featured-properties {
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }
    
    .property-item {
        min-width: 200px;
    }
}

/* ---- from legacy footer.php, lines 711-866 ---- */
			.modal-login-modern .modal-content {
				border-radius: 20px !important;
				border: none !important;
				box-shadow: 0 24px 60px rgba(0,0,0,0.30) !important;
				overflow: hidden !important;
			}
			.modal-login-modern .modal-body { padding: 36px 32px 28px !important; }
			.modal-login-header {
				text-align: center;
				margin-bottom: 6px;
			}
			.modal-login-header .modal-brand-logo {
				width: 70px; margin-bottom: 10px;
			}
			.modal-login-header h4 {
				font-size: 22px; font-weight: 800; color: #1a2c4e; margin-bottom: 4px;
			}
			.modal-login-header p {
				font-size: 13px; color: #888; margin-bottom: 20px;
			}
			.modal-close-btn {
				position: absolute; top: 14px; right: 16px;
				background: #f4f6f9; border: none; border-radius: 50%;
				width: 32px; height: 32px; cursor: pointer;
				display: flex; align-items: center; justify-content: center;
				color: #666; font-size: 13px; transition: all 0.2s;
				z-index: 10;
			}
			.modal-close-btn:hover { background: #ff4f6a; color: #fff; }
			/* ── Modal floating label – complete rewrite ── */
			.modal-fl-wrap {
				position: relative;
				margin-bottom: 16px;
			}
			/* Override Bootstrap .form-control with !important */
			.modal-fl-wrap input,
			.modal-fl-wrap input.form-control {
				display: block !important;
				width: 100% !important;
				height: 62px !important;
				border: 1.5px solid #d1d5db !important;
				border-radius: 12px !important;
				padding: 30px 50px 10px 52px !important;
				font-size: 14px !important;
				font-weight: 500 !important;
				color: #1a2c4e !important;
				background: #f9fafb !important;
				box-shadow: none !important;
				outline: none !important;
				box-sizing: border-box !important;
				line-height: 1 !important;
				transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease !important;
				appearance: none !important;
			}
			.modal-fl-wrap input:focus,
			.modal-fl-wrap input.form-control:focus {
				border-color: #C89A3C !important;
				background: #ffffff !important;
				box-shadow: 0 0 0 3px rgba(224, 149, 95,0.15) !important;
			}
			/* Label – default: vertical centre acting as placeholder */
			.modal-fl-wrap label {
				position: absolute;
				left: 52px;
				top: 50%;
				transform: translateY(-50%);
				font-size: 14px;
				color: #9ca3af;
				pointer-events: none;
				transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease, transform 0.18s ease;
				white-space: nowrap;
				line-height: 1;
			}
			/* Label – floated: top of input, well above text */
			.modal-fl-wrap input:focus ~ label,
			.modal-fl-wrap input:not(:placeholder-shown) ~ label,
			.modal-fl-wrap input.form-control:focus ~ label,
			.modal-fl-wrap input.form-control:not(:placeholder-shown) ~ label {
				top: 9px !important;
				transform: none !important;
				font-size: 10px !important;
				font-weight: 700 !important;
				color: #C89A3C !important;
				letter-spacing: 0.4px !important;
			}
			/* Left icon */
			.modal-fl-wrap .mfl-icon {
				position: absolute;
				left: 16px;
				top: 50%;
				transform: translateY(-50%);
				color: #d1d5db;
				font-size: 15px;
				pointer-events: none;
				transition: color 0.2s;
			}
			.modal-fl-wrap input:focus ~ label ~ .mfl-icon,
			.modal-fl-wrap input.form-control:focus ~ label ~ .mfl-icon { color: #C89A3C; }
			/* Password toggle */
			.modal-fl-wrap .mfl-toggle {
				position: absolute;
				right: 14px;
				top: 50%;
				transform: translateY(-50%);
				background: none;
				border: none;
				cursor: pointer;
				color: #9ca3af;
				font-size: 14px;
				padding: 0;
				transition: color 0.2s;
				z-index: 2;
			}
			.modal-fl-wrap .mfl-toggle:hover { color: #C89A3C; }
			.modal-lg-extras {
				display: flex; justify-content: space-between;
				align-items: center; margin-bottom: 18px; font-size: 12.5px;
			}
			.modal-lg-remember { display: flex; align-items: center; gap: 6px; color: #555; cursor: pointer; }
			.modal-lg-remember input { accent-color: #197003; }
			.modal-lg-submit {
				width: 100%; height: 48px;
				background: #197003;
				color: #fff; border: none; border-radius: 12px;
				font-size: 15px; font-weight: 700; cursor: pointer;
				transition: background 0.2s ease; letter-spacing: 0.3px;
				display: flex; align-items: center; justify-content: center; gap: 7px;
				position: relative; overflow: hidden;
			}
			.modal-lg-submit:hover {
				background: linear-gradient(135deg, #135402 0%, #135402 100%);
				transform: translateY(-2px);
				box-shadow:none;
			}
			.modal-lg-submit.is-loading span { visibility: hidden; }
			.modal-lg-submit.is-loading::after {
				content: ''; position: absolute;
				width: 18px; height: 18px;
				border: 2px solid rgba(255,255,255,0.4);
				border-top-color: #fff; border-radius: 50%;
				animation: mSpin 0.7s linear infinite;
			}
			@keyframes mSpin { to { transform: rotate(360deg); } }
			.modal-lg-security {
				display: flex; align-items: center; justify-content: center;
				gap: 5px; font-size: 11.5px; color: #197003; font-weight: 600;
				margin: 12px 0 6px;
			}
			.modal-lg-footer {
				text-align: center; font-size: 12.5px; color: #888;
				margin-top: 8px;
			}
			.modal-lg-footer a { color: #197003; font-weight: 700; text-decoration: none; }
			.modal-lg-footer a:hover { text-decoration: underline; }

/* ---- from legacy footer.php, lines 869-875 ---- */
			.mlg-tabs { display:flex; background:#f4f6f9; border-radius:10px; padding:4px; margin-bottom:18px; gap:4px; }
			.mlg-tab-btn { flex:1; padding:9px 6px; font-size:12.5px; font-weight:600; border:none; border-radius:8px; background:transparent; color:#666; cursor:pointer; transition:all 0.2s; }
			.mlg-tab-btn.active { background:#fff; color:#197003; box-shadow:0 2px 8px rgba(0,0,0,0.10); }
			.mlg-pane { display:none; }
			.mlg-pane.active { display:block; }

/* ---- from legacy footer.php, lines 1163-1270 ---- */
/* ── Back-to-top: sit above fab-stack ── */
#back2Top, a.top-scroll {
  bottom: 24px !important;
  left: 26px !important;
  right: auto !important;
  z-index: 99999 !important;
  pointer-events: auto !important;
  cursor: pointer;
}

/* ── Floating Action Buttons ── */
.fab-stack {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 9999;
}

.fab-btn {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  font-size: 1.5rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.fab-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  color: #fff;
  text-decoration: none;
}

.fab-call {
  background: linear-gradient(135deg, #1565C0, #1E88E5);
}

.fab-wa {
  background: #25D366;
}

/* Pulse ring animation */
.fab-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0;
  animation: fabPulse 2.2s ease-out infinite;
}

.fab-call::before { background: rgba(30, 136, 229, 0.55); }
.fab-wa::before   { background: rgba(37, 211, 102, 0.55); }

.fab-wa::before   { animation-delay: 1.1s; }

@keyframes fabPulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* Tooltip label */
.fab-btn .fab-label {
  position: absolute;
  right: 68px;
  background: rgba(20,25,40,0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.fab-btn:hover .fab-label {
  opacity: 1;
  transform: translateX(0);
}

/* Smaller footprint on phones — at full 58px these buttons plus their pulse
   ring (which scales to 1.7x) cover a large chunk of any 2-column card grid
   scrolled underneath, since .fab-stack stays fixed to the viewport corner
   throughout the whole page. header.php's mobile override only shifts this
   stack up to clear the bottom tab bar; it doesn't shrink it. */
@media (max-width: 768px) {
  .fab-stack { right: 14px; gap: 10px; }
  .fab-btn { width: 44px; height: 44px; font-size: 1.15rem; }
}

