/*
Theme Name: Astra Child - MAK Estates
Template: astra
Description: MAK Estates custom child theme
Version: 2.1
*/

/* ===== Brand Colours (from original site) ===== */
:root {
    --mak-green: #007A53;
    --mak-green-dark: #006b49;
    --mak-green-accent: #00c787;
    --mak-green-bright: #00e098;
    --mak-crimson: #9D2235;
    --mak-dark: #333333;
    --mak-dark-input: #1a1a1a;
    --mak-light: #f5f5f5;
    --mak-white: #ffffff;
    --mak-text: #333333;
    --mak-grey-light: #e8e8e8;
}

/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Jura:wght@400;700&family=Nunito:wght@300;400;600;700&display=swap');

body, p, li, a, span, div {
    font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Nunito", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ===== HEADER ===== */
.site-header,
.ast-primary-header {
    background: var(--mak-dark) !important;
    border-bottom: none !important;
}

.site-header .site-title a,
.site-header .site-title {
    color: var(--mak-white) !important;
    font-family: "Jura", sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
}

/* Navigation */
.main-header-menu a,
.ast-header-sections-navigation a,
.main-navigation a {
    color: var(--mak-white) !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

.main-header-menu a:hover,
.main-navigation a:hover {
    color: var(--mak-green-bright) !important;
}

.main-header-menu .current-menu-item > a,
.main-navigation .current-menu-item > a {
    color: var(--mak-crimson) !important;
}

/* Dropdown menus */
.main-header-menu .sub-menu,
.main-navigation .sub-menu {
    background: var(--mak-dark) !important;
    border: none !important;
    border-top: 3px solid var(--mak-green) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
    min-width: 220px !important;
}

.ast-desktop .main-header-menu .sub-menu,
.ast-desktop .main-navigation .sub-menu {
    display: none !important;
    position: absolute !important;
    z-index: 9999 !important;
}

.ast-desktop .main-header-menu .menu-item:hover > .sub-menu,
.ast-desktop .main-header-menu .menu-item.focus > .sub-menu,
.ast-desktop .main-navigation .menu-item:hover > .sub-menu,
.ast-desktop .main-navigation .menu-item.focus > .sub-menu {
    display: block !important;
}

.sub-menu a {
    padding: 10px 20px !important;
    display: block !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
}

.sub-menu a:hover {
    background: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
}

/* Dropdown toggle arrows */
.ast-header-navigation .menu-item-has-children > a .sub-arrow,
.main-header-menu .menu-item-has-children > a:after {
    color: var(--mak-white) !important;
}

/* ===== HEADER — Sticky, scrolls with page ===== */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: transparent !important;
    transition: background 0.3s ease;
}

.ast-primary-header-bar,
.ast-primary-header,
.main-header-bar {
    background: rgba(0,0,0,0.4) !important;
}

/* When scrolled, darken header */
.ast-header-sticked .ast-primary-header-bar,
.ast-header-sticked .main-header-bar {
    background: rgba(0,0,0,0.85) !important;
}

/* Logo spacing */
.site-header .site-title a,
.site-header .site-title {
    padding-left: 10px;
}

/* Push page content below fixed header */
.home .site-content,
.page-id-9 .site-content {
    padding-top: 0 !important;
}

body:not(.home):not(.page-id-9) .site-content {
    padding-top: 70px !important;
}

/* ===== HEADER ACTION BUTTONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mak-white) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Phone icon via CSS */
.phone-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    padding: 8px;
    border: 2px solid #007A53;
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23007A53' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07 19.5 19.5 0 01-6-6 19.79 19.79 0 01-3.07-8.67A2 2 0 014.11 2h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L8.09 9.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.header-phone:hover {
    color: var(--mak-green-bright) !important;
}

.header-val-btn {
    display: inline-block;
    color: var(--mak-white) !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-val-btn:hover {
    color: var(--mak-green-bright) !important;
}

/* Search icon via CSS */
.search-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23007A53' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
}

.header-search-btn {
    display: flex;
    align-items: center;
    text-decoration: none !important;
}

.header-search-btn:hover .search-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300e098' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
}

/* ===== HAMBURGER BUTTON ===== */
.header-hamburger {
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
    margin-left: 5px;
    cursor: pointer;
}

.burger-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
}

.header-hamburger:hover .burger-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23007A53' stroke-width='2'%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cline x1='3' y1='12' x2='21' y2='12'/%3E%3Cline x1='3' y1='18' x2='21' y2='18'/%3E%3C/svg%3E");
}

/* ===== CUSTOM OVERLAY MENU ===== */
.mak-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.mak-overlay-close {
    position: absolute;
    top: 20px; right: 30px;
    background: none;
    border: none;
    color: var(--mak-white);
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.mak-overlay-close:hover {
    color: var(--mak-crimson);
}

.mak-overlay-nav {
    text-align: center;
}

.mak-overlay-nav .overlay-nav-list {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 60px;
    max-width: 900px;
}

.mak-overlay-nav .overlay-nav-list > li {
    margin-bottom: 20px;
    min-width: 200px;
    text-align: left;
}

.mak-overlay-nav .overlay-nav-list > li > a {
    color: var(--mak-white) !important;
    font-size: 16px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-decoration: none;
    display: block;
    padding: 8px 0;
}

.mak-overlay-nav .overlay-nav-list > li > a:hover {
    color: var(--mak-crimson) !important;
}

.mak-overlay-nav .sub-menu {
    list-style: none;
    padding: 5px 0 0 0; margin: 0;
}

.mak-overlay-nav .sub-menu li a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    display: block;
    padding: 5px 0;
}

.mak-overlay-nav .sub-menu li a:hover {
    color: var(--mak-white) !important;
}

/* Hide Astra mobile header — we use our own */
/* Astra mobile header: shown on mobile via media query */

/* ===== POPUP OVERLAY MENU (legacy — keeping for compat) ===== */
.ast-mobile-popup-drawer .ast-mobile-popup-inner,
.ast-mobile-popup-content {
    background: rgba(0,0,0,0.9) !important;
}

.ast-mobile-popup-drawer a,
.ast-mobile-popup-content a {
    color: var(--mak-white) !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
}

.ast-mobile-popup-drawer a:hover,
.ast-mobile-popup-content a:hover,
.ast-mobile-popup-drawer .current-menu-item > a,
.ast-mobile-popup-content .current-menu-item > a {
    color: var(--mak-crimson) !important;
}

.ast-mobile-popup-drawer .close-button,
.ast-mobile-popup-drawer .menu-toggle-close,
.menu-toggle-close {
    color: var(--mak-white) !important;
}

/* For non-homepage pages, give header a solid dark background and relative position */
body:not(.home):not(.page-id-9) .site-header {
    position: relative !important;
    background: var(--mak-dark) !important;
}

body:not(.home):not(.page-id-9) .ast-primary-header-bar,
body:not(.home):not(.page-id-9) .ast-primary-header,
body:not(.home):not(.page-id-9) .main-header-bar,
body:not(.home):not(.page-id-9) .ast-mobile-header-wrap .ast-primary-header-bar {
    background: var(--mak-dark) !important;
}

/* ===== HERO VIDEO SECTION ===== */
.mak-hero-video {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Break out of Astra's 1240px container */
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* Video background — replace gradient with actual video later */
.mak-hero-video::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a2a3a 40%, #0f2040 70%, #0a1525 100%);
    z-index: 0;
}

/* When video is added, use this class on a <video> element */
.mak-hero-video video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-video-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--mak-white);
    padding: 40px 20px;
    width: 100%;
    max-width: 1200px;
}

.hero-welcome {
    color: var(--mak-green) !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-family: "Jura", sans-serif !important;
    font-weight: 700;
    color: var(--mak-white);
}

.hero-content h1 .green {
    color: var(--mak-green);
}

.hero-content h1 .crimson {
    color: var(--mak-crimson);
}

.hero-sub {
    font-size: 1.3rem;
    font-weight: 300;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Hero boxes — 3 across on the video */
.hero-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.hero-box {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.4);
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-box:hover {
    background: rgba(0,0,0,0.5);
    border-color: var(--mak-green);
}

.hero-box h3 {
    color: var(--mak-white) !important;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.hero-box p {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Ghost button (transparent with border) */
.btn-ghost {
    display: inline-block;
    background: transparent !important;
    color: var(--mak-white) !important;
    border: 2px solid rgba(0,137,93,0.8) !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-ghost:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
}

/* ===== FULL-WIDTH BREAKOUT (all homepage sections) ===== */
.mak-search-section,
.mak-intro-section,
.mak-why-section,
.mak-cta-section,
.mak-contact-strip {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* ===== SEARCH SECTION ===== */
.mak-search-section {
    background: var(--mak-dark);
    padding: 25px 20px 15px;
}

.search-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.propertyhive-search-form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

.propertyhive-search-form label {
    color: var(--mak-white) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.propertyhive-search-form input[type="text"],
.propertyhive-search-form select {
    background: var(--mak-dark-input) !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--mak-white) !important;
    height: 40px !important;
    padding: 8px 12px !important;
}

.propertyhive-search-form input[type="text"]::placeholder {
    color: rgba(255,255,255,0.6) !important;
}

.propertyhive-search-form input[type="submit"] {
    background: rgba(0,122,83,0.7) !important;
    border: 2px solid rgba(0,122,83,0.7) !important;
    color: var(--mak-white) !important;
    border-radius: 50px !important;
    padding: 10px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.propertyhive-search-form input[type="submit"]:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
}

/* ===== INTRO SECTION ===== */
.mak-intro-section {
    padding: 80px 20px;
    background: var(--mak-white);
}

.intro-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.intro-text h2 {
    color: var(--mak-crimson) !important;
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
}

.intro-text h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--mak-green);
    margin-top: 15px;
}

.intro-text p {
    text-align: left;
    line-height: 1.8;
    color: var(--mak-text);
    margin-bottom: 15px;
}

.intro-featured {
    display: flex;
    align-items: stretch;
}

.intro-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.featured-placeholder {
    background: linear-gradient(135deg, #1a2a3a, #0f3460);
    color: var(--mak-white);
    padding: 60px 40px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 350px;
    position: relative;
    overflow: hidden;
}

.featured-placeholder::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--mak-crimson);
}

.featured-placeholder h3 {
    color: var(--mak-green-accent) !important;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.featured-placeholder p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* ===== CRIMSON DIVIDER STRIP ===== */
.mak-divider-strip {
    background: var(--mak-crimson);
    padding: 40px 20px;
    text-align: center;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

.mak-divider-strip h3 {
    color: var(--mak-white) !important;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.mak-divider-strip p {
    color: rgba(255,255,255,0.9);
    margin: 10px 0 0;
    font-size: 1.05rem;
}

/* ===== WHY CHOOSE SECTION ===== */
.mak-why-section {
    background: var(--mak-light);
    padding: 80px 20px;
}

.mak-why-section > h2 {
    text-align: center;
    color: var(--mak-crimson) !important;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 15px;
}

.mak-why-section > .why-subtitle {
    text-align: center;
    color: var(--mak-text);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.why-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-card {
    background: var(--mak-white);
    padding: 35px 30px;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--mak-crimson);
    transition: all 0.3s ease;
    position: relative;
}

.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-left-color: var(--mak-green);
}

.why-card .why-icon {
    display: block;
    width: 50px;
    height: 50px;
    margin-bottom: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
}

.why-card h3 {
    color: var(--mak-green) !important;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.why-card p {
    color: var(--mak-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== CTA SECTION ===== */
.mak-cta-section {
    background: var(--mak-crimson);
    padding: 40px 20px;
    text-align: center;
    color: var(--mak-white);
    position: relative;
    overflow: hidden;
}

.mak-cta-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('/wp-content/uploads/cta-bg.jpg') center/cover no-repeat;
    opacity: 0.15;
}

.mak-cta-section h3 {
    color: var(--mak-white) !important;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.mak-cta-section p {
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.mak-cta-section .btn-mak {
    background: var(--mak-green) !important;
    border-color: var(--mak-green) !important;
    position: relative;
    z-index: 1;
    font-size: 16px;
    padding: 15px 40px !important;
}

.mak-cta-section .btn-mak:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
}

/* ===== CONTACT STRIP ===== */
.mak-contact-strip {
    background: var(--mak-dark);
    padding: 60px 20px;
    color: var(--mak-white);
}

.contact-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.contact-col h4 {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--mak-crimson) !important;
    margin-bottom: 15px;
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.contact-col p {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
}

.contact-col a {
    color: var(--mak-green-accent) !important;
    text-decoration: none;
}

.contact-col a:hover {
    color: var(--mak-green-bright) !important;
}

/* ===== BUTTONS ===== */
.btn-mak {
    display: inline-block;
    background: rgba(0,122,83,0.85) !important;
    color: var(--mak-white) !important;
    border: 2px solid rgba(0,122,83,0.85) !important;
    border-radius: 50px !important;
    padding: 12px 30px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-mak:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
}

.btn-mak-outline {
    display: inline-block;
    background: transparent !important;
    color: var(--mak-green) !important;
    border: 2px solid var(--mak-green) !important;
    border-radius: 50px !important;
    padding: 10px 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 14px;
}

.btn-mak-outline:hover {
    background: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
    border-color: var(--mak-green-dark) !important;
}

/* WP buttons */
.wp-block-button__link,
input[type=submit],
.ast-button {
    background-color: var(--mak-green) !important;
    color: var(--mak-white) !important;
    border: 2px solid var(--mak-green) !important;
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover,
input[type=submit]:hover,
.ast-button:hover {
    background-color: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--mak-green) !important;
    color: var(--mak-white) !important;
    padding: 20px 0 !important;
    font-size: 14px !important;
}

.site-footer a {
    color: var(--mak-white) !important;
}

.site-footer a:hover {
    color: var(--mak-green-bright) !important;
}

.ast-small-footer {
    background: var(--mak-green) !important;
    color: var(--mak-white) !important;
}

.ast-small-footer a {
    color: var(--mak-white) !important;
}

/* ===== CONTENT PAGES ===== */
.entry-content h2 {
    color: var(--mak-green) !important;
    font-weight: 700;
    text-transform: uppercase;
}

.entry-content h3 {
    color: var(--mak-green) !important;
    font-weight: 700;
}

.entry-content h4 {
    color: var(--mak-text);
    font-weight: 700;
}

/* ===== PROPERTY HIVE RESULTS ===== */
.propertyhive .property {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.propertyhive .property:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.propertyhive .price {
    color: var(--mak-green) !important;
    font-weight: 700;
    font-size: 1.3rem;
}

.propertyhive .address {
    color: var(--mak-text);
    font-weight: 600;
}

/* ===== CONTACT FORM 7 ===== */
/* ===== REMOVE ALL WHITE GAPS ON HOMEPAGE ===== */
/* Override Astra CSS variables that create container padding */
.home,
.page-id-9 {
    --ast-container-default-xlg-padding: 0 !important;
    --ast-container-default-lg-padding: 0 !important;
    --ast-container-default-slg-padding: 0 !important;
    --ast-container-default-md-padding: 0 !important;
    --ast-container-default-sm-padding: 0 !important;
    --ast-container-default-xs-padding: 0 !important;
    --ast-container-default-xxs-padding: 0 !important;
    --ast-normal-container-width: 100% !important;
}

/* Nuclear option — every wrapper between body and our content gets zeroed */
.home #content,
.home .site-content,
.home .ast-container,
.home .content-area,
.home #primary,
.home .site-main,
.home .ast-article-single,
.home .entry-header,
.home .entry-content,
.page-id-9 #content,
.page-id-9 .site-content,
.page-id-9 .ast-container,
.page-id-9 .content-area,
.page-id-9 #primary,
.page-id-9 .site-main,
.page-id-9 .ast-article-single,
.page-id-9 .entry-header,
.page-id-9 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100vw !important;
    width: 100% !important;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    float: none !important;
}

/* Hide the "Home" entry title */
.home .entry-header,
.page-id-9 .entry-header {
    display: none !important;
}

/* (title hidden via entry-header display:none above) */

/* ===== SEARCH FORM — Content pages (not homepage) ===== */
/* On content pages, the search form has a white background, so labels need dark text */
.entry-content .propertyhive-search-form {
    background: var(--mak-light) !important;
    padding: 25px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    margin: 20px 0 !important;
}

.entry-content .propertyhive-search-form label {
    color: var(--mak-text) !important;
}

.entry-content .propertyhive-search-form input[type="text"],
.entry-content .propertyhive-search-form select {
    background: var(--mak-white) !important;
    color: var(--mak-text) !important;
    border: 1px solid #ddd !important;
}

/* Search radio buttons — make visible on dark background */
.mak-search-section .propertyhive-search-form label,
.mak-search-section label {
    color: var(--mak-white) !important;
    font-size: 13px;
}

.mak-search-section input[type="radio"] {
    accent-color: var(--mak-green);
}

/* ===== GENERAL LINKS ===== */
a {
    color: var(--mak-green);
}

a:hover {
    color: var(--mak-crimson);
}

/* Entry content links */
.entry-content a {
    color: var(--mak-green) !important;
    text-decoration: none;
}

.entry-content a:hover {
    color: var(--mak-crimson) !important;
    text-decoration: underline;
}

/* Also make content pages slightly wider */
.site-content > .ast-container {
    max-width: 1200px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .mak-hero-video {
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-boxes {
        grid-template-columns: 1fr;
        gap: 10px;
        max-width: 400px;
    }

    .hero-box {
        padding: 20px 15px;
    }

    .hero-box p {
        display: none;
    }

    .intro-grid {
        grid-template-columns: 1fr;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .intro-text h2 {
        font-size: 1.6rem;
    }

    .mak-intro-section,
    .mak-why-section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }

    .why-grid {
        gap: 15px;
    }

    .why-card {
        padding: 20px;
    }
}

/* ===== FLUENT FORMS STYLING ===== */
/* Match MAK Estates brand: crimson/green/dark theme */

.fluentform .ff-el-input--label label {
    color: var(--mak-dark) !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    margin-bottom: 6px !important;
}

.fluentform input[type="text"],
.fluentform input[type="email"],
.fluentform input[type="tel"],
.fluentform input[type="number"],
.fluentform textarea,
.fluentform select {
    border: 1px solid #ddd !important;
    background: var(--mak-white) !important;
    border-radius: 3px !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-family: "Nunito", sans-serif !important;
    color: var(--mak-text) !important;
    transition: border-color 0.2s ease !important;
    width: 100% !important;
}

.fluentform input:focus,
.fluentform textarea:focus,
.fluentform select:focus {
    border-color: var(--mak-green) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 83, 0.15) !important;
}

.fluentform select {
    appearance: auto !important;
    cursor: pointer !important;
}

/* Submit button */
.fluentform .ff-btn-submit {
    background: var(--mak-green) !important;
    border: 2px solid var(--mak-green) !important;
    color: var(--mak-white) !important;
    border-radius: 50px !important;
    padding: 14px 45px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-family: "Nunito", sans-serif !important;
}

.fluentform .ff-btn-submit:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 122, 83, 0.3) !important;
}

/* Required asterisk */
.fluentform .ff-el-is-required .ff-el-input--label label::after {
    color: var(--mak-crimson) !important;
}

/* Error messages */
.fluentform .ff-el-is-error input,
.fluentform .ff-el-is-error textarea,
.fluentform .ff-el-is-error select {
    border-color: var(--mak-crimson) !important;
}

.fluentform .error.text-danger {
    color: var(--mak-crimson) !important;
    font-size: 12px !important;
}

/* Success message */
.fluentform .ff-message-success {
    background: rgba(0, 122, 83, 0.1) !important;
    border: 1px solid var(--mak-green) !important;
    color: var(--mak-green-dark) !important;
    border-radius: 4px !important;
    padding: 16px 20px !important;
    font-weight: 600 !important;
}

/* Form spacing */
.fluentform .ff-el-group {
    margin-bottom: 18px !important;
}

/* ===== CONTENT PAGES STYLING ===== */
/* Sales, Lettings, Mortgages, About, etc. */

.entry-content h2 {
    font-family: "Nunito", sans-serif;
    color: var(--mak-dark);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--mak-crimson);
}

.entry-content h3 {
    font-family: "Nunito", sans-serif;
    color: var(--mak-green);
    font-weight: 700;
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 10px;
}

.entry-content p {
    line-height: 1.8;
    color: #444;
    margin-bottom: 15px;
}

.entry-content ul,
.entry-content ol {
    margin: 15px 0 20px 20px;
    line-height: 1.8;
    color: #444;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content strong {
    color: var(--mak-dark);
}

/* Content page containers — add some breathing room */
.ast-separate-container .ast-article-single {
    padding: 30px 40px !important;
}

/* Tables in content */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content table th {
    background: var(--mak-dark);
    color: var(--mak-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.entry-content table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.entry-content table tr:nth-child(even) {
    background: #f9f9f9;
}

.entry-content table tr:hover {
    background: rgba(0, 122, 83, 0.05);
}

/* Blockquotes / testimonials */
.entry-content blockquote {
    border-left: 4px solid var(--mak-crimson);
    background: rgba(157, 34, 53, 0.04);
    padding: 20px 25px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    border-radius: 0 4px 4px 0;
}

/* CTAs within content pages */
.entry-content .wp-block-button__link,
.entry-content a.button {
    background: var(--mak-green) !important;
    color: var(--mak-white) !important;
    border-radius: 50px !important;
    padding: 12px 35px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease;
}

.entry-content .wp-block-button__link:hover,
.entry-content a.button:hover {
    background: var(--mak-green-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 83, 0.3);
}

/* ===== CONTENT PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .ast-separate-container .ast-article-single {
        padding: 20px 16px !important;
    }

    .entry-content h2 {
        font-size: 1.4rem;
    }

    .entry-content table {
        font-size: 13px;
    }

    .entry-content table th,
    .entry-content table td {
        padding: 8px 10px;
    }
}

/* ===== INNER PAGE HERO ===== */
.mak-page-hero {
    background: linear-gradient(135deg, var(--mak-dark) 0%, #1a2a3a 100%);
    padding: 60px 20px 50px;
    text-align: center;
    margin: -30px -40px 40px;
    position: relative;
}

.mak-page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mak-green), var(--mak-crimson));
}

.mak-page-hero h1 {
    color: var(--mak-white) !important;
    font-size: 2.2rem;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 0 10px;
    letter-spacing: 0.05em;
}

.page-hero-sub {
    color: var(--mak-green-accent) !important;
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
}

/* ===== PAGE CONTENT WRAPPER ===== */
.mak-page-content {
    max-width: 1100px;
    margin: 0 auto;
}

.page-intro {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 40px;
    max-width: 800px;
}

.page-intro p {
    margin-bottom: 15px;
}

/* ===== SERVICE CARDS GRID ===== */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.service-card {
    background: var(--mak-white);
    border: 1px solid #eee;
    border-left: 4px solid var(--mak-green);
    padding: 30px 25px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-left-color: var(--mak-crimson);
}

.service-card h3 {
    color: var(--mak-green) !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.service-card p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* ===== SMALL BUTTONS ===== */
.btn-mak-small {
    display: inline-block;
    background: var(--mak-green) !important;
    color: var(--mak-white) !important;
    border: 2px solid var(--mak-green) !important;
    border-radius: 50px !important;
    padding: 8px 22px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em;
    text-decoration: none !important;
    transition: all 0.3s ease;
    font-size: 12px;
}

.btn-mak-small:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
}

/* ===== PAGE CTA SECTION ===== */
.mak-page-cta {
    background: var(--mak-light);
    padding: 50px 40px;
    text-align: center;
    margin: 50px -40px -30px;
    border-top: 4px solid var(--mak-crimson);
}

.mak-page-cta h3 {
    color: var(--mak-crimson) !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 10px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.mak-page-cta p {
    color: #555;
    font-size: 1rem;
    margin-bottom: 25px;
}

.mak-page-cta .btn-mak,
.mak-page-cta .btn-mak-outline {
    margin: 0 8px;
}

/* ===== WHY FEATURES GRID (Why MAK page) ===== */
.why-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.why-feature-card {
    background: var(--mak-white);
    border: 1px solid #eee;
    padding: 30px 25px;
    border-top: 4px solid var(--mak-green);
    transition: all 0.3s ease;
}

.why-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-top-color: var(--mak-crimson);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.why-feature-card h3 {
    color: var(--mak-green) !important;
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.why-feature-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== FEE CARDS (Selling page) ===== */
.fees-section {
    margin-bottom: 50px;
}

.fees-section h2 {
    color: var(--mak-crimson) !important;
    text-align: center;
    margin-bottom: 10px;
}

.fees-intro {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

.fees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.fee-card {
    background: var(--mak-white);
    border: 1px solid #eee;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.fee-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.fee-highlight {
    border: 2px solid var(--mak-green);
    position: relative;
}

.fee-card h3 {
    color: var(--mak-dark) !important;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 15px;
    text-transform: uppercase;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.fee-rate {
    font-size: 2rem;
    font-weight: 700;
    color: var(--mak-green);
    margin-bottom: 10px;
}

.fee-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.fee-example {
    color: var(--mak-crimson) !important;
    font-weight: 600;
    font-size: 0.85rem !important;
}

.fees-discount {
    text-align: center;
    color: var(--mak-green);
    font-size: 1.05rem;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 122, 83, 0.06);
    border-radius: 4px;
}

/* ===== TIER CARDS (Lettings page) ===== */
.service-tiers {
    margin-bottom: 50px;
}

.service-tiers h2 {
    color: var(--mak-crimson) !important;
    text-align: center;
    margin-bottom: 30px;
}

.tier-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.tier-card {
    background: var(--mak-white);
    border: 1px solid #eee;
    padding: 35px 25px;
    transition: all 0.3s ease;
    position: relative;
}

.tier-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.tier-highlight {
    border: 2px solid var(--mak-crimson);
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 25px;
    background: var(--mak-crimson);
    color: var(--mak-white);
    padding: 4px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tier-card h3 {
    color: var(--mak-green) !important;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.tier-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== ADDITIONAL SERVICES (Lettings page) ===== */
.additional-services {
    margin-bottom: 40px;
}

.additional-services h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 25px;
}

/* ===== DOCUMENT LIST ===== */
.documents-section {
    margin-bottom: 40px;
}

.documents-section h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 15px;
}

.document-list {
    list-style: none;
    padding: 0;
}

.document-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--mak-green);
    font-weight: 600;
    position: relative;
    padding-left: 30px;
}

.document-list li::before {
    content: '\1F4C4';
    position: absolute;
    left: 0;
    top: 12px;
}

/* ===== MEMBERSHIP GRID (Propertymark page) ===== */
.membership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.membership-card {
    background: var(--mak-white);
    border: 1px solid #eee;
    padding: 30px 25px;
    border-top: 4px solid var(--mak-crimson);
    transition: all 0.3s ease;
}

.membership-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.membership-card h3 {
    color: var(--mak-green) !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 12px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.membership-card p {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== WHAT THIS MEANS SECTION ===== */
.what-means-section {
    margin-bottom: 40px;
}

.what-means-section h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 10px 0 10px 30px;
    position: relative;
    color: #444;
    line-height: 1.6;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--mak-green);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.testimonial-card {
    background: var(--mak-white);
    border: 1px solid #eee;
    padding: 35px 30px;
    border-left: 4px solid var(--mak-crimson);
    position: relative;
}

.testimonial-quote {
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--mak-green-accent);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-quote p {
    color: #555;
    line-height: 1.8;
    font-style: italic;
    font-size: 0.95rem;
}

.testimonial-author {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author strong {
    color: var(--mak-dark);
    font-size: 1rem;
}

.testimonial-date {
    color: #999;
    font-size: 0.85rem;
}

/* ===== CONTACT PAGE LAYOUT ===== */
.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    margin-bottom: 50px;
}

.contact-form-col h2,
.contact-info-col h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 25px;
}

.contact-details-box {
    background: var(--mak-light);
    padding: 30px 25px;
    border-left: 4px solid var(--mak-green);
}

.contact-details-box h3 {
    color: var(--mak-green) !important;
    font-size: 1rem;
    margin: 20px 0 8px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.contact-details-box h3:first-of-type {
    margin-top: 25px;
}

.contact-details-box p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 5px;
}

.contact-details-box a {
    color: var(--mak-green) !important;
    text-decoration: none;
}

.contact-details-box a:hover {
    color: var(--mak-crimson) !important;
}

/* ===== CONTACT MAP ===== */
.contact-map {
    margin-bottom: 30px;
}

.contact-map h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 20px;
}

.contact-map iframe {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ===== STAMP DUTY TABLE ===== */
.stamp-duty-rates {
    margin-bottom: 40px;
}

.stamp-duty-rates h2 {
    color: var(--mak-crimson) !important;
    text-align: center;
    margin-bottom: 30px;
}

.rates-table-wrapper {
    margin-bottom: 30px;
}

.rates-table-wrapper h3 {
    color: var(--mak-green) !important;
    margin-bottom: 15px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.mak-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.mak-table th {
    background: var(--mak-dark);
    color: var(--mak-white);
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
}

.mak-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    color: #444;
}

.mak-table tr:nth-child(even) {
    background: #f9f9f9;
}

.mak-table tr:hover {
    background: rgba(0, 122, 83, 0.05);
}

.stamp-duty-note {
    background: rgba(157, 34, 53, 0.05);
    border-left: 4px solid var(--mak-crimson);
    padding: 15px 20px;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* ===== INFO BOXES (Renting page) ===== */
.tenant-info-section {
    margin-bottom: 40px;
}

.tenant-info-section h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 20px;
}

.info-box {
    background: var(--mak-light);
    padding: 25px;
    margin-bottom: 15px;
    border-left: 4px solid var(--mak-green);
}

.info-box h3 {
    color: var(--mak-green) !important;
    font-size: 1.1rem;
    margin: 0 0 10px;
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.info-box p {
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* ===== BROKER/FORM SECTIONS (Mortgages page) ===== */
.why-broker-section {
    margin-bottom: 40px;
}

.why-broker-section h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 20px;
}

.mortgage-form-section {
    margin-bottom: 30px;
}

.mortgage-form-section h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 15px;
}

.mortgage-disclaimer {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 15px 20px;
    margin-bottom: 30px;
    text-align: center;
    font-size: 0.85rem;
}

.mortgage-disclaimer p {
    margin: 0;
    color: #856404;
}

.report-form-section h2,
.eviction-form-section h2 {
    color: var(--mak-crimson) !important;
    margin-bottom: 15px;
}

/* ===== INNER PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .mak-page-hero {
        padding: 40px 15px 35px;
        margin: -20px -16px 30px;
    }

    .mak-page-hero h1 {
        font-size: 1.6rem;
    }

    .service-cards-grid,
    .why-features-grid,
    .fees-grid,
    .tier-cards-grid,
    .membership-grid {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mak-page-cta {
        padding: 35px 20px;
        margin: 40px -16px -20px;
    }

    .mak-page-cta .btn-mak,
    .mak-page-cta .btn-mak-outline {
        display: block;
        margin: 8px auto;
        max-width: 250px;
    }

    .fees-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .fees-grid {
        grid-template-columns: 1fr;
    }

    .mak-page-hero h1 {
        font-size: 1.3rem;
    }
}

/* ===== CUSTOM FOOTER ===== */
.mak-custom-footer {
    background: var(--mak-dark);
    color: var(--mak-white);
    padding: 60px 20px 0;
}

.mak-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.mak-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mak-footer-col h4 {
    color: var(--mak-crimson) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 15px;
}

.mak-footer-col p {
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.mak-footer-col a {
    color: var(--mak-green-accent) !important;
    text-decoration: none;
}

.mak-footer-col a:hover {
    color: var(--mak-green-bright) !important;
}

.mak-footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mak-footer-col ul li {
    margin-bottom: 8px;
}

.mak-footer-col ul li a {
    color: rgba(255,255,255,0.8) !important;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.mak-footer-col ul li a:hover {
    color: var(--mak-green-accent) !important;
}

.cert-list li {
    color: rgba(255,255,255,0.8);
    font-size: 0.85rem;
    padding-left: 18px;
    position: relative;
}

.cert-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--mak-green-accent);
    font-weight: 700;
}

.mak-social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.mak-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    color: var(--mak-white) !important;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.mak-social-links a:hover {
    background: var(--mak-green);
    border-color: var(--mak-green);
}

/* Legal bar */
.mak-footer-legal {
    padding: 25px 0;
    text-align: center;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 15px;
}

.legal-links a {
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.8rem;
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--mak-white) !important;
}

.mak-footer-legal p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    margin: 0;
}

/* Hide Astra's default footer since we have our own */
.site-footer .ast-small-footer,
.site-footer .ast-footer-overlay {
    display: none !important;
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 768px) {
    .mak-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .mak-footer-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .legal-links {
        flex-direction: column;
        gap: 8px;
    }
}

/* ===== WAJID FEEDBACK FIXES — 4 Mar 2026 ===== */

/* --- HERO: All text white, sub text visible --- */
.hero-sub {
    color: var(--mak-white) !important;
}

.hero-box p {
    color: var(--mak-white) !important;
}

/* --- HERO BOXES: Buttons solid green with white text --- */
.btn-ghost {
    background: var(--mak-green) !important;
    color: var(--mak-white) !important;
    border: 2px solid var(--mak-green) !important;
}

.btn-ghost:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
}

/* --- "Mak your move" — Jura font, MAK green + "your move" crimson --- */
.intro-text h2 {
    font-family: "Jura", sans-serif !important;
    color: var(--mak-green) !important;
    font-size: 2.4rem;
    text-transform: uppercase;
    font-weight: 700;
}

.intro-text h2 .red,
.intro-text h2 .crimson {
    color: var(--mak-crimson) !important;
}

/* Remove the underline bar — original doesn't have it */
.intro-text h2::after {
    display: none !important;
}

/* --- "Get in touch" button — solid green, white text --- */
.btn-mak {
    background: var(--mak-green) !important;
    color: var(--mak-white) !important;
    border: 2px solid var(--mak-green) !important;
}

.btn-mak:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: var(--mak-white) !important;
}

/* --- Red banners: ensure white text --- */
.mak-divider-strip h3,
.mak-divider-strip p {
    color: var(--mak-white) !important;
}

.mak-cta-section h3,
.mak-cta-section p {
    color: var(--mak-white) !important;
}

.mak-cta-section .btn-mak {
    background: var(--mak-green) !important;
    border-color: var(--mak-green) !important;
    color: var(--mak-white) !important;
}

/* --- Remove homepage contact strip (duplicated in footer) --- */
.mak-contact-strip {
    display: none !important;
}

/* --- FOOTER RESTRUCTURE --- */
/* Sub-footer: WHITE background, BLACK text */
.mak-custom-footer {
    background: var(--mak-white) !important;
    color: var(--mak-dark) !important;
    padding: 60px 20px 0;
    border-top: none;
}

.mak-footer-grid {
    border-bottom: 1px solid #e0e0e0;
}

.mak-footer-col h4 {
    color: var(--mak-dark) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0 0 15px;
}

.mak-footer-col p {
    color: var(--mak-dark) !important;
}

.mak-footer-col a {
    color: var(--mak-dark) !important;
}

.mak-footer-col a:hover {
    color: var(--mak-green) !important;
}

.mak-footer-col ul li a {
    color: var(--mak-dark) !important;
}

.mak-footer-col ul li a:hover {
    color: var(--mak-green) !important;
}

.cert-list li {
    color: var(--mak-dark);
}

.cert-list li::before {
    color: var(--mak-green);
}

/* Social icons — MAK crimson/red */
.mak-social-links a {
    color: var(--mak-white) !important;
    background: var(--mak-crimson) !important;
    border: 1px solid var(--mak-crimson) !important;
}

.mak-social-links a:hover {
    background: var(--mak-green) !important;
    border-color: var(--mak-green) !important;
}

/* --- LEGAL BAR: GREEN background, WHITE text --- */
.mak-footer-legal {
    background: var(--mak-green) !important;
    padding: 25px 20px;
    text-align: center;
    /* Break out of parent padding to go full width */
    margin: 0 -20px;
    padding-left: 40px;
    padding-right: 40px;
}

.legal-links a {
    color: var(--mak-white) !important;
}

.legal-links a:hover {
    color: rgba(255,255,255,0.7) !important;
}

.mak-footer-legal p {
    color: var(--mak-white) !important;
}

/* Hide Astra default footer completely */
.site-footer {
    display: none !important;
}

/* ===== END FEEDBACK FIXES ===== */

/* ===== HOTFIX — Button text + footer width — 4 Mar 2026 ===== */

/* Force hero box buttons: solid green, white text */
.hero-box .btn-ghost,
a.btn-ghost,
.hero-boxes a.btn-ghost {
    background: var(--mak-green) !important;
    color: #ffffff !important;
    border: 2px solid var(--mak-green) !important;
}

.hero-box .btn-ghost:hover,
a.btn-ghost:hover,
.hero-boxes a.btn-ghost:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: #ffffff !important;
}

/* Force "Get in touch" and all .btn-mak: solid green, white text */
a.btn-mak,
.entry-content a.btn-mak,
.intro-text a.btn-mak,
.mak-page-cta a.btn-mak,
.mak-cta-section a.btn-mak {
    background: var(--mak-green) !important;
    color: #ffffff !important;
    border: 2px solid var(--mak-green) !important;
}

a.btn-mak:hover,
.entry-content a.btn-mak:hover,
.intro-text a.btn-mak:hover,
.mak-page-cta a.btn-mak:hover,
.mak-cta-section a.btn-mak:hover {
    background: var(--mak-green-dark) !important;
    border-color: var(--mak-green-dark) !important;
    color: #ffffff !important;
}

/* Force outline buttons white text on hover */
a.btn-mak-outline:hover {
    color: #ffffff !important;
}

/* Green legal bar — FULL WIDTH */
.mak-footer-legal {
    background: var(--mak-green) !important;
    color: #ffffff !important;
    padding: 40px 40px !important;
    text-align: center;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    width: 100vw !important;
}

.mak-footer-legal .legal-links a {
    color: #ffffff !important;
}

.mak-footer-legal .legal-links a:hover {
    color: rgba(255,255,255,0.7) !important;
}

.mak-footer-legal p {
    color: #ffffff !important;
}

/* ===== FONT FIX — Jura for "Mak your move" heading ===== */
.intro-text h2,
.intro-text h2 span,
.intro-text h2 .red,
.intro-text h2 .crimson,
.mak-intro-section .intro-text h2,
.mak-intro-section .intro-text h2 span {
    font-family: "Jura", sans-serif !important;
}

/* ===== BUTTON HOVER FIX — override global a:hover crimson ===== */
a.btn-ghost,
a.btn-ghost:hover,
a.btn-ghost:focus,
a.btn-ghost:active,
a.btn-ghost:visited,
a.btn-mak,
a.btn-mak:hover,
a.btn-mak:focus,
a.btn-mak:active,
a.btn-mak:visited,
a.btn-mak-small,
a.btn-mak-small:hover,
a.btn-mak-small:focus,
a.btn-mak-small:active,
a.btn-mak-small:visited,
.hero-box a:hover,
.intro-text a:hover,
.mak-page-cta a:hover,
.mak-cta-section a:hover,
.entry-content a.btn-mak:hover,
.entry-content a.btn-ghost:hover {
    color: #ffffff !important;
}

/* ===== NUCLEAR BUTTON FIX — override .entry-content a green ===== */
.entry-content a.btn-ghost,
.entry-content a.btn-mak,
.entry-content a.btn-mak-small,
.entry-content .hero-box a,
.entry-content .intro-text a.btn-mak,
.entry-content .mak-page-cta a.btn-mak,
.entry-content .mak-cta-section a.btn-mak {
    color: #ffffff !important;
    background: #007A53 !important;
    border-color: #007A53 !important;
}

.entry-content a.btn-ghost:hover,
.entry-content a.btn-mak:hover,
.entry-content a.btn-mak-small:hover,
.entry-content .hero-box a:hover,
.entry-content .intro-text a.btn-mak:hover,
.entry-content .mak-page-cta a.btn-mak:hover,
.entry-content .mak-cta-section a.btn-mak:hover {
    color: #ffffff !important;
    background: #006b49 !important;
    border-color: #006b49 !important;
    text-decoration: none !important;
}

/* ===== SEARCH BAR ALIGNMENT FIX ===== */
.mak-search-section .propertyhive-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}

.mak-search-section .propertyhive-search-form > div,
.mak-search-section .propertyhive-search-form > p,
.mak-search-section .propertyhive-search-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 40px !important;
}

.mak-search-section .propertyhive-search-form input[type="text"],
.mak-search-section .propertyhive-search-form select {
    height: 42px !important;
    box-sizing: border-box !important;
}

.mak-search-section .propertyhive-search-form input[type="submit"] {
    height: 42px !important;
    box-sizing: border-box !important;
    line-height: 1 !important;
    padding: 0 30px !important;
    margin-top: auto !important;
}

/* ===== ELEGANT SEARCH BAR — Matching original site ===== */

/* Container */
.mak-search-section {
    background: rgba(0,0,0,0.85) !important;
    padding: 0 20px 25px !important;
    margin-top: -1px;
}

.search-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Search form reset */
.mak-search-section .property-search-form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

/* Department radio buttons → styled as tabs */
.mak-search-section .control-department {
    display: flex !important;
    gap: 0;
    margin-bottom: 40px !important;
    padding: 0;
    border: none;
}

.mak-search-section .control-department label {
    display: flex !important;
    align-items: center;
    gap: 0;
    padding: 12px 25px !important;
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none !important;
    margin: 0 !important;
    border-bottom: 3px solid transparent;
}

.mak-search-section .control-department label:first-of-type {
    border-radius: 4px 0 0 0;
}

.mak-search-section .control-department label:last-of-type {
    border-radius: 0 4px 0 0;
}

.mak-search-section .control-department label:hover {
    background: rgba(255,255,255,0.15) !important;
    color: var(--mak-white) !important;
}

/* Hide actual radio buttons */
.mak-search-section .control-department input[type="radio"] {
    display: none !important;
}

/* Active/checked tab */
.mak-search-section .control-department input[type="radio"]:checked + label,
.mak-search-section .control-department label:has(input:checked) {
    background: rgba(0,122,83,0.3) !important;
    color: var(--mak-white) !important;
    border-bottom: 3px solid var(--mak-green) !important;
}

/* Since :has() might not work everywhere, JS fallback handled via class */

/* Fields row */
.mak-search-section .property-search-form .control:not(.control-department) {
    display: inline-block;
    vertical-align: bottom;
    margin: 0 5px 10px 0 !important;
}

.mak-search-section .property-search-form label:not(.control-department label) {
    color: rgba(255,255,255,0.6) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 4px !important;
    display: block;
}

/* Inputs and selects */
.mak-search-section .property-search-form input[type="text"],
.mak-search-section .property-search-form select {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 3px !important;
    color: var(--mak-white) !important;
    height: 42px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    transition: border-color 0.2s ease;
    box-sizing: border-box !important;
}

.mak-search-section .property-search-form input[type="text"]:focus,
.mak-search-section .property-search-form select:focus {
    border-color: var(--mak-green) !important;
    outline: none !important;
    background: rgba(255,255,255,0.15) !important;
}

.mak-search-section .property-search-form select option {
    background: #1a1a1a;
    color: #fff;
}

/* Search button */
.mak-search-section .property-search-form input[type="submit"] {
    height: 42px !important;
    background: var(--mak-green) !important;
    border: none !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    padding: 0 35px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    transition: background 0.2s ease;
    box-sizing: border-box !important;
    vertical-align: bottom;
}

.mak-search-section .property-search-form input[type="submit"]:hover {
    background: var(--mak-green-dark) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .mak-search-section .control-department {
        flex-wrap: wrap;
    }

    .mak-search-section .control-department label {
        flex: 1;
        text-align: center;
        justify-content: center;
        padding: 10px 15px !important;
        font-size: 11px !important;
    }

    .mak-search-section .property-search-form .control:not(.control-department) {
        display: block;
        margin: 0 0 10px 0 !important;
    }

    .mak-search-section .property-search-form input[type="text"],
    .mak-search-section .property-search-form select {
        width: 100% !important;
    }

    .mak-search-section .property-search-form input[type="submit"] {
        width: 100% !important;
    }
}

/* ===== CUSTOM SEARCH FORM — Matching original site ===== */

/* Hide the old PH search form styles that no longer apply */
.mak-search-section .property-search-form {
    display: none !important;
}

/* Container */
.mak-search-section {
    background: rgba(0,0,0,0.9) !important;
    padding: 0 20px 30px !important;
}

.search-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Tabs */
.mak-search-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.search-tab {
    padding: 14px 30px;
    background: rgba(255,255,255,0.05);
    color: rgba(255,255,255,0.6);
    border: none;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.search-tab:first-child {
    border-radius: 4px 0 0 0;
}

.search-tab:last-child {
    border-radius: 0 4px 0 0;
}

.search-tab:hover {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.search-tab.active {
    background: rgba(0,122,83,0.25);
    color: #ffffff;
    border-bottom: 3px solid #007A53;
}

/* Form */
.mak-search-form {
    background: rgba(255,255,255,0.06);
    padding: 20px 25px;
    border-radius: 0 4px 4px 4px;
}

/* Fields row */
.search-fields {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.search-field label {
    color: rgba(255,255,255,0.5) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 6px !important;
}

.search-field input[type="text"],
.search-field select {
    height: 44px;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-family: "Nunito", sans-serif !important;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
}

.search-field input[type="text"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-field input[type="text"]:focus,
.search-field select:focus {
    border-color: #007A53 !important;
    outline: none;
    background: rgba(255,255,255,0.15) !important;
}

.search-field select option {
    background: #1a1a1a;
    color: #fff;
}

/* Search button */
.search-btn-field {
    flex: 0 0 auto;
}

.search-submit {
    height: 44px;
    background: #007A53 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 0 40px !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.search-submit:hover {
    background: #006b49 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .search-fields {
        flex-direction: column;
        gap: 10px;
    }

    .search-field {
        width: 100%;
    }

    .search-btn-field {
        width: 100%;
    }

    .search-submit {
        width: 100%;
    }

    .search-tab {
        flex: 1;
        text-align: center;
        padding: 12px 15px;
        font-size: 12px;
    }
}

/* ===== OVERLAY MENU — 5 column layout matching original ===== */
.mak-overlay {
    background: rgba(0,0,0,0.85) !important;
    align-items: flex-start !important;
    padding-top: 80px;
    overflow-y: auto;
}

.mak-overlay-nav {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.mak-overlay-nav .overlay-nav-list {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0 30px !important;
    max-width: 100% !important;
    justify-content: start !important;
    padding: 0;
    margin: 0;
}

.mak-overlay-nav .overlay-nav-list > li {
    text-align: left !important;
    min-width: unset !important;
    margin-bottom: 30px;
}

.mak-overlay-nav .overlay-nav-list > li > a {
    color: var(--mak-white) !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    display: block !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    margin-bottom: 10px;
}

.mak-overlay-nav .overlay-nav-list > li > a:hover {
    color: var(--mak-crimson) !important;
}

.mak-overlay-nav .sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mak-overlay-nav .sub-menu li {
    margin-bottom: 0;
}

.mak-overlay-nav .sub-menu li a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 6px 0 !important;
    text-transform: none !important;
}

.mak-overlay-nav .sub-menu li a:hover {
    color: var(--mak-white) !important;
}

/* Close button */
.mak-overlay-close {
    position: absolute;
    top: 25px;
    right: 40px;
    font-size: 36px;
    color: var(--mak-white);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.mak-overlay-close:hover {
    color: var(--mak-crimson);
}

/* Responsive — stack on mobile */
@media (max-width: 768px) {
    .mak-overlay-nav .overlay-nav-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 0 20px !important;
    }

    .mak-overlay-nav {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .mak-overlay-nav .overlay-nav-list {
        grid-template-columns: 1fr !important;
    }
}

/* ===== SUB-FOOTER — White bg section matching original ===== */
.mak-custom-footer {
    background: #ffffff !important;
    color: #333333 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mak-footer-inner {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mak-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 40px;
    background: #ffffff;
}

.mak-footer-col h4 {
    color: #333333 !important;
    font-family: "Jura", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 15px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid var(--mak-crimson);
}

.mak-footer-col p,
.mak-footer-col li {
    color: #555555 !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    font-family: "Nunito", sans-serif !important;
}

.mak-footer-col a {
    color: #555555 !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.mak-footer-col a:hover {
    color: var(--mak-crimson) !important;
}

.mak-footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mak-footer-col ul li {
    margin-bottom: 6px !important;
}

.mak-footer-col .cert-list li {
    padding-left: 0;
    font-size: 13px !important;
    color: #666666 !important;
}

/* Social icons — red/crimson on white bg */
.mak-social-links {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.mak-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--mak-crimson) !important;
    color: #ffffff !important;
    transition: background 0.2s ease;
}

.mak-social-links a:hover {
    background: #7a1a2a !important;
    color: #ffffff !important;
}

.mak-social-links a svg {
    fill: #ffffff !important;
}

/* Legal bar — full width green */
.mak-footer-legal {
    background: var(--mak-green) !important;
    color: #ffffff !important;
    padding: 20px 40px !important;
    text-align: center;
    /* Full-width breakout */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    box-sizing: border-box !important;
}

.mak-footer-legal .legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 20px;
    margin-bottom: 10px;
}

.mak-footer-legal .legal-links a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 12px !important;
    text-decoration: none !important;
    font-family: "Nunito", sans-serif !important;
    transition: color 0.2s ease;
}

.mak-footer-legal .legal-links a:hover {
    color: #ffffff !important;
}

.mak-footer-legal p {
    color: rgba(255,255,255,0.7) !important;
    font-size: 12px !important;
    margin: 0 !important;
    font-family: "Nunito", sans-serif !important;
}

/* Responsive footer */
@media (max-width: 768px) {
    .mak-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        padding: 30px 20px;
    }

    .mak-footer-legal {
        padding: 15px 20px !important;
    }

    .mak-footer-legal .legal-links {
        gap: 6px 15px;
    }
}

@media (max-width: 480px) {
    .mak-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== MEMBERSHIP LOGOS in footer ===== */
.membership-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.membership-logo {
    max-height: 45px;
    width: auto;
    max-width: 100px;
    object-fit: contain;
    filter: none;
    transition: opacity 0.2s ease;
}

.membership-logo:hover {
    opacity: 0.8;
}

/* ===== PAGE HERO BANNERS with images ===== */
.page-hero-banner {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 30px;
}

/* ===== INTRO SECTION — featured image ===== */
.intro-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.featured-placeholder {
    display: none;
}

.intro-featured {
    min-height: 350px;
    border-radius: 6px;
    overflow: hidden;
}

/* ===== LOGO sizing in header ===== */
.site-branding .custom-logo {
    max-height: 60px !important;
    width: auto !important;
}

.ast-site-identity .custom-logo-link img {
    max-height: 60px !important;
    width: auto !important;
}

/* ===== 404 PAGE ===== */
.error-404 {
    text-align: center;
    padding: 80px 20px;
}

.error-404 h1 {
    font-family: "Jura", sans-serif !important;
    font-size: 72px !important;
    color: var(--mak-green) !important;
    margin-bottom: 10px;
}

.error-404 .page-title {
    font-family: "Jura", sans-serif !important;
    font-size: 28px !important;
    color: var(--mak-crimson) !important;
}

.error-404 p {
    font-size: 16px;
    color: #666;
    max-width: 500px;
    margin: 20px auto;
}

.error-404 .search-form {
    max-width: 400px;
    margin: 30px auto;
}

.error-404 .search-form input[type="search"] {
    border: 2px solid var(--mak-green) !important;
    border-radius: 4px;
    padding: 12px 15px;
    width: 70%;
    font-size: 14px;
}

.error-404 .search-form input[type="submit"] {
    background: var(--mak-green) !important;
    color: #fff !important;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
}

/* ===== MOBILE RESPONSIVENESS PASS ===== */
@media (max-width: 768px) {
    /* Hero content */
    .hero-content h1 {
        font-size: 36px !important;
    }

    .hero-welcome {
        font-size: 14px !important;
    }

    .hero-sub {
        font-size: 14px !important;
        padding: 0 10px;
    }

    .hero-boxes {
        flex-direction: column !important;
        gap: 15px !important;
        padding: 0 15px;
    }

    .hero-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Intro section */
    .intro-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .intro-text h2 {
        font-size: 28px !important;
    }

    /* Why section */
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* Page hero banner */
    .page-hero-banner {
        height: 180px;
    }

    /* Inner page cards */
    .service-cards,
    .fee-cards,
    .tier-cards {
        grid-template-columns: 1fr !important;
    }

    /* Membership logos in footer */
    .membership-logos {
        gap: 8px;
    }

    .membership-logo {
        max-height: 35px;
        max-width: 80px;
    }

    /* Logo in header */
    .site-branding .custom-logo,
    .ast-site-identity .custom-logo-link img {
        max-height: 45px !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px !important;
    }

    .mak-search-tabs {
        flex-direction: column;
    }

    .search-tab {
        border-radius: 0 !important;
    }

    /* Divider strip */
    .mak-divider-strip h3 {
        font-size: 20px !important;
    }

    /* CTA section */
    .mak-cta-section h3 {
        font-size: 22px !important;
    }
}

/* ===== MEMBERSHIP LOGO STRIP — single row above footer ===== */
.mak-membership-strip {
    background: #f5f5f5;
    padding: 30px 20px;
    text-align: center;
    /* Full width breakout */
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    margin-left: -50vw !important;
    box-sizing: border-box !important;
}

.membership-strip-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.membership-strip-inner img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.membership-strip-inner img:hover {
    opacity: 1;
}

/* ===== HEADER — hide site title text, bigger logo ===== */
.site-title,
.site-description,
.ast-site-identity .site-title {
    display: none !important;
}

.site-branding .custom-logo,
.ast-site-identity .custom-logo-link img {
    max-height: 80px !important;
    width: auto !important;
}

/* Featured placeholder restore */
.featured-placeholder {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 6px;
    padding: 40px 20px;
    text-align: center;
    min-height: 300px;
}

.featured-placeholder h3 {
    color: var(--mak-white) !important;
    font-family: "Jura", sans-serif;
}

.featured-placeholder p {
    color: rgba(255,255,255,0.5) !important;
    font-size: 14px;
}

@media (max-width: 768px) {
    .membership-strip-inner {
        gap: 20px;
    }

    .membership-strip-inner img {
        max-height: 35px;
    }

    .site-branding .custom-logo,
    .ast-site-identity .custom-logo-link img {
        max-height: 55px !important;
    }
}

/* ===== PAGE HERO — full-width background image with text overlay ===== */
.mak-page-hero {
    position: relative;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    min-height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}

.page-hero-content h1 {
    color: #ffffff !important;
    font-family: "Jura", sans-serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 10px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.page-hero-content .page-hero-sub {
    color: rgba(255,255,255,0.9) !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Remove the old inline img banner style */
.page-hero-banner {
    display: none !important;
}

@media (max-width: 768px) {
    .mak-page-hero {
        min-height: 220px;
    }

    .page-hero-content h1 {
        font-size: 28px !important;
    }

    .page-hero-content .page-hero-sub {
        font-size: 15px !important;
    }

    .page-hero-content {
        padding: 40px 15px;
    }
}

/* ===== OVERLAY MENU v2 — 5 column layout, Astra-compatible ===== */

/* Override any existing overlay menu styles */
#mak-menu-overlay.mak-overlay {
    background: rgba(0,0,0,0.85) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999999 !important;
    display: none;
    align-items: flex-start !important;
    justify-content: center !important;
    padding-top: 80px !important;
    overflow-y: auto !important;
}

#mak-menu-overlay .mak-overlay-nav {
    width: 100% !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 40px !important;
}

/* The UL — 5 column grid */
#mak-menu-overlay .overlay-nav-list,
#mak-menu-overlay ul#menu-main-menu {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 0 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Top-level items */
#mak-menu-overlay .overlay-nav-list > li,
#mak-menu-overlay ul#menu-main-menu > li {
    text-align: left !important;
    min-width: unset !important;
    margin-bottom: 30px !important;
    display: block !important;
}

/* Top-level links */
#mak-menu-overlay .overlay-nav-list > li > a,
#mak-menu-overlay ul#menu-main-menu > li > a {
    color: #ffffff !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-decoration: none !important;
    display: block !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid rgba(255,255,255,0.15) !important;
    margin-bottom: 10px !important;
    font-family: "Jura", sans-serif !important;
}

#mak-menu-overlay .overlay-nav-list > li > a:hover,
#mak-menu-overlay ul#menu-main-menu > li > a:hover {
    color: var(--mak-crimson) !important;
}

/* Hide Astra dropdown arrow toggles */
#mak-menu-overlay .dropdown-menu-toggle,
#mak-menu-overlay .ast-header-navigation-arrow {
    display: none !important;
}

/* Sub-menus — always visible, no dropdown behavior */
#mak-menu-overlay .sub-menu {
    display: block !important;
    position: static !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    width: auto !important;
    min-width: unset !important;
}

#mak-menu-overlay .sub-menu li {
    margin-bottom: 40px !important;
    display: block !important;
}

#mak-menu-overlay .sub-menu li a {
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: block !important;
    padding: 6px 0 !important;
    text-transform: none !important;
    font-family: "Nunito", sans-serif !important;
    border: none !important;
}

#mak-menu-overlay .sub-menu li a:hover {
    color: #ffffff !important;
}

/* Close button */
#mak-menu-overlay .mak-overlay-close {
    position: absolute !important;
    top: 25px !important;
    right: 40px !important;
    font-size: 36px !important;
    color: #ffffff !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    z-index: 10 !important;
    line-height: 1 !important;
}

#mak-menu-overlay .mak-overlay-close:hover {
    color: var(--mak-crimson) !important;
}

/* Responsive */
@media (max-width: 768px) {
    #mak-menu-overlay .overlay-nav-list,
    #mak-menu-overlay ul#menu-main-menu {
        grid-template-columns: 1fr 1fr !important;
        gap: 0 20px !important;
    }

    #mak-menu-overlay .mak-overlay-nav {
        padding: 0 20px !important;
    }
}

@media (max-width: 480px) {
    #mak-menu-overlay .overlay-nav-list,
    #mak-menu-overlay ul#menu-main-menu {
        grid-template-columns: 1fr !important;
    }
}

/* ===== MEMBERSHIP LOGOS inside green footer bar ===== */
.footer-membership-logos {
    
    
    
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-membership-logos img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.footer-membership-logos img:hover {
    opacity: 1;
}

/* Hide the separate membership strip (moved to footer) */
.mak-membership-strip {
    display: none !important;
}

@media (max-width: 768px) {
    .footer-membership-logos {
    
    
    
    
        gap: 15px;
    }

    .footer-membership-logos img {
        max-height: 30px;
    }
}

/* ===== FIX: Membership logos in green bar — no invert, show original colours ===== */
.footer-membership-logos img {
    filter: none !important;
    opacity: 1 !important;
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.footer-membership-logos {
    
    
    
    
    
}

/* Footer grid now 3 columns (removed memberships column) */
.mak-footer-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 768px) {
    .mak-footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Logo size increase 30% ===== */
.site-branding .custom-logo,
.ast-site-identity .custom-logo-link img {
    max-height: 104px !important;
    width: auto !important;
}

@media (max-width: 768px) {
    .site-branding .custom-logo,
    .ast-site-identity .custom-logo-link img {
        max-height: 60px !important;
    }
}

/* ===== Hide Astra page titles on all pages with custom hero ===== */
.entry-header,
.ast-archive-description,
.page .entry-header {
    display: none !important;
}

/* ===== Taller page hero banners ===== */
.mak-page-hero {
    min-height: 400px !important;
}

@media (max-width: 768px) {
    .mak-page-hero {
        min-height: 280px !important;
    }
}

/* ===== Force page hero full width on ALL pages ===== */
.mak-page-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
}

/* Also break out of Astra separate container */
.ast-separate-container .mak-page-hero,
.ast-container .mak-page-hero {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
}

/* ===== Hero 600px + centre-top image alignment ===== */
.mak-page-hero {
    min-height: 600px !important;
    background-position: center top !important;
}

@media (max-width: 768px) {
    .mak-page-hero {
        min-height: 350px !important;
    }
}

/* Buying page hero — centre middle */
body.page-id-27 .mak-page-hero {
    background-position: center center !important;
}

/* Selling page hero — zoom out */
body.page-id-12 .mak-page-hero {
    background-size: 120% auto !important;
    background-position: center top !important;
}

/* Selling page hero — zoom out */
body.page-id-12 .mak-page-hero {
    background-size: 80% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
    background-color: #0a0a1a !important;
}

/* ===== Remove white space between header and hero on all pages ===== */
.site-content {
    padding-top: 0 !important;
}

.site-main {
    padding-top: 0 !important;
}

.ast-container {
    padding-top: 0 !important;
}

.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    padding-top: 0 !important;
}

.entry-content {
}

/* Push hero right up to header — account for fixed header height */
.mak-page-hero {
}

/* Remove any Astra content top spacing on inner pages */
.ast-separate-container .site-main > .ast-container {
    padding-top: 0 !important;
}

.ast-separate-container article {
    padding-top: 0 !important;
}

/* ===== Hero flush to header — no white gap ===== */
/* Remove the 70px content offset on pages with hero */
body:not(.home):not(.page-id-9) .site-content {
    padding-top: 0 !important;
}

/* Hero extends behind fixed header */
.mak-page-hero {
    padding-top: 120px !important;
    min-height: 600px !important;
}

@media (max-width: 768px) {
    .mak-page-hero {
        padding-top: 80px !important;
        min-height: 350px !important;
    }
}

/* ===== NUCLEAR: Hero flush to header on ALL inner pages ===== */

/* Kill ALL spacing above hero */
body:not(.home):not(.page-id-9) #content.site-content {
    padding-top: 0 !important;
}

body:not(.home):not(.page-id-9) .ast-container {
    padding-top: 0 !important;
}

body:not(.home):not(.page-id-9) #primary.content-area {
    padding-top: 0 !important;
}

body:not(.home):not(.page-id-9) #main.site-main {
    padding-top: 0 !important;
}

body:not(.home):not(.page-id-9) article.ast-article-single {
    padding-top: 0 !important;
}

body:not(.home):not(.page-id-9) .entry-content {
    padding-top: 0 !important;
}

/* Hide Astra entry-header completely */
body:not(.home):not(.page-id-9) .entry-header,
body:not(.home):not(.page-id-9) header.entry-header {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset selling page zoom — back to cover */
body.page-id-12 .mak-page-hero {
    background-size: cover !important;
}

/* Selling hero — shift image up ~2cm */
body.page-id-12 .mak-page-hero {
    background-position: center calc(50% - 40px) !important;
}

/* Selling hero — shift image up slightly */
body.page-id-12 .mak-page-hero {
    background-position: center calc(50% - 15px) !important;
}

body.page-id-12 .mak-page-hero {
    background-position: center 40% !important;
}

body.page-id-12 .mak-page-hero {
    background-position: center 20% !important;
}

body.page-id-12 .mak-page-hero {
    background-position: center 10% !important;
}

body.page-id-12 .mak-page-hero {
    background-position: center 20% !important;
}

body.page-id-28 .mak-page-hero {
    background-position: center 40% !important;
}

/* Accommodation Reports hero */
body.page-id-35 .mak-page-hero {
    background-position: center 85% !important;
}

/* Policy pages styling */
.mak-policy-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 30px 60px;
    line-height: 1.8;
}
.mak-policy-page > h1:first-child,
.mak-policy-page > h2:first-child {
    display: none;
}
.mak-policy-page h2 {
    color: var(--mak-dark) !important;
    font-size: 1.4rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mak-green);
}
.mak-policy-page h3 {
    color: var(--mak-green) !important;
    font-size: 1.15rem;
}
.mak-policy-page ul, .mak-policy-page ol {
    padding-left: 25px;
    margin: 15px 0;
}
.mak-policy-page li {
    margin-bottom: 8px;
}
.mak-policy-page a {
    color: var(--mak-green) !important;
}
.mak-policy-page a:hover {
    color: var(--mak-crimson) !important;
}
.mak-policy-page strong {
    color: var(--mak-dark);
}

/* Policy pages hero position */
body.page-id-262 .mak-page-hero,
body.page-id-263 .mak-page-hero,
body.page-id-264 .mak-page-hero,
body.page-id-265 .mak-page-hero,
body.page-id-266 .mak-page-hero,
body.page-id-267 .mak-page-hero,
body.page-id-268 .mak-page-hero {
    background-size: cover !important;
    background-position: center bottom !important;
}

/* Area guide back link */
.area-back-link {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 20px;
}
.area-back-link a {
    color: var(--mak-green) !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}
.area-back-link a:hover {
    color: var(--mak-crimson) !important;
}

/* Area guide alphabet nav */
.area-alpha-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 25px 0 10px;
    padding: 15px 20px;
    background: #f8f8f8;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    justify-content: center;
}
.area-alpha-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #e8e8e8;
    color: var(--mak-dark) !important;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.area-alpha-nav a:hover {
    background: var(--mak-green);
    border-color: var(--mak-green);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Area guide letter headings */
.area-letter-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--mak-green);
    margin: 30px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e8e8e8;
}
.area-letter-heading:first-of-type {
    margin-top: 10px;
}

/* Area Guides hero — shift up (index + all 31 subpages) */
body.page-id-34 .mak-page-hero,
body[class*="page-id-18"] .mak-page-hero,
body[class*="page-id-19"] .mak-page-hero,
body[class*="page-id-20"] .mak-page-hero,
body[class*="page-id-21"] .mak-page-hero {
    background-position: center 35% !important;
}

/* Evictions hero — shift up */
body.page-id-36 .mak-page-hero {
    background-position: center 30% !important;
}

/* About MAK Estates hero — shift up */
body.page-id-10 .mak-page-hero {
    background-position: center 30% !important;
}

/* Stamp duty hero */
body.page-id-30 .mak-page-hero {
    background-position: center 40% !important;
}

/* Handshake hero — bring down 30% from bottom */
body.page-id-11 .mak-page-hero,
body.page-id-33 .mak-page-hero,
body.page-id-14 .mak-page-hero,
body.page-id-32 .mak-page-hero {
    background-size: cover !important;
    background-position: center 70% !important;
}

/* ===== PROPERTY SEARCH PAGE — clean search bar + listing fixes ===== */

/* Search form container */
.property-search-form.property-search-form-default {
    background: rgba(0,0,0,0.85) !important;
    padding: 20px 25px !important;
    border-radius: 0 0 4px 4px !important;
    max-width: 1000px;
    margin: 0 auto 30px !important;
    border: none !important;
}

/* Department radio tabs */
.property-search-form .control-department {
    display: flex !important;
    gap: 0 !important;
    margin-bottom: 15px !important;
    padding: 0 !important;
    border: none !important;
}

.property-search-form .control-department label {
    display: inline-flex !important;
    align-items: center !important;
    padding: 12px 25px !important;
    background: rgba(255,255,255,0.08) !important;
    color: rgba(255,255,255,0.7) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    cursor: pointer !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    margin: 0 !important;
    transition: all 0.2s ease;
    font-family: "Nunito", sans-serif !important;
}

.property-search-form .control-department label:first-of-type {
    border-radius: 4px 0 0 0 !important;
}

.property-search-form .control-department label:last-of-type {
    border-radius: 0 4px 0 0 !important;
}

.property-search-form .control-department label:hover {
    background: rgba(255,255,255,0.15) !important;
    color: #ffffff !important;
}

.property-search-form .control-department input[type="radio"] {
    display: none !important;
}

.property-search-form .control-department input[type="radio"]:checked + label,
.property-search-form .control-department label.active {
    background: rgba(0,122,83,0.3) !important;
    color: #ffffff !important;
    border-bottom: 3px solid var(--mak-green) !important;
}

/* Fields layout — inline row */
.property-search-form .control:not(.control-department) {
    display: inline-block !important;
    vertical-align: bottom !important;
    margin: 0 8px 10px 0 !important;
}

.property-search-form .control:not(.control-department) label {
    color: rgba(255,255,255,0.5) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 4px !important;
    display: block !important;
    font-family: "Nunito", sans-serif !important;
}

/* Inputs and selects */
.property-search-form input[type="text"],
.property-search-form select {
    height: 44px !important;
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
    border-radius: 3px !important;
    color: #ffffff !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    font-family: "Nunito", sans-serif !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease;
    -webkit-appearance: none !important;
}

.property-search-form input[type="text"]:focus,
.property-search-form select:focus {
    border-color: var(--mak-green) !important;
    outline: none !important;
    background: rgba(255,255,255,0.15) !important;
}

.property-search-form select option {
    background: #1a1a1a;
    color: #fff;
}

/* Search submit button */
.property-search-form input[type="submit"] {
    height: 44px !important;
    background: var(--mak-green) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 3px !important;
    padding: 0 35px !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    vertical-align: bottom !important;
    transition: background 0.2s ease;
}

.property-search-form input[type="submit"]:hover {
    background: #006b49 !important;
}

/* Result count + ordering */
.propertyhive-result-count {
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 10px !important;
}

.propertyhive-ordering select {
    height: 38px !important;
    border: 1px solid #ddd !important;
    border-radius: 3px !important;
    padding: 0 10px !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 13px !important;
}

/* ===== PROPERTY LISTINGS — card layout fix ===== */
ul.properties {
    list-style: none !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important;
}

ul.properties li.property {
    background: #ffffff !important;
    border: 1px solid #eee !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    transition: box-shadow 0.2s ease;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

ul.properties li.property:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}

/* Thumbnail */
ul.properties .thumbnail {
    width: 100% !important;
    height: 220px !important;
    overflow: hidden !important;
}

ul.properties .thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

ul.properties .thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Details section */
ul.properties .details {
    padding: 15px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

ul.properties .details h3 {
    font-family: "Nunito", sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 8px !important;
    line-height: 1.3 !important;
}

ul.properties .details h3 a {
    color: #333 !important;
    text-decoration: none !important;
}

ul.properties .details h3 a:hover {
    color: var(--mak-green) !important;
}

/* Price — clear spacing */
ul.properties .price {
    font-family: "Jura", sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--mak-green) !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
    display: block !important;
    clear: both !important;
    position: relative !important;
}

/* Summary */
ul.properties .summary {
    margin: 0 0 auto !important;
    padding: 0 !important;
}

/* More Details button — below price, no overlap */
ul.properties .actions {
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}

ul.properties .actions .button,
ul.properties .actions a.button {
    display: inline-block !important;
    background: var(--mak-green) !important;
    color: #ffffff !important;
    padding: 10px 25px !important;
    border-radius: 3px !important;
    text-decoration: none !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    transition: background 0.2s ease;
    position: relative !important;
    float: none !important;
}

ul.properties .actions .button:hover,
ul.properties .actions a.button:hover {
    background: #006b49 !important;
    color: #ffffff !important;
}

/* Pagination */
.propertyhive-pagination {
    text-align: center !important;
    margin: 30px 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
    ul.properties {
        grid-template-columns: 1fr !important;
    }

    .property-search-form .control:not(.control-department) {
        display: block !important;
        margin: 0 0 10px 0 !important;
    }

    .property-search-form input[type="text"],
    .property-search-form select {
        width: 100% !important;
    }

    .property-search-form input[type="submit"] {
        width: 100% !important;
    }

    .property-search-form .control-department label {
        flex: 1 !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 15px !important;
        font-size: 11px !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    ul.properties {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===== Search form reset button ===== */
.property-search-form .search-reset-btn {
    height: 44px !important;
    background: transparent !important;
    color: rgba(255,255,255,0.7) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 3px !important;
    padding: 0 25px !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    vertical-align: bottom !important;
    transition: all 0.2s ease;
    margin-left: 5px !important;
}

.property-search-form .search-reset-btn:hover {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.5) !important;
}


/* ===== AUDIT FIX: Hide Astra credit ===== */
.ast-footer-copyright .ast-footer-html-inner a[href*="developer.wordpress.org"],
.ast-footer-copyright .ast-footer-html-inner a[href*="wpastra.com"],
.site-footer .powered-by-astra,
.ast-small-footer .ast-footer-site-title,
.ast-footer-copyright a[href*="developer.wordpress.org"],
a[href*="developer.wordpress.org/themes/developer-resources/theme-basics/template-hierarchy/"] {
    display: none !important;
}
.ast-footer-copyright .ast-footer-html-inner {
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* ===== AUDIT FIX: Consistent submit button colors (all green) ===== */
.mak-page-content input[type="submit"],
.mak-page-content button[type="submit"],
.fluentform .ff-btn-submit,
.ff-btn.ff-btn-submit,
.frm_submit button,
.wpforms-submit,
form input[type="submit"],
form button[type="submit"] {
    background: #007A53 !important;
    background-color: #007A53 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-family: "Nunito", sans-serif !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}
.mak-page-content input[type="submit"]:hover,
.mak-page-content button[type="submit"]:hover,
.fluentform .ff-btn-submit:hover,
.ff-btn.ff-btn-submit:hover,
form input[type="submit"]:hover,
form button[type="submit"]:hover {
    background: #006b49 !important;
    background-color: #006b49 !important;
}

/* ===== AUDIT FIX: Breadcrumbs styling ===== */
.ast-breadcrumbs-wrapper {
    padding: 10px 20px !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 13px !important;
    color: #666 !important;
}
.ast-breadcrumbs-wrapper a {
    color: #007A53 !important;
    text-decoration: none !important;
}
.ast-breadcrumbs-wrapper a:hover {
    text-decoration: underline !important;
}
/* Hide breadcrumbs on homepage */
body.home .ast-breadcrumbs-wrapper,
body.page-id-9 .ast-breadcrumbs-wrapper {
    display: none !important;
}
/* Position breadcrumbs below hero on inner pages */
body:not(.home):not(.page-id-9) .ast-breadcrumbs-wrapper {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 12px 20px !important;
}

/* ===== AUDIT FIX: Header CTA buttons ===== */
.mak-header-ctas {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.mak-header-ctas a.mak-header-phone {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    color: #ffffff !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 8px 14px !important;
    background: rgba(255,255,255,0.1) !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}
.mak-header-ctas a.mak-header-phone:hover {
    background: rgba(255,255,255,0.2) !important;
}
.mak-header-ctas a.mak-header-valuation {
    display: inline-flex !important;
    align-items: center !important;
    color: #ffffff !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 16px !important;
    background: #007A53 !important;
    border-radius: 4px !important;
    transition: background 0.2s !important;
}
.mak-header-ctas a.mak-header-valuation:hover {
    background: #006b49 !important;
}


/* ===== AUDIT FIX: Homepage testimonials section ===== */
.mak-testimonials-home {
    background: #0d0d20;
    padding: 60px 20px;
}
.mak-testimonials-home h2,
.entry-content .mak-testimonials-home h2 {
    text-align: center;
    color: #ffffff !important;
    font-family: "Jura", sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
}
.mak-testimonials-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto 24px;
}
@media (max-width: 768px) {
    .mak-testimonials-home-grid { grid-template-columns: 1fr; }
}
.mak-testimonial-home-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 24px;
}
.mak-testimonial-home-card p {
    color: rgba(255,255,255,0.85);
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    line-height: 1.7;
    font-style: italic;
    margin: 0 0 12px;
}
.mak-testimonial-home-card .testimonial-home-author {
    color: #007A53;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 14px;
}
.mak-testimonials-home .testimonials-link {
    text-align: center;
}
.mak-testimonials-home .testimonials-link a {
    color: #007A53;
    font-family: "Nunito", sans-serif;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.mak-testimonials-home .testimonials-link a:hover {
    text-decoration: underline;
}

/* ===== AUDIT FIX: About page styling ===== */
.about-timeline {
    max-width: 800px;
    margin: 30px auto;
}
.about-value-props {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}
@media (max-width: 768px) {
    .about-value-props { grid-template-columns: 1fr; }
}
.about-value-card {
    background: #f9f9f9;
    border-left: 4px solid #007A53;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}
.about-value-card h3 {
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}
.about-value-card p {
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ===== AUDIT FIX v2: NUCLEAR hide Astra footer credit ===== */
.site-footer .site-info,
.ast-footer-copyright,
.ast-small-footer,
.site-below-footer-wrap,
footer .ast-builder-grid-row,
footer .ast-footer-html-inner,
.ast-footer-overlay,
.ast-small-footer-section,
.site-footer-primary-section-1,
.site-footer-primary-section-2,
.ast-builder-footer-grid-columns {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    font-size: 0 !important;
    line-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ===== AUDIT FIX: Override Astra global color variable for buttons ===== */
:root {
    --ast-global-color-0: #007A53 !important;
}
/* Force ALL submit/form buttons green regardless of Astra vars */
.ast-custom-button,
.menu-toggle,
.ast-custom-button,
.menu-toggle,
.ast-button,
input#submit,
input[type="button"],
input[type="submit"],
input[type="reset"],
.wp-block-button .wp-block-button__link {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
}
.ast-custom-button:hover,
.ast-custom-button:hover,
.ast-button:hover,
input#submit:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
input[type="reset"]:hover,
.wp-block-button .wp-block-button__link:hover {
    background-color: #005c3f !important;
    border-color: #005c3f !important;
}
/* Exclude search buttons which have their own styling */
.mak-search-section button,
.mak-search-section input[type="submit"],
.search-submit {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
}

/* ===== AUDIT FIX: Override Fluent Forms inline button color ===== */
.frm-fluent-form .ff-btn-submit,
.fluent_form_3 .ff-btn-submit,
.fluent_form_2 .ff-btn-submit,
.fluent_form_1 .ff-btn-submit,
form.fluent_form_3 .ff-btn-submit:not(.ff_btn_no_style),
form.fluent_form_2 .ff-btn-submit:not(.ff_btn_no_style),
form.fluent_form_1 .ff-btn-submit:not(.ff_btn_no_style),
.ff-btn.ff-btn-submit.ff-btn-lg,
.ff-btn.ff-btn-submit.ff-btn-md {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
    color: #fff !important;
}
.frm-fluent-form .ff-btn-submit:hover,
.ff-btn.ff-btn-submit:hover {
    background-color: #005c3f !important;
    border-color: #005c3f !important;
}

/* ========== Area Guides Grid ========== */
.area-guides-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 40px 0;
}
.area-guide-card {
    display: block;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 24px 20px;
    text-decoration: none;
    transition: all 0.25s ease;
    text-align: center;
}
.area-guide-card:hover {
    border-color: #007A53;
    box-shadow: 0 6px 20px rgba(0, 122, 83, 0.12);
    transform: translateY(-3px);
}
.area-guide-card h3 {
    font-family: 'Jura', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}
.area-guide-card:hover h3 {
    color: #007A53;
}
.area-guide-card p {
    font-family: 'Nunito', sans-serif;
    font-size: 0.82rem;
    color: #888;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
@media (max-width: 900px) {
    .area-guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .area-guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .area-guide-card {
        padding: 18px 14px;
    }
}

/* ========== Footer 5-column override ========== */
.mak-footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr !important;
}
@media (max-width: 900px) {
    .mak-footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}
@media (max-width: 600px) {
    .mak-footer-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========== Footer copyright + managed by ========== */
.footer-copyright {
    margin-top: 0;
    font-size: 0.85rem;
    opacity: 0.85;
}
.footer-managed {
    font-size: 0.78rem;
    opacity: 0.65;
    margin-top: 4px;
}
.footer-managed a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.footer-managed a:hover {
    opacity: 1;
}

/* ========== Simplified 2-col footer ========== */
.mak-footer-grid.mak-footer-simple {
    grid-template-columns: 1fr 1fr !important;
    max-width: 700px;
    margin: 0 auto;
}
@media (max-width: 600px) {
    .mak-footer-grid.mak-footer-simple {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .mak-footer-grid.mak-footer-simple .mak-social-links {
        justify-content: center;
    }
}
.footer-appointment-note {
    margin-top: 12px;
    font-style: italic;
    font-size: 0.88rem;
    opacity: 0.85;
}

/* ========== Footer 3-col: Find Us | Opening Hours | Follow Us ========== */
.mak-footer-grid.mak-footer-simple {
    grid-template-columns: 1fr 1fr 1fr !important;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
@media (max-width: 600px) {
    .mak-footer-grid.mak-footer-simple {
        grid-template-columns: 1fr !important;
    }
}
.mak-footer-simple .mak-social-links {
    justify-content: center;
}

/* ========== Footer spacing increase ========== */
.mak-footer-grid.mak-footer-simple {
    max-width: 1100px !important;
    gap: 60px !important;
    padding: 40px 20px !important;
}

/* ========== Footer headings + text sizing ========== */
.mak-footer-simple .mak-footer-col h4 {
    font-size: 1.3rem !important;
    color: #9D2235 !important;
    margin-bottom: 14px !important;
}
.mak-footer-simple .mak-footer-col p,
.mak-footer-simple .mak-footer-col a,
.mak-footer-simple .footer-appointment-note {
    font-size: 1.05rem !important;
}

/* ========== Reduce valuation CTA height ========== */

/* ========== Header full-width on ALL pages (match homepage) ========== */
.site-header,
.ast-primary-header-bar,
.ast-primary-header,
.main-header-bar {
    width: 100% !important;
    max-width: 100% !important;
}
.site-header .ast-container,
.ast-primary-header-bar .ast-container,
.main-header-bar .ast-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 40px !important;
    padding-right: 40px !important;
}

/* ========== Mortgage calc - move input text away from £ prefix ========== */
.mc-input {
    padding-left: 38px !important;
}

/* ========== Inner pages — bring in red/white/green brand colours ========== */

/* Section headings (h2) in crimson */
.mak-page-content h2 {
    color: #9D2235 !important;
    position: relative;
    padding-bottom: 12px !important;
    margin-bottom: 28px !important;
}
.mak-page-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007A53, #9D2235);
}
.mak-page-content .fees-section h2::after,
.mak-page-content .why-broker-section h2::after,
.mak-page-content .mortgage-form-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Alternate service card borders — odd green, even crimson */
.service-card:nth-child(even) {
    border-left-color: #9D2235;
}
.service-card:nth-child(even) h3 {
    color: #9D2235 !important;
}
.service-card:nth-child(even):hover {
    border-left-color: #007A53;
}

/* Fee cards — highlight card gets crimson border instead of just green */
.fee-highlight {
    border-color: #9D2235 !important;
}
.fee-highlight::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #9D2235;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 14px;
    border-radius: 20px;
}

/* Page intro — crimson accent left border */
.page-intro {
    border-left: 4px solid #9D2235;
    padding-left: 24px;
}

/* Hero subtitle — alternate white and green */
.page-hero-sub {
    color: #fff !important;
    opacity: 0.9;
}

/* CTA buttons — green primary, crimson outline */
.mak-page-cta .btn-mak-outline {
    color: #9D2235 !important;
    border-color: #9D2235 !important;
}
.mak-page-cta .btn-mak-outline:hover {
    background: #9D2235 !important;
    color: #fff !important;
}

/* ========== CookieYes — Full override (green brand) ========== */

/* Preference center popup — white bg, readable dark text */
.cky-preference-center,
.cky-preference-center[style] {
    background-color: #fff !important;
    color: #333 !important;
}
.cky-preference-header .cky-preference-title,
.cky-preference-header .cky-preference-title[style] {
    color: #1a1a1a !important;
}
.cky-preference-content-wrapper,
.cky-preference-content-wrapper[style],
.cky-preference-content-wrapper p,
.cky-accordion-header-des,
.cky-accordion-header-des[style],
.cky-accordion-header-des p {
    color: #333 !important;
}
.cky-accordion-header .cky-accordion-btn,
.cky-accordion-header .cky-accordion-btn[style] {
    color: #1a1a1a !important;
    background: transparent !important;
}
.cky-accordion-header .cky-always-active {
    color: #007A53 !important;
}
.cky-preference-header .cky-btn-close,
.cky-preference-header .cky-btn-close[style] {
    background: transparent !important;
}
.cky-audit-table,
.cky-audit-table[style] {
    color: #333 !important;
    background-color: #f4f4f4 !important;
}
.cky-preference-header,
.cky-preference-content-wrapper,
.cky-accordion,
.cky-prefrence-btn-wrapper {
    border-color: #e0e0e0 !important;
}

/* === Accept All — solid green, white text === */
.cky-btn.cky-btn-accept,
.cky-btn.cky-btn-accept[style],
button.cky-btn-accept,
button.cky-btn-accept[style],
.cky-consent-container .cky-btn-accept,
.cky-preference-center .cky-btn-accept,
.cky-prefrence-btn-wrapper .cky-btn-accept {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
    color: #fff !important;
}
.cky-btn.cky-btn-accept:hover,
button.cky-btn-accept:hover,
.cky-preference-center .cky-btn-accept:hover {
    background-color: #005c3e !important;
    border-color: #005c3e !important;
    color: #fff !important;
}

/* === Save My Preferences — solid green, white text === */
.cky-btn.cky-btn-preferences,
.cky-btn.cky-btn-preferences[style],
button.cky-btn-preferences,
button.cky-btn-preferences[style],
.cky-preference-center .cky-btn-preferences,
.cky-prefrence-btn-wrapper .cky-btn-preferences {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
    color: #fff !important;
}
.cky-btn.cky-btn-preferences:hover,
button.cky-btn-preferences:hover,
.cky-preference-center .cky-btn-preferences:hover {
    background-color: #005c3e !important;
    border-color: #005c3e !important;
    color: #fff !important;
}

/* === Reject All + Customise — outlined, green on white === */
.cky-btn.cky-btn-reject,
.cky-btn.cky-btn-reject[style],
.cky-btn.cky-btn-customize,
.cky-btn.cky-btn-customize[style],
button.cky-btn-reject,
button.cky-btn-reject[style],
button.cky-btn-customize,
button.cky-btn-customize[style],
.cky-consent-container .cky-btn-reject,
.cky-consent-container .cky-btn-customize,
.cky-preference-center .cky-btn-reject,
.cky-prefrence-btn-wrapper .cky-btn-reject {
    background-color: transparent !important;
    border-color: #007A53 !important;
    color: #007A53 !important;
}
.cky-btn.cky-btn-reject:hover,
.cky-btn.cky-btn-customize:hover,
button.cky-btn-reject:hover,
button.cky-btn-customize:hover {
    background-color: #f0faf5 !important;
    color: #007A53 !important;
}

/* Toggle switches */
.cky-switch input[type="checkbox"]:checked {
    background-color: #007A53 !important;
}

/* Consent bar + revisit button */
.cky-consent-bar {
    border-color: #007A53 !important;
}
.cky-btn-revisit-wrapper {
    background-color: #007A53 !important;
}

/* Links inside cookie elements */
.cky-consent-bar a,
.cky-preference-center a,
.cky-consent-container a {
    color: #007A53 !important;
}

/* ========== Hamburger-only header — hide desktop nav ========== */
.ast-desktop-header-content .main-header-menu,
.ast-desktop-header-content .main-navigation,
.ast-desktop-header-content .ast-header-sections-navigation,
.main-header-menu,
.ast-header-sections-navigation {
    display: none !important;
}

/* Show hamburger on desktop too */
.header-hamburger {
    display: flex !important;
}

/* Header layout: logo left, hamburger + CTAs right */
.site-header .ast-container {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

/* ========== Grouped overlay menu ========== */
.overlay-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 60px;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}
.overlay-menu-group h4 {
    color: #9D2235;
    font-family: 'Jura', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(0, 122, 83, 0.4);
}
.overlay-menu-group ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.overlay-menu-group li {
    margin-bottom: 10px;
}
.overlay-menu-group a {
    color: #fff !important;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    text-decoration: none;
    transition: color 0.2s;
}
.overlay-menu-group a:hover {
    color: #007A53 !important;
}
@media (max-width: 768px) {
    .overlay-menu-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px 40px;
    }
}
@media (max-width: 480px) {
    .overlay-menu-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* ========== Header items — match original layout ========== */
.mak-header-ctas {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
}
.mak-header-ctas a {
    color: #fff !important;
    text-decoration: none !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 18px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: color 0.2s !important;
    border-left: 1px solid rgba(255,255,255,0.15) !important;
}
.mak-header-ctas a:first-child {
    border-left: none !important;
}
.mak-header-ctas a:hover {
    color: #007A53 !important;
}
.mak-header-ctas a svg {
    flex-shrink: 0;
}
.mak-header-phone,
.mak-header-valuation,
.mak-header-search {
    background: none !important;
    border-radius: 0 !important;
    border: none !important;
}
.header-hamburger {
    margin-left: 0 !important;
    padding-right: 0 !important;
}
.header-hamburger .burger-icon {
    width: 20px !important;
    height: 20px !important;
    background-size: 20px 20px !important;
}
/* Menu label text colour */
.header-hamburger {
    color: #fff !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}
@media (max-width: 921px) {
    /* Hide desktop CTAs on mobile */
    .mak-header-ctas {
        display: none !important;
    }
    /* Show Astra mobile header with dark bg */
    .ast-mobile-header-wrap {
        display: block !important;
    }
    .ast-mobile-header-wrap .ast-primary-header-bar {
        background: #333333 !important;
    }
    /* Hide Astra default mobile menu trigger */
    .ast-mobile-header-wrap .ast-button-wrap,
    .ast-mobile-header-wrap [data-section=section-header-mobile-trigger] {
        display: none !important;
    }
    /* Mobile icons container */
    .mak-mobile-icons {
        display: flex !important;
        align-items: center !important;
        gap: 0 !important;
    }
    .mak-mobile-icons a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 14px !important;
        height: 60px !important;
        color: #fff !important;
        text-decoration: none !important;
    }
    .mak-mobile-icons a:hover {
        color: #007A53 !important;
    }
    .mak-mobile-icons a svg {
        width: 22px !important;
        height: 22px !important;
        stroke: currentColor !important;
    }
    .mak-mobile-icons .burger-icon {
        width: 22px !important;
        height: 22px !important;
        background-size: 22px 22px !important;
    }
    /* Sticky header on scroll */
    .ast-mobile-header-wrap.mak-sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999999 !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
    .ast-mobile-header-wrap.mak-sticky ~ .site-content {
        padding-top: 60px !important;
    }
}

/* ========== Header CTAs — flat links, no boxes ========== */
.mak-header-ctas a.mak-header-phone,
.mak-header-ctas a.mak-header-valuation,
.mak-header-ctas a.mak-header-search,
.mak-header-ctas a.header-hamburger {
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: 'Nunito', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 8px 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border-left: 1px solid rgba(255,255,255,0.15) !important;
    transition: color 0.2s !important;
}
.mak-header-ctas a.mak-header-phone:first-child {
    border-left: none !important;
}
.mak-header-ctas a.mak-header-phone:hover,
.mak-header-ctas a.mak-header-valuation:hover,
.mak-header-ctas a.mak-header-search:hover,
.mak-header-ctas a.header-hamburger:hover {
    color: #007A53 !important;
    background: none !important;
}

/* ========== Header CTAs — bigger text ========== */
.mak-header-ctas a.mak-header-phone,
.mak-header-ctas a.mak-header-valuation,
.mak-header-ctas a.mak-header-search {
    font-size: 1rem !important;
}

/* ========== FINAL NUCLEAR: Cookie buttons — appended last to win all specificity ========== */
html body .cky-consent-container .cky-btn.cky-btn-accept,
html body .cky-modal .cky-btn.cky-btn-accept,
html body .cky-preference-center .cky-btn.cky-btn-accept,
html body .cky-consent-container button.cky-btn-accept,
html body .cky-modal button.cky-btn-accept,
html body .cky-prefrence-btn-wrapper button.cky-btn-accept {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
    color: #ffffff !important;
}
html body .cky-consent-container .cky-btn.cky-btn-preferences,
html body .cky-modal .cky-btn.cky-btn-preferences,
html body .cky-preference-center .cky-btn.cky-btn-preferences,
html body .cky-consent-container button.cky-btn-preferences,
html body .cky-modal button.cky-btn-preferences,
html body .cky-prefrence-btn-wrapper button.cky-btn-preferences {
    background-color: #007A53 !important;
    border-color: #007A53 !important;
    color: #ffffff !important;
}
html body .cky-consent-container .cky-btn.cky-btn-reject,
html body .cky-modal .cky-btn.cky-btn-reject,
html body .cky-preference-center .cky-btn.cky-btn-reject,
html body .cky-consent-container button.cky-btn-reject,
html body .cky-modal button.cky-btn-reject,
html body .cky-prefrence-btn-wrapper button.cky-btn-reject {
    background-color: #ffffff !important;
    border: 2px solid #007A53 !important;
    color: #007A53 !important;
}
html body .cky-consent-container .cky-btn.cky-btn-customize,
html body .cky-modal .cky-btn.cky-btn-customize,
html body .cky-preference-center .cky-btn.cky-btn-customize,
html body .cky-consent-container button.cky-btn-customize,
html body .cky-modal button.cky-btn-customize {
    background-color: #ffffff !important;
    border: 2px solid #007A53 !important;
    color: #007A53 !important;
}
/* Hover states */
html body .cky-btn.cky-btn-accept:hover,
html body .cky-btn.cky-btn-preferences:hover {
    background-color: #005c3e !important;
    color: #ffffff !important;
}
html body .cky-btn.cky-btn-reject:hover,
html body .cky-btn.cky-btn-customize:hover {
    background-color: #f0faf5 !important;
    color: #007A53 !important;
}
/* Accordion buttons + close button inside preference center — NOT green bg */
html body .cky-preference-center .cky-accordion-btn,
html body .cky-preference-center .cky-btn-close {
    background-color: transparent !important;
    background: transparent !important;
    border: none !important;
    color: #1a1a1a !important;
}

/* ========== Property Search — Department tabs (non-homepage) ========== */
.property-search-form .control-department {
    display: flex !important;
    gap: 0;
    margin-bottom: 16px !important;
}
.property-search-form .control-department label {
    display: inline-flex !important;
    align-items: center;
    padding: 10px 24px !important;
    background: #f5f5f5 !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer;
    border: 2px solid #ddd !important;
    border-right: none !important;
    transition: all 0.2s ease;
    margin: 0 !important;
}
.property-search-form .control-department label:first-of-type {
    border-radius: 6px 0 0 6px !important;
}
.property-search-form .control-department label:last-of-type {
    border-radius: 0 6px 6px 0 !important;
    border-right: 2px solid #ddd !important;
}
.property-search-form .control-department label:hover {
    background: #e8f5ef !important;
    border-color: #007A53 !important;
    color: #007A53 !important;
}
.property-search-form .control-department input[type="radio"] {
    display: none !important;
}
.property-search-form .control-department label:has(input:checked),
.property-search-form .control-department label.active {
    background: #007A53 !important;
    color: #fff !important;
    border-color: #007A53 !important;
}

/* ===== TrustIndex widget in dark testimonials section ===== */
.mak-testimonials-home .ti-widget,
.mak-testimonials-home .ti-widget-container {
    background: transparent !important;
}
.mak-testimonials-home .ti-widget .ti-header {
    background: transparent !important;
}
.mak-testimonials-home .ti-widget .ti-name,
.mak-testimonials-home .ti-widget .ti-profile-details,
.mak-testimonials-home .ti-widget .ti-review-content,
.mak-testimonials-home .ti-widget .ti-review-text-container,
.mak-testimonials-home .ti-widget .ti-date {
    color: #333333 !important;
}
.mak-testimonials-home .ti-widget .ti-rating-text,
.mak-testimonials-home .ti-widget .ti-rating-text strong,
.mak-testimonials-home .ti-widget .ti-rating-text span,
.mak-testimonials-home .ti-widget .ti-header .ti-large-logo {
    color: #ffffff !important;
}
.mak-testimonials-home .ti-widget .ti-read-more {
    color: #007A53 !important;
}
.mak-testimonials-home .ti-widget .ti-controls .ti-next,
.mak-testimonials-home .ti-widget .ti-controls .ti-prev {
    background: rgba(255,255,255,0.15) !important;
    color: #fff !important;
}

/* ===== Area Guides Cards ===== */
.area-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 30px;
}
.area-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: #ffffff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    text-decoration: none !important;
    color: #333 !important;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
}
.area-card:hover {
    border-color: var(--mak-green);
    background: #f0faf5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,122,83,0.1);
}
.area-card-arrow {
    color: var(--mak-green);
    font-size: 1.2rem;
    font-weight: 700;
}
@media (max-width: 768px) {
    .area-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .area-cards-grid { grid-template-columns: 1fr; }
}

/* Fix stamp duty input — push text right of £ */
.mak-price-input {
    padding-left: 38px !important;
}

/* ===== Why MAK Estates — Feature Cards ===== */
.why-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}
.why-feature-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 35px 30px;
    text-align: center;
    transition: all 0.25s ease;
}
.why-feature-card:hover {
    border-color: #007A53;
    box-shadow: 0 8px 24px rgba(0,122,83,0.08);
    transform: translateY(-3px);
}
.why-feature-icon {
    margin-bottom: 20px;
}
.why-feature-card h3 {
    font-family: 'Jura', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.why-feature-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #666;
    margin: 0;
}
@media (max-width: 768px) {
    .why-features-grid { grid-template-columns: 1fr; gap: 20px; }
    .why-feature-card { padding: 25px 20px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .why-features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Property Search Archive — hero full-width fix ===== */
body.post-type-archive-property .mak-page-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    position: relative !important;
    min-height: 600px !important;
    background-size: 100% auto !important;
    background-position: center 40% !important;
    background-repeat: no-repeat !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding-top: 120px !important;
    margin-top: -1px !important;
    margin-bottom: 40px !important;
}
body.post-type-archive-property .mak-page-hero .page-hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}
body.post-type-archive-property .mak-page-hero .page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px;
    max-width: 800px;
}
body.post-type-archive-property .mak-page-hero .page-hero-content h1 {
    color: #ffffff !important;
    font-family: "Jura", sans-serif !important;
    font-size: 42px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 0 10px !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
body.post-type-archive-property .mak-page-hero .page-hero-content .page-hero-sub {
    color: rgba(255,255,255,0.9) !important;
    font-family: "Nunito", sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
body.post-type-archive-property .mak-page-hero::after {
    display: none !important;
}
body.post-type-archive-property .site-content {
    padding-top: 0 !important;
}
@media (max-width: 768px) {
    body.post-type-archive-property .mak-page-hero {
        min-height: 350px !important;
        padding-top: 80px !important;
    }
    body.post-type-archive-property .mak-page-hero .page-hero-content h1 {
        font-size: 28px !important;
    }
}

}

/* ========== FAQ pill links (on Lettings / Renting pages) ========== */
.mak-faq-pills {
    text-align: center;
    padding: 32px 20px 0;
    max-width: 860px;
    margin: 0 auto;
}
.mak-faq-pills p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.faq-pill-link {
    display: inline-block;
    border: 2px solid #007A53;
    color: #007A53 !important;
    font-family: 'Nunito', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none !important;
    margin: 5px;
    transition: all 0.2s;
}
.faq-pill-link:hover {
    background: #007A53;
    color: #fff !important;
}

/* ===== NO PROPERTIES FOUND ===== */
.mak-no-results {
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}
.mak-no-results-inner {
    max-width: 560px;
    margin: 0 auto;
    background: var(--mak-dark, #1a1a1a);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 48px 40px;
}
.mak-no-results-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}
.mak-no-results h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 12px;
}
.mak-no-results p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 28px;
}
.mak-no-results-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-ghost-dark {
    display: inline-block;
    padding: 10px 22px;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff !important;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-ghost-dark:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

/* ===== PROPERTY PAGE — WHATSAPP ACTION ===== */
.action-whatsapp a {
    background: #25D366 !important;
    color: #fff !important;
    border-color: #25D366 !important;
}
.action-whatsapp a:hover {
    background: #1ebe5d !important;
    border-color: #1ebe5d !important;
}
