/* =========================================================
   SEWABAH.COM
   MASTER CSS
   Cari. Pilih. Duduk.
   ========================================================= */


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: #f7f9f8;

    color: #172b24;

    padding-bottom: 80px;

    line-height: 1.45;

    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {

    position: sticky;

    top: 0;

    z-index: 100;

    background: rgba(255,255,255,.96);

    border-bottom: 1px solid #edf1ef;

    backdrop-filter: blur(15px);
}

.header-inner {

    width: 100%;

    max-width: 1120px;

    min-height: 68px;

    margin: 0 auto;

    padding: 0 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.brand {

    display: flex;

    align-items: center;

    gap: 10px;
}

.brand-icon {

    width: 42px;

    height: 42px;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            #087f5b,
            #12967a
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 18px;

    font-weight: 900;

    box-shadow:
        0 7px 18px
        rgba(8,127,91,.15);
}

.brand-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.brand-name {

    color: #18372c;

    font-size: 17px;

    font-weight: 850;

    letter-spacing: -.5px;
}

.brand-tagline {

    margin-top: 2px;

    color:#116f66;

    font-size:12px;    font-weight:600;
}

.desktop-nav {

    display: flex;

    align-items: center;

    gap: 4px;
}

.nav-link {

    padding: 10px 13px;

    border-radius: 10px;

    color: #64746d;

    font-size: 12px;

    font-weight: 650;
}

.nav-link:hover {

    background: #f0f8f4;

    color: #087f5b;
}

.nav-button {

    padding: 11px 16px;

    border-radius: 11px;

    background: #087f5b;

    color: white;

    font-size: 12px;

    font-weight: 750;

    box-shadow:
        0 6px 15px
        rgba(8,127,91,.14);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {

    width: calc(100% - 30px);

    max-width: 1120px;

    margin: 15px auto 0;

    overflow: hidden;

    position: relative;

    border-radius: 30px;

    background:
        linear-gradient(
            145deg,
            #116f66 0%,
            #0d776e 48%,
            #086e63 100%
        );

    color: white;

    box-shadow:
        0 18px 45px
        rgba(17,77,65,.15);
}

.hero::before {

    content: "";

    position: absolute;

    width: 390px;

    height: 390px;

    right: -190px;

    top: -200px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.055);
}

.hero::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    left: -170px;

    bottom: -210px;

    border-radius: 50%;

    background:
        rgba(0,0,0,.035);
}

.hero-inner {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 900px;

    margin: 0 auto;

    padding:
        55px 55px 58px;
}

.hero-eyebrow {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #e6f8f3;

    font-size: 15px;

    font-weight: 500;
}

.hero-eyebrow-flag {

    font-size: 23px;
}

.hero-title {

    max-width: 720px;

    margin-top: 20px;

    color: white;

    font-size:
        clamp(42px,6vw,68px);

    line-height: .98;

    letter-spacing: -3px;

    font-weight: 850;
}

.hero-title .yellow {

    color: #f6dd43;
}

.hero-text {

    max-width: 650px;

    margin-top: 25px;

    color: #d8efea;

    font-size: 17px;

    line-height: 1.6;
}

.hero-stat {

    margin-top: 15px;

    display: flex;

    align-items: center;

    gap: 8px;

    color: #dff7ef;

    font-size: 12px;

    font-weight: 600;
}

.hero-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #f6dd43;

    box-shadow:
        0 0 0 4px
        rgba(246,221,67,.13);
}


/* =========================================================
   SEARCH
   ========================================================= */

.search-box {

    width: 100%;

    margin-top: 30px;

    padding: 9px;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        auto;

    gap: 0;

    background: white;

    border-radius: 22px;

    box-shadow:
        0 16px 38px
        rgba(0,0,0,.14);
}

.search-field {

    width: 100%;

    min-width: 0;

    min-height: 58px;

    padding:
        10px 15px;

    border: 0;

    border-right:
        1px solid #edf1ef;

    outline: none;

    background: white;

    color: #25352f;

    font-size: 13px;

    font-weight: 550;

    cursor: pointer;
}

.search-field:first-child {

    border-radius: 14px 0 0 14px;
}

.search-field:focus {

    background: #fbfdfc;
}

.search-button {

    min-height: 58px;

    padding: 0 23px;

    border: 0;

    border-radius: 14px;

    cursor: pointer;

    background: #087f5b;

    color: white;

    font-size: 12px;

    font-weight: 800;

    white-space: nowrap;

    transition: .2s;
}

.search-button:hover {

    background: #076d4e;

    transform: translateY(-1px);
}


/* =========================================================
   MAIN
   ========================================================= */

.container {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;

    padding: 0 20px;
}

.section {

    padding-top: 50px;
}

.section-header {

    width: 100%;

    margin:
        0 auto 20px;

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;
}

.section-title {

    color: #172b24;

    font-size: 24px;

    line-height: 1.15;

    letter-spacing: -.8px;

    font-weight: 820;
}

.section-subtitle {

    margin-top: 6px;

    color: #8a9691;

    font-size: 12px;
}

.view-all {

    flex-shrink: 0;

    color: #147d6e;

    font-size: 13px;

    font-weight: 750;
}


/* =========================================================
   CATEGORY
   ========================================================= */

.category-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(6,minmax(0,1fr));

    gap: 13px;
}

.category {

    min-height: 125px;

    padding: 18px 12px;

    border:
        1px solid #edf0ee;

    border-radius: 21px;

    background: white;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    box-shadow:
        0 4px 16px
        rgba(25,60,45,.035);

    transition:
        transform .2s,
        box-shadow .2s,
        border-color .2s;
}

.category:hover {

    transform: translateY(-3px);

    border-color: #cde6dc;

    box-shadow:
        0 12px 28px
        rgba(25,60,45,.08);
}

.category-icon {

    width: 55px;

    height: 55px;

    margin-bottom: 10px;

    border-radius: 17px;

    background: #f2f7f5;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 29px;
}

.category-name {

    color: #34453e;

    font-size: 11px;

    line-height: 1.3;

    font-weight: 700;
}


/* =========================================================
   LISTING GRID
   ========================================================= */

.listing-grid {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap: 17px;
}

.listing-card {

    overflow: hidden;

    background: white;

    border:
        1px solid #edf0ee;

    border-radius: 19px;

    box-shadow:
        0 4px 16px
        rgba(25,60,45,.04);

    transition:
        transform .2s,
        box-shadow .2s;
}

.listing-card:hover {

    transform:
        translateY(-3px);

    box-shadow:
        0 12px 28px
        rgba(25,60,45,.10);
}

.listing-image-wrap {

    position: relative;

    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #edf3f0;
}

.listing-image {

    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform .35s;
}

.listing-card:hover .listing-image {

    transform: scale(1.025);
}

.listing-badge {

    position: absolute;

    top: 10px;

    left: 10px;

    padding:
        6px 9px;

    border-radius: 8px;

    background:
        #d5a900;

    color: white;

    font-size: 8px;

    font-weight: 850;

    letter-spacing: .4px;
}

.badge-top {

    background: #2776b8;
}

.badge-highlight {

    background: #e56a19;
}

.listing-body {

    padding: 15px;
}

.listing-category {

    color: #98a49f;

    font-size: 8px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .55px;
}

.listing-title {

    min-height: 39px;

    margin-top: 6px;

    color: #23372f;

    font-size: 14px;

    line-height: 1.4;

    font-weight: 750;

    display: -webkit-box;

    -webkit-box-orient: vertical;

    -webkit-line-clamp: 2;

    overflow: hidden;
}

.listing-location {

    margin-top: 7px;

    color: #82908a;

    font-size: 10px;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.listing-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 5px;

    margin-top: 10px;
}

.meta {

    padding:
        5px 7px;

    border-radius: 7px;

    background: #f0f7f4;

    color: #60766d;

    font-size: 8px;

    font-weight: 650;
}

.listing-price {

    margin-top: 12px;

    color: #087f5b;

    font-size: 14px;

    font-weight: 850;
}


/* =========================================================
   EMPTY
   ========================================================= */

.empty-box {

    width: 100%;

    padding:
        48px 20px;

    text-align: center;

    border:
        1px dashed #d4e2dc;

    border-radius: 20px;

    background: white;

    color: #85938d;

    font-size: 12px;
}

.empty-icon {

    width: 54px;

    height: 54px;

    margin:
        0 auto 12px;

    border-radius: 17px;

    background: #edf8f3;

    color: #087f5b;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 23px;
}

.empty-title {

    margin-bottom: 5px;

    color: #30453c;

    font-size: 15px;

    font-weight: 750;
}


/* =========================================================
   OWNER CTA
   ========================================================= */

.owner-cta {

    position: relative;

    overflow: hidden;

    width: 100%;

    padding:
        34px 25px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #116f66,
            #087f5b
        );

    color: white;

    text-align: center;

    box-shadow:
        0 12px 30px
        rgba(8,127,91,.12);
}

.owner-cta::after {

    content: "";

    position: absolute;

    width: 260px;

    height: 260px;

    right: -120px;

    bottom: -170px;

    border-radius: 50%;

    background:
        rgba(255,255,255,.06);
}

.owner-cta-content {

    position: relative;

    z-index: 2;
}

.owner-cta h2 {

    font-size: 24px;

    line-height: 1.2;

    letter-spacing: -.7px;
}

.owner-cta p {

    max-width: 620px;

    margin:
        8px auto 0;

    color: #d9f2eb;

    font-size: 13px;

    line-height: 1.6;
}

.owner-cta-button {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 19px;

    padding:
        13px 22px;

    border-radius: 12px;

    background: white;

    color: #087f5b;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 6px 18px
        rgba(0,0,0,.08);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {

    width: 100%;

    max-width: 1120px;

    margin:
        50px auto 0;

    padding:
        30px 20px;

    border-top:
        1px solid #e4ebe7;

    color: #87948e;

    display: flex;

    justify-content: space-between;

    font-size: 11px;
}

.footer-brand {

    color: #087f5b;

    font-weight: 750;
}


/* =========================================================
   MOBILE NAV
   ========================================================= */

.mobile-nav {

    display: none;
}


/* =========================================================
   FORM / COMMON UI
   ========================================================= */

.form-group {

    margin-bottom: 16px;
}

.form-label {

    display: block;

    margin-bottom: 7px;

    color: #34453e;

    font-size: 12px;

    font-weight: 750;
}

.form-input,
.form-select,
.form-textarea {

    width: 100%;

    padding:
        12px 14px;

    border:
        1px solid #e1e9e5;

    border-radius: 12px;

    outline: none;

    background: white;

    color: #25352f;

    font-size: 13px;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-textarea {

    min-height: 120px;

    resize: vertical;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {

    border-color: #087f5b;

    box-shadow:
        0 0 0 3px
        rgba(8,127,91,.08);
}

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 44px;

    padding:
        0 18px;

    border: 0;

    border-radius: 11px;

    cursor: pointer;

    font-size: 12px;

    font-weight: 750;

    transition:
        transform .2s,
        background .2s,
        box-shadow .2s;
}

.btn:hover {

    transform: translateY(-1px);
}

.btn-primary {

    background: #087f5b;

    color: white;

    box-shadow:
        0 6px 15px
        rgba(8,127,91,.14);
}

.btn-primary:hover {

    background: #076d4e;
}

.btn-secondary {

    background: #eef5f2;

    color: #416057;
}

.btn-danger {

    background: #fff0f0;

    color: #c64545;
}

.btn-block {

    width: 100%;
}


/* =========================================================
   PAGE CARD
   ========================================================= */

.page-card {

    width: 100%;

    background: white;

    border:
        1px solid #edf0ee;

    border-radius: 22px;

    padding: 24px;

    box-shadow:
        0 4px 18px
        rgba(25,60,45,.035);
}

.page-title {

    color: #172b24;

    font-size: 25px;

    line-height: 1.15;

    letter-spacing: -.8px;

    font-weight: 820;
}

.page-subtitle {

    margin-top: 6px;

    color: #87948e;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   ALERT
   ========================================================= */

.alert {

    width: 100%;

    padding:
        12px 14px;

    margin-bottom: 16px;

    border-radius: 11px;

    font-size: 12px;

    line-height: 1.5;
}

.alert-success {

    background: #eaf8f2;

    color: #18734f;

    border:
        1px solid #cdebdc;
}

.alert-error {

    background: #fff0f0;

    color: #b53c3c;

    border:
        1px solid #f2d1d1;
}

.alert-info {

    background: #eef6fb;

    color: #276b91;

    border:
        1px solid #d4e7f2;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .listing-grid {

        grid-template-columns:
            repeat(3,minmax(0,1fr));
    }

    .category-grid {

        grid-template-columns:
            repeat(4,minmax(0,1fr));
    }

    .search-box {

        grid-template-columns:
            repeat(2,1fr);

        gap: 1px;
    }

    .search-field {

        border-bottom:
            1px solid #edf1ef;
    }

    .search-button {

        grid-column:
            1 / -1;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    body {

        padding-bottom: 74px;

        background: #f7f9f8;
    }


    /* HEADER */

    .header-inner {

        min-height: 62px;

        padding:
            0 15px;
    }

    .brand-icon {

        width: 30px;

        height: 30px;

        border-radius: 9px;
    }

    .brand-icon img {
        width: 18px !important;
        height: 18px !important;
        max-width: 18px !important;
        max-height: 18px !important;
        object-fit: contain;
        display: block;
    }

    .brand-name {

        font-size: 15px;
    }

    .brand-tagline {

        font-size:11px;
            font-weight:600;
            color:#116f66;
    }

    .desktop-nav {

        display: none;
    }


    /* HERO */

    .hero {

        width: calc(100% - 30px);

        margin-top: 12px;

        border-radius: 27px;
    }

    .hero-inner {

        padding:
            36px 22px 25px;
    }

    .hero-eyebrow {

        font-size: 14px;
    }

    .hero-eyebrow-flag {

        font-size: 21px;
    }

    .hero-title {

        margin-top: 18px;

        font-size: 42px;

        line-height: 1.02;

        letter-spacing: -2px;
    }

    .hero-text {

        margin-top: 20px;

        font-size: 15px;

        line-height: 1.55;
    }

    .hero-stat {

        margin-top: 12px;
    }


    /* SEARCH */

    .search-box {

        margin-top: 26px;

        padding:
            7px;

        display: block;

        border-radius: 21px;

        box-shadow:
            0 13px 30px
            rgba(0,0,0,.13);
    }

    .search-field {

        min-height: 67px;

        padding:
            10px 15px;

        display: block;

        border: 0;

        border-bottom:
            1px solid #edf1ef;

        border-radius: 0;

        background: white;

        font-size: 14px;

        color: #25352f;
    }

    .search-field:first-child {

        border-radius:
            15px 15px 0 0;
    }

    .search-button {

        width: 100%;

        min-height: 60px;

        margin-top: 7px;

        border-radius: 15px;

        font-size: 14px;
    }


    /* MAIN */

    .container {

        padding:
            0 15px;
    }

    .section {

        padding-top: 38px;
    }

    .section-header {

        margin-bottom: 17px;

        align-items: center;
    }

    .section-title {

        font-size: 21px;
    }

    .section-subtitle {

        font-size: 11px;
    }

    .view-all {

        font-size: 12px;
    }


    /* CATEGORY */

    .category-grid {

        display: flex;

        overflow-x: auto;

        gap: 10px;

        padding:
            2px 0 8px;

        scrollbar-width: none;
    }

    .category-grid::-webkit-scrollbar {

        display: none;
    }

    .category {

        flex: 0 0 112px;

        min-height: 118px;

        border-radius: 20px;
    }

    .category-icon {

        width: 53px;

        height: 53px;

        font-size: 27px;
    }

    .category-name {

        font-size: 10px;
    }


    /* LISTINGS */

    .listing-grid {

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 10px;
    }

    .listing-card {

        border-radius: 16px;
    }

    .listing-body {

        padding: 11px;
    }

    .listing-category {

        font-size: 7px;
    }

    .listing-title {

        min-height: 34px;

        font-size: 12px;

        line-height: 1.4;
    }

    .listing-location {

        font-size: 9px;
    }

    .listing-price {

        font-size: 12px;
    }

    .listing-meta {

        margin-top: 8px;
    }

    .meta {

        padding:
            4px 6px;

        font-size: 7px;
    }

    .listing-badge {

        top: 7px;

        left: 7px;

        padding:
            5px 7px;

        font-size: 7px;
    }


    /* PAGE CARD */

    .page-card {

        padding: 18px;

        border-radius: 19px;
    }

    .page-title {

        font-size: 21px;
    }


    /* OWNER CTA */

    .owner-cta {

        padding:
            27px 18px;

        border-radius: 21px;

        text-align: center;
    }

    .owner-cta h2 {

        font-size: 21px;
    }

    .owner-cta p {

        font-size: 12px;
    }

    .owner-cta-button {

        margin-top: 17px;

        padding:
            13px 21px;
    }


    /* FOOTER */

    .footer {

        display: block;

        text-align: center;

        padding:
            25px 15px;

        margin-top: 35px;
    }

    .footer div + div {

        margin-top: 7px;
    }


    /* MOBILE BOTTOM NAV */

    .mobile-nav {

        position: fixed;

        left: 0;

        right: 0;

        bottom: 0;

        height: 65px;

        display: grid;

        grid-template-columns:
            repeat(4,1fr);

        z-index: 200;

        background:
            rgba(255,255,255,.97);

        border-top:
            1px solid #e2eae6;

        box-shadow:
            0 -7px 22px
            rgba(20,60,40,.07);

        backdrop-filter:
            blur(14px);
    }

    .mobile-nav a {

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 2px;

        color: #64746d;

        font-size: 10px;

        font-weight: 700;
   
        line-height: 1.1;
    }

    .mobile-nav a.active {

        color: #087f5b;
    }

    .mobile-icon {

        width: 30px;

        height: 30px;

        display: flex;

        align-items: center;

        justify-content: center;

        font-size: 19px;
    }

    .mobile-nav a.active .mobile-icon {

        border-radius: 9px;

        background: #e8f7f1;
    }
}


/* =========================================================
   VERY SMALL PHONE
   ========================================================= */

@media (max-width: 380px) {

    .hero-title {

        font-size: 37px;
    }

    .hero-text {

        font-size: 14px;
    }

    .listing-grid {

        gap: 8px;
    }

    .listing-title {

        font-size: 11px;
    }

    .listing-price {

        font-size: 11px;
    }
}