/* =========================================================
   ABUJA LANDS & HOME HUBS
   COMPLETE WEBSITE STYLESHEET
   ========================================================= */


/* =========================================================
   1. ROOT VARIABLES
   ========================================================= */

:root {
    --dark: #10231c;
    --dark-2: #0b1712;
    --dark-3: #18352a;

    --gold: #c99b3b;
    --gold-light: #d9b35d;
    --gold-dark: #85651f;

    --cream: #f7f4ed;
    --cream-2: #fbfaf7;

    --text: #18231e;
    --muted: #66736d;

    --white: #ffffff;
    --border: #e5e7e5;
    --border-light: #eeeeee;

    --success: #237a4b;
    --danger: #a62626;

    --shadow-sm: 0 4px 15px rgba(16, 35, 28, .07);
    --shadow-md: 0 10px 30px rgba(16, 35, 28, .10);
    --shadow-lg: 0 20px 50px rgba(16, 35, 28, .15);
}


/* =========================================================
   2. RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family: Inter, Arial, Helvetica, sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: var(--white);
}


/* =========================================================
   3. GENERAL LAYOUT
   ========================================================= */

.wrap {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.section {
    padding: 85px 0;
}

.section h1,
.section h2 {
    font-size: 42px;
    line-height: 1.15;

    margin: 8px 0 20px;

    color: var(--dark);
}

.eyebrow {
    margin: 0;

    font-size: 12px;
    line-height: 1.2;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: var(--gold);

    font-weight: 800;
}

.muted {
    color: var(--muted);
}


/* =========================================================
   4. HEADER / NAVIGATION
   ========================================================= */

.nav {
    position: sticky;
    top: 0;

    z-index: 1000;

    background: rgba(255, 255, 255, .97);

    border-bottom: 1px solid var(--border-light);

    box-shadow: 0 2px 10px rgba(0, 0, 0, .03);
}

.navin {
    min-height: 76px;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* Logo */

.brand {
    display: inline-block;

    color: var(--dark);

    font-weight: 900;

    font-size: 15px;

    letter-spacing: .8px;

    line-height: 1.2;

    white-space: nowrap;
}

.brand span {
    color: var(--gold);

    font-weight: 500;
}


/* Main navigation */

.main-nav {
    display: flex;
    align-items: center;

    gap: 26px;

    margin-left: auto;
}

.main-nav > a,
.dropdown-toggle {
    position: relative;

    display: inline-flex;
    align-items: center;

    gap: 5px;

    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    padding: 12px 0;

    transition:
        color .25s ease,
        transform .25s ease;
}

.main-nav > a:hover,
.dropdown-toggle:hover {
    color: var(--gold);
}


/* Navigation underline */

.main-nav > a::after,
.dropdown-toggle::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 4px;

    width: 0;
    height: 2px;

    background: var(--gold);

    transition: width .25s ease;
}

.main-nav > a:hover::after,
.dropdown-toggle:hover::after {
    width: 100%;
}


/* =========================================================
   5. PROPERTY DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;
}


/* Arrow */

.arrow {
    display: inline-block;

    color: var(--gold);

    font-size: 12px;

    transition: transform .25s ease;
}

.nav-dropdown:hover .arrow,
.nav-dropdown:focus-within .arrow {
    transform: rotate(180deg);
}


/* Dropdown */

.dropdown-menu {
    position: absolute;

    top: calc(100% + 8px);
    left: 50%;

    width: 310px;

    padding: 9px;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    box-shadow:
        0 18px 45px rgba(16, 35, 28, .14),
        0 4px 12px rgba(0, 0, 0, .05);

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transform: translate(-50%, 10px);

    transition:
        opacity .22s ease,
        visibility .22s ease,
        transform .22s ease;

    z-index: 2000;
}


/* Gold line */

.dropdown-menu::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 25px;
    right: 25px;

    height: 3px;

    background: var(--gold);

    border-radius: 0 0 5px 5px;
}


/* Show dropdown */

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translate(-50%, 0);
}


/* Dropdown links */

.dropdown-menu a {
    position: relative;

    display: block;

    padding: 13px 15px;

    border-radius: 7px;

    color: var(--text);

    transition:
        background .2s ease,
        padding-left .2s ease;
}

.dropdown-menu a:hover {
    background: var(--cream);

    padding-left: 19px;
}


/* Category title */

.dropdown-menu strong {
    display: block;

    color: var(--dark);

    font-size: 14px;

    font-weight: 800;

    margin-bottom: 3px;
}

.dropdown-menu a:hover strong {
    color: var(--gold-dark);
}


/* Category description */

.dropdown-menu small {
    display: block;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.45;
}


/* Arrow on dropdown item */

.dropdown-menu a::before {
    content: "›";

    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--gold);

    font-size: 20px;

    opacity: 0;

    transition:
        opacity .2s ease,
        right .2s ease;
}

.dropdown-menu a:hover::before {
    right: 10px;

    opacity: 1;
}


/* =========================================================
   6. WHATSAPP BUTTON
   ========================================================= */

.wa {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    white-space: nowrap;

    background: var(--dark);

    color: var(--white);

    padding: 11px 17px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 700;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.wa:hover {
    background: var(--dark-3);

    transform: translateY(-1px);

    box-shadow: var(--shadow-sm);
}


/* =========================================================
   7. HERO SECTION
   ========================================================= */

.hero {
    position: relative;

    min-height: 610px;

    display: flex;

    align-items: center;

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(10, 27, 20, .96),
            rgba(10, 27, 20, .65)
        ),
        url('../images/property-placeholder.svg')
        center / cover no-repeat;
}

.hero-in {
    padding: 90px 0;
}

.hero h1 {
    max-width: 850px;

    margin: 18px 0;

    font-size: clamp(42px, 7vw, 76px);

    line-height: 1.02;

    letter-spacing: -1.5px;

    color: var(--white);
}

.hero h1 span {
    color: var(--gold-light);
}

.lead {
    max-width: 620px;

    margin: 0;

    font-size: 19px;

    line-height: 1.7;

    color: #e3e9e5;
}


/* =========================================================
   8. BUTTONS
   ========================================================= */

.actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 14px 22px;

    border: 1px solid var(--gold);

    border-radius: 5px;

    background: var(--gold);

    color: #111;

    font-weight: 800;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.btn:hover {
    background: var(--gold-light);

    border-color: var(--gold-light);

    transform: translateY(-2px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, .15);
}


/* Transparent button */

.btn.ghost,
.ghost {
    background: transparent;

    border-color: rgba(255, 255, 255, .6);

    color: var(--white);
}

.btn.ghost:hover,
.ghost:hover {
    background: var(--white);

    color: var(--dark);

    border-color: var(--white);
}


/* =========================================================
   9. SECTION HEAD
   ========================================================= */

.sectionhead {
    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 20px;

    margin-bottom: 35px;
}

.sectionhead > a {
    color: var(--gold-dark);

    font-weight: 800;

    font-size: 14px;

    white-space: nowrap;
}

.sectionhead > a:hover {
    color: var(--gold);
}


/* =========================================================
   10. PROPERTY GRID
   ========================================================= */

.grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


/* =========================================================
   11. PROPERTY CARD
   ========================================================= */

.card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 10px;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.card:hover {
    transform: translateY(-5px);

    border-color: #d8ddd9;

    box-shadow: var(--shadow-lg);
}


/* Property image */

.photo {
    position: relative;

    height: 230px;

    display: flex;

    justify-content: flex-end;
    align-items: flex-start;

    padding: 15px;

    background-size: cover;

    background-position: center;

    background-color: var(--cream);
}


/* Status badge */

.photo span {
    display: inline-flex;

    align-items: center;

    min-height: 28px;

    padding: 7px 11px;

    background: rgba(255, 255, 255, .95);

    color: var(--dark);

    border-radius: 20px;

    font-size: 12px;

    font-weight: 800;

    box-shadow: var(--shadow-sm);
}


/* Card body */

.cardbody {
    padding: 20px;
}


/* Property type */

.type {
    margin: 0 0 7px;

    color: var(--gold-dark);

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    font-weight: 800;
}


/* Property title */

.card h3 {
    margin: 8px 0;

    font-size: 21px;

    line-height: 1.3;

    color: var(--dark);
}


/* Location */

.location {
    margin: 0;

    color: var(--muted);

    line-height: 1.5;

    font-size: 14px;
}


/* Property specifications */

.specs {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin: 16px 0;
}

.specs span {
    padding: 7px 9px;

    background: #f3f5f2;

    border-radius: 4px;

    color: #5b665f;

    font-size: 13px;
}


/* Price */

.price {
    display: block;

    margin: 15px 0;

    color: var(--dark);

    font-size: 23px;

    line-height: 1.2;
}


/* View property */

.more {
    color: var(--gold-dark);

    font-weight: 800;

    font-size: 14px;
}

.more:hover {
    color: var(--gold);
}


/* =========================================================
   12. ABOUT SECTION
   ========================================================= */

.about {
    padding: 90px 0;

    background: var(--cream);
}

.aboutgrid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}

.about h2 {
    margin-top: 10px;

    color: var(--dark);

    font-size: 42px;

    line-height: 1.15;
}

.about p {
    margin: 0 0 18px;

    color: #4e5b54;

    font-size: 18px;

    line-height: 1.8;
}


/* =========================================================
   13. CONTACT SECTION
   ========================================================= */

.contactbox {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 30px;

    padding: 45px;

    background: var(--dark);

    color: var(--white);

    border-radius: 12px;

    box-shadow: var(--shadow-md);
}

.contactbox h2 {
    margin: 8px 0 15px;

    color: var(--white);

    font-size: 38px;

    line-height: 1.15;
}

.contactbox p {
    color: #d5ded9;

    line-height: 1.7;
}


/* Contact details */

.contactdetails {
    display: grid;

    gap: 0;

    align-content: center;
}

.contactdetails a,
.contactdetails span {
    display: block;

    padding: 15px 0;

    color: #e8eee9;

    border-bottom: 1px solid #345046;

    line-height: 1.5;
}

.contactdetails a:hover {
    color: var(--gold-light);
}


/* =========================================================
   14. FOOTER
   ========================================================= */

footer {
    padding: 30px 0;

    background: var(--dark-2);

    color: var(--white);
}

footer .wrap {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;
}

footer strong {
    color: var(--white);
}

footer span {
    color: #b9c2bd;

    font-size: 13px;
}


/* =========================================================
   15. PROPERTY FILTERS
   ========================================================= */

.filters {
    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1fr
        auto;

    gap: 12px;

    margin: 25px 0 40px;
}

.filters input,
.filters select {
    width: 100%;

    min-height: 48px;

    padding: 13px 14px;

    border: 1px solid #d9ddd9;

    border-radius: 5px;

    background: var(--white);

    color: var(--text);

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.filters input:focus,
.filters select:focus {
    border-color: var(--gold);

    box-shadow: 0 0 0 3px rgba(201, 155, 59, .12);
}


/* =========================================================
   16. PROPERTY DETAIL PAGE
   ========================================================= */

.detailgrid {
    display: grid;

    grid-template-columns: 1.1fr .9fr;

    gap: 55px;

    margin-top: 30px;
}

.bigphoto {
    min-height: 500px;

    background-size: cover;

    background-position: center;

    border-radius: 10px;

    background-color: var(--cream);
}

.description {
    margin: 25px 0 30px;

    color: #4e5b54;

    line-height: 1.8;
}

.detailgrid h1 {
    color: var(--dark);

    line-height: 1.15;
}


/* =========================================================
   17. PROPERTY FORMS
   ========================================================= */

.formwrap {
    width: 100%;

    max-width: 800px;
}

.propertyform {
    display: grid;

    gap: 18px;
}

.propertyform label {
    display: grid;

    gap: 7px;

    color: var(--dark);

    font-weight: 700;
}

.propertyform input,
.propertyform select,
.propertyform textarea {
    width: 100%;

    padding: 14px;

    border: 1px solid #d9ddd9;

    border-radius: 5px;

    background: var(--white);

    color: var(--text);

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.propertyform input:focus,
.propertyform select:focus,
.propertyform textarea:focus {
    border-color: var(--gold);

    box-shadow: 0 0 0 3px rgba(201, 155, 59, .12);
}

.propertyform textarea {
    min-height: 150px;

    resize: vertical;
}

.twocol {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


/* Checkbox */

.check {
    display: flex !important;

    grid-template-columns: none !important;

    align-items: center;

    gap: 9px;
}

.check input {
    width: auto !important;
}


/* =========================================================
   18. LOGIN
   ========================================================= */

.login {
    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 30px;

    background: var(--cream);
}

.loginbox {
    width: min(420px, 100%);

    display: grid;

    gap: 15px;

    padding: 35px;

    background: var(--white);

    border-radius: 10px;

    box-shadow: var(--shadow-lg);
}

.loginbox h1 {
    margin: 0 0 5px;

    color: var(--dark);

    font-size: 30px;
}

.loginbox small {
    color: var(--muted);
}

.loginbox input {
    width: 100%;

    padding: 14px;

    border: 1px solid #d9ddd9;

    border-radius: 5px;

    outline: none;
}

.loginbox input:focus {
    border-color: var(--gold);

    box-shadow: 0 0 0 3px rgba(201, 155, 59, .12);
}


/* =========================================================
   19. ERROR / SUCCESS MESSAGES
   ========================================================= */

.error {
    padding: 11px 13px;

    background: #fff0f0;

    color: var(--danger);

    border: 1px solid #f3cccc;

    border-radius: 5px;

    font-size: 14px;
}

.success {
    padding: 11px 13px;

    background: #edf8f1;

    color: var(--success);

    border: 1px solid #cbe8d5;

    border-radius: 5px;

    font-size: 14px;
}


/* =========================================================
   20. ADMIN NAVIGATION
   ========================================================= */

.adminnav {
    display: flex;

    align-items: center;

    gap: 20px;

    padding: 18px 4%;

    background: var(--dark);

    color: var(--white);
}

.adminnav a {
    padding: 8px;

    color: #e5ece8;

    font-size: 14px;
}

.adminnav a:hover {
    color: var(--gold-light);
}

.adminnav a:nth-child(2) {
    margin-left: auto;
}


/* =========================================================
   21. ADMIN STATISTICS
   ========================================================= */

.adminstats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;

    margin: 20px 0;
}

.adminstats div {
    padding: 22px;

    background: var(--cream);

    border: 1px solid #ebe6da;

    border-radius: 8px;
}

.adminstats b {
    display: block;

    margin-bottom: 5px;

    color: var(--dark);

    font-size: 32px;
}

.adminstats span {
    color: var(--muted);

    font-size: 13px;
}


/* =========================================================
   22. ADMIN TABLE
   ========================================================= */

.tablewrap {
    width: 100%;

    overflow-x: auto;

    border: 1px solid var(--border);

    border-radius: 8px;

    background: var(--white);
}

table {
    width: 100%;

    min-width: 700px;

    border-collapse: collapse;
}

th,
td {
    padding: 15px;

    text-align: left;

    border-bottom: 1px solid #ddd;

    font-size: 14px;
}

th {
    background: var(--cream);

    color: var(--dark);

    font-weight: 800;
}

tr:last-child td {
    border-bottom: 0;
}

tr:hover td {
    background: #fcfcfa;
}


/* =========================================================
   23. UTILITY CLASSES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-0 {
    margin-top: 0;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}


/* =========================================================
   24. TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .aboutgrid {
        gap: 45px;
    }

    .detailgrid {
        gap: 30px;
    }

    .adminstats {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   25. MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .navin {
        min-height: 70px;

        flex-wrap: wrap;

        gap: 10px;
    }


    /* Logo */

    .brand {
        font-size: 14px;
    }


    /* WhatsApp */

    .navin .wa {
        margin-left: auto;

        padding: 9px 13px;

        font-size: 12px;
    }


    /* Main navigation */

    .main-nav {
        order: 3;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        margin-left: 0;

        padding: 8px 0 10px;

        border-top: 1px solid var(--border-light);
    }


    .main-nav > a,
    .dropdown-toggle {
        width: 100%;

        justify-content: space-between;

        padding: 12px 5px;
    }


    /* Remove desktop underline */

    .main-nav > a::after,
    .dropdown-toggle::after {
        display: none;
    }


    /* Dropdown container */

    .nav-dropdown {
        width: 100%;
    }


    /*
       On mobile the dropdown is kept inside
       the navigation instead of floating.
    */

    .dropdown-menu {
        position: static;

        width: 100%;

        margin: 0;

        padding: 5px 0 8px 12px;

        border: 0;

        border-left: 2px solid var(--gold);

        border-radius: 0;

        box-shadow: none;

        transform: none;

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        display: none;
    }


    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown:focus-within .dropdown-menu {
        display: block;

        transform: none;
    }


    .dropdown-menu::before {
        display: none;
    }


    .dropdown-menu a {
        padding: 10px 14px;
    }


    .dropdown-menu strong {
        font-size: 13px;
    }


    .dropdown-menu small {
        font-size: 11px;
    }


    .dropdown-menu a::before {
        display: none;
    }


    /* Hero */

    .hero {
        min-height: 560px;
    }

    .hero-in {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: clamp(40px, 12vw, 60px);
    }

    .lead {
        font-size: 17px;
    }


    /* Sections */

    .section {
        padding: 60px 0;
    }

    .section h1,
    .section h2 {
        font-size: 34px;
    }


    /* Property grid */

    .grid {
        grid-template-columns: 1fr;
    }


    /* Section heading */

    .sectionhead {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 25px;
    }


    /* About */

    .about {
        padding: 65px 0;
    }

    .aboutgrid {
        grid-template-columns: 1fr;

        gap: 25px;
    }

    .about h2 {
        font-size: 34px;
    }

    .about p {
        font-size: 16px;
    }


    /* Contact */

    .contactbox {
        grid-template-columns: 1fr;

        gap: 20px;

        padding: 30px;
    }

    .contactbox h2 {
        font-size: 32px;
    }


    /* Detail */

    .detailgrid {
        grid-template-columns: 1fr;

        gap: 30px;
    }

    .bigphoto {
        min-height: 320px;
    }


    /* Filters */

    .filters {
        grid-template-columns: 1fr;
    }


    /* Forms */

    .twocol {
        grid-template-columns: 1fr;
    }


    /* Admin */

    .adminnav {
        flex-wrap: wrap;

        gap: 8px;
    }

    .adminnav a:nth-child(2) {
        margin-left: 0;
    }


    /* Footer */

    footer .wrap {
        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }
}


/* =========================================================
   26. SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {

    .wrap {
        width: 94%;
    }


    .hero {
        min-height: 520px;
    }

    .hero h1 {
        font-size: 42px;

        letter-spacing: -1px;
    }

    .lead {
        font-size: 16px;
    }


    .actions {
        flex-direction: column;

        align-items: stretch;
    }

    .actions .btn {
        width: 100%;
    }


    .photo {
        height: 215px;
    }


    .cardbody {
        padding: 17px;
    }


    .price {
        font-size: 21px;
    }


    .contactbox {
        padding: 25px;
    }


    .contactbox h2 {
        font-size: 29px;
    }


    .adminstats {
        grid-template-columns: 1fr;
    }


    .login {
        padding: 20px;
    }

    .loginbox {
        padding: 25px 20px;
    }
}


/* =========================================================
   27. ACCESSIBILITY
   ========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(201, 155, 59, .35);

    outline-offset: 2px;
}


/* =========================================================
   28. REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;

        animation: none !important;
    }
}