/* =========================================
   NextDar - Professional Real Estate Design
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #172033;
    line-height: 1.6;
}

/* =========================================
   HEADER
   ========================================= */

header {
    background: linear-gradient(135deg, #071b33, #0b355f);
    color: #ffffff;
    padding: 18px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
    position: relative;
    z-index: 10;
}

.brand {
    color: #ffffff;
    text-decoration: none;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1px;
}

.brand span {
    color: #20c7a8;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: .2s ease;
}

nav a:hover {
    color: #20c7a8;
}

/* =========================================
   MAIN
   ========================================= */

main {
    width: min(1180px, 92%);
    margin: 0 auto;
    padding: 45px 0;
}

h1,
h2,
h3 {
    color: #071b33;
}

h2 {
    font-size: 30px;
    margin-bottom: 25px;
}

h3 {
    font-size: 21px;
}

/* =========================================
   HERO
   ========================================= */

.hero {
    background:
        linear-gradient(135deg, rgba(7,27,51,.97), rgba(8,91,117,.94));
    color: #ffffff;
    border-radius: 28px;
    padding: 75px 45px;
    margin-bottom: 50px;
    box-shadow: 0 18px 45px rgba(7,27,51,.18);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border-radius: 50%;
    background: rgba(32,199,168,.13);
    top: -150px;
    right: -90px;
}

.hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    bottom: -140px;
    left: -80px;
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 60px);
    margin: 0 0 15px;
    line-height: 1.1;
    position: relative;
    z-index: 2;
}

.hero h1 span {
    color: #ffffff;
}

.hero p {
    color: #ffffff;
    font-size: 19px;
    opacity: .92;
    margin: 0 0 30px;
    position: relative;
    z-index: 2;
}

/* =========================================
   SEARCH
   ========================================= */

.search,
.search-box {
    background: #ffffff;
    padding: 14px;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    max-width: 850px;
    box-shadow: 0 12px 35px rgba(0,0,0,.18);
    position: relative;
    z-index: 3;
}

.search input,
.search-box input,
.search select,
.search-box select {
    flex: 1;
    min-width: 0;
    margin: 0;
    border: 1px solid #dce4ed;
    background: #f8fafc;
    color: #172033;
    padding: 15px 16px;
    border-radius: 12px;
    font-size: 15px;
    outline: none;
}

.search input:focus,
.search-box input:focus,
.search select:focus,
.search-box select:focus {
    border-color: #20c7a8;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(32,199,168,.12);
}

.search button {
    margin: 0;
    white-space: nowrap;
}

/* =========================================
   BUTTONS
   ========================================= */

button,
.btn {
    border: 0;
    background: linear-gradient(135deg, #12a884, #087f75);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: .2s ease;
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(18,168,132,.25);
}

.btn-secondary {
    background: #071b33;
}

.btn-danger {
    background: #d64545;
}

.btn-light {
    background: #eef4f8;
    color: #172033;
}

/* =========================================
   NEXTDAR SERVICES
   ========================================= */

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 25px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e3eaf1;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #172033;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: .25s ease;
    box-shadow: 0 8px 25px rgba(20,35,50,.06);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: #20c7a8;
    box-shadow: 0 16px 35px rgba(20,35,50,.12);
}

.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: #edf9f6;
    color: #087f75;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.service-icon svg {
    width: 34px;
    height: 34px;
    display: block;
}

.service-card h3 {
    margin: 0 0 5px;
    font-size: 20px;
    color: #071b33;
}

.service-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* =========================================
   PROPERTY GRID
   ========================================= */

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card,
.property-card {
    background: #ffffff;
    border: 1px solid #e3eaf1;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(20,35,50,.07);
    transition: .25s ease;
    overflow: hidden;
}

.card:hover,
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 35px rgba(20,35,50,.13);
}

.card img,
.property-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    margin-bottom: 18px;
}

.card h3,
.property-card h3 {
    margin: 8px 0;
}

.card h4 {
    margin: 5px 0;
    color: #475569;
}

.card p,
.property-card p {
    color: #64748b;
    margin: 7px 0;
}

.card small {
    color: #087f75;
    font-weight: 700;
}

.card strong {
    color: #087f75;
    font-size: 22px;
    font-weight: 800;
    display: block;
    margin: 10px 0;
}

.pad {
    padding: 0;
}

.noimg {
    width: 100%;
    height: 240px;
    border-radius: 15px;
    background: linear-gradient(135deg, #071b33, #0b5570);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 18px;
}

/* =========================================
   FORMS
   ========================================= */

form:not(.search):not(.search-box) {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #e3eaf1;
    box-shadow: 0 8px 25px rgba(20,35,50,.07);
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 15px;
    margin: 7px 0 15px;
    border: 1px solid #d8e1ea;
    border-radius: 11px;
    background: #f8fafc;
    color: #172033;
    font-size: 15px;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #12a884;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(18,168,132,.10);
}

textarea {
    min-height: 130px;
    resize: vertical;
}

label {
    font-weight: 700;
    color: #26364a;
}

/* =========================================
   ALERTS
   ========================================= */

.flash,
.alert {
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    background: #eef8f6;
    border: 1px solid #b8e5dc;
    color: #075f55;
}

/* =========================================
   TABLE
   ========================================= */

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(20,35,50,.06);
}

th,
td {
    padding: 14px;
    border-bottom: 1px solid #e5ebf1;
    text-align: left;
}

th {
    background: #071b33;
    color: #ffffff;
}

/* =========================================
   PROPERTY DETAILS
   ========================================= */

.property-detail {
    background: #ffffff;
    padding: 30px;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(20,35,50,.08);
}

.property-detail img {
    max-width: 100%;
    border-radius: 18px;
}

/* =========================================
   BADGES
   ========================================= */

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    background: #e6f8f4;
    color: #087f75;
    font-size: 13px;
    font-weight: 700;
}

.badge-featured {
    background: #fff3d6;
    color: #a76a00;
}

/* =========================================
   EMPTY STATE
   ========================================= */

.empty-state,
.no-properties {
    background: #ffffff;
    padding: 45px 25px;
    text-align: center;
    border-radius: 20px;
    border: 1px solid #e3eaf1;
    color: #64748b;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    margin-top: 70px;
    padding: 35px 6%;
    background: #071b33;
    color: #dce7f1;
    text-align: center;
}

footer a {
    color: #20c7a8;
    text-decoration: none;
}

a {
    color: #087f75;
}

a:hover {
    color: #12a884;
}

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 900px) {

    header {
        padding: 18px 5%;
        flex-direction: column;
        text-align: center;
    }

    nav {
        gap: 14px;
    }

    main {
        width: 94%;
    }

    .hero {
        padding: 55px 28px;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search,
    .search-box {
        flex-direction: column;
    }

    .search input,
    .search-box input,
    .search button,
    .search-box button {
        width: 100%;
    }
}

@media (max-width: 600px) {

    main {
        width: 94%;
        padding: 25px 0;
    }

    .brand {
        font-size: 28px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 45px 20px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero p {
        font-size: 16px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .property-card {
        padding: 16px;
    }

    .card img,
    .property-card img,
    .noimg {
        height: 210px;
    }

    form:not(.search):not(.search-box) {
        padding: 20px;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 9px;
    }
}/* FIX SERVICE ICON SIZE */
.service-card .service-icon {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.service-card .service-icon svg {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    display: block !important;
}