* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
    color: #16342f;
    background: #fbfcf8;
    line-height: 1.55;
}

a {
    color: #0f5d52;
    text-decoration: none;
}

.wrap {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


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

.site-header,
.portal-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(250, 252, 248, .96);
    border-bottom: 1px solid #dce5df;
    backdrop-filter: blur(12px);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================================
   BRAND
========================================================= */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #16342f;
}

.brand span:last-child {
    display: flex;
    flex-direction: column;
}

.brand small {
    color: #6f837d;
}

.brand-mark {
    width: 44px;
    height: 44px;
    min-width: 44px;
    flex: 0 0 44px;

    border-radius: 50%;

    background: #174d45;
    color: #fff;

    display: grid;
    place-items: center;

    font-weight: 900;
    letter-spacing: .06em;
}


/* =========================================================
   NEW REFUGE LOGO
========================================================= */

.brand-mark.brand-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex: 0 0 56px;

    padding: 0 !important;
    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
    border-radius: 50%;

    background: transparent !important;
}

.brand-mark.brand-logo img {
    display: block;

    width: 56px;
    height: 56px;

    object-fit: cover;
    object-position: center;

    border-radius: 50%;
}


/* Public logo */

.site-header .brand-mark.brand-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex-basis: 56px;

    background: transparent !important;
}


/* Admin logo */

.sidebar .brand-mark.brand-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    flex-basis: 56px;

    background: transparent !important;
}


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

.main-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.main-nav a {
    padding: 10px 12px;
    border-radius: 999px;
    color: #3f5f59;
    font-weight: 700;
    font-size: .94rem;
}

.main-nav a.active {
    background: #e4efe9;
    color: #103c35;
}

.portal-btn {
    border: 1px solid #b7ccc3;
}


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

.hero {
    background:
        linear-gradient(
            125deg,
            rgba(9, 48, 42, .94),
            rgba(25, 84, 73, .76)
        ),
        radial-gradient(
            circle at 75% 15%,
            #86ad9c 0,
            transparent 34%
        ),
        #174d45;

    color: #fff;
}

.hero-inner {
    padding: 110px 0 120px;
    max-width: 850px;
}

.eyebrow {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .16em;
    color: #bd7d45;
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: #d9ab76;
}

.hero h1,
.page-hero h1 {
    font-family: Georgia, serif;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: .98;
    margin: .3em 0;
}

.hero p {
    font-size: 1.18rem;
    max-width: 760px;
    color: #e4efea;
}


/* =========================================================
   ACTIONS / BUTTONS
========================================================= */

.actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #b66b36;
    color: #fff;

    border: 0;
    border-radius: 10px;

    padding: 13px 19px;

    font-weight: 800;

    cursor: pointer;
}

.btn.secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .55);
}

.btn.small {
    padding: 9px 13px;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 68px 0;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
}

.section h2,
.section-head h2 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin: .2em 0;
}

.cards {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px, 1fr)
        );

    gap: 18px;
}


/* =========================================================
   CARDS
========================================================= */

.card,
.content-card,
.feature-box {
    background: #fff;

    border: 1px solid #dce5df;
    border-radius: 16px;

    padding: 24px;

    box-shadow:
        0 10px 35px rgba(27, 65, 57, .05);
}

.card h2,
.card h3 {
    margin-top: 8px;
}

.pill {
    display: inline-block;

    background: #edf3ef;

    border-radius: 999px;

    padding: 5px 9px;

    text-transform: uppercase;

    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.tint {
    background: #eef4ef;
}


/* =========================================================
   DOCUMENT LISTS
========================================================= */

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;

    background: #fff;

    border: 1px solid #dce5df;
    border-radius: 12px;

    padding: 15px 17px;
}

.doc-row span:first-child {
    display: flex;
    flex-direction: column;
}

.doc-row small {
    color: #71847d;
}


/* =========================================================
   CONTENT LAYOUT
========================================================= */

.split {
    display: grid;

    grid-template-columns:
        1.15fr .85fr;

    gap: 30px;

    align-items: start;
}

.feature-box ul {
    padding-left: 20px;
}

.page-hero {
    background: #153f39;
    color: #fff;
    padding: 70px 0;
}

.page-hero h1 {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.page-hero p {
    color: #dbe8e3;
}

.narrow {
    max-width: 820px;
}


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

.site-footer {
    background: #0f2f2b;
    color: #dceae5;

    padding: 45px 0 25px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-grid div:last-child {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.site-footer a {
    color: #dceae5;
}

.legal {
    margin-top: 25px;
    padding-top: 20px;

    border-top:
        1px solid rgba(255, 255, 255, .12);

    font-size: .82rem;

    color: #9db7ae;
}

.footer-admin-link {
    margin-left: 12px;

    color: inherit;

    opacity: .65;

    text-decoration: none;

    white-space: nowrap;
}

.footer-admin-link:hover {
    opacity: 1;
    text-decoration: underline;
}


/* =========================================================
   LOGIN
========================================================= */

.login-body {
    min-height: 100vh;

    display: grid;
    place-items: center;

    background: #eef4ef;
}

.login-card {
    width: min(460px, calc(100% - 30px));

    background: #fff;

    padding: 32px;

    border-radius: 18px;

    border: 1px solid #d6e1db;
}

.login-card h1 {
    font-family: Georgia, serif;
}

.login-card form,
.content-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}


/* =========================================================
   FORMS
========================================================= */

label {
    font-weight: 750;
    font-size: .9rem;
}

input,
select,
textarea {
    width: 100%;

    margin-top: 6px;

    border: 1px solid #cddbd4;
    border-radius: 9px;

    padding: 11px 12px;

    font: inherit;

    background: #fff;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;

    font-weight: 600;
}

.check input {
    width: auto;
    margin-top: 3px;
}


/* =========================================================
   ALERTS
========================================================= */

.alert,
.success {
    padding: 12px 14px;
    border-radius: 10px;
    margin: 12px 0;
}

.alert {
    background: #fff0ed;
    color: #8d3027;
}

.success {
    background: #e6f5ea;
    color: #24653a;
}


/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 15px;

    margin: 25px 0;
}

.stat {
    background: #fff;

    border: 1px solid #dce5df;
    border-radius: 14px;

    padding: 20px;
}

.stat strong {
    display: block;
    font-size: 1.7rem;
}

.stat span {
    color: #6d837c;
}


/* =========================================================
   DETAILS
========================================================= */

.details {
    display: grid;

    grid-template-columns:
        160px 1fr;

    gap: 10px;
}

.details dt {
    font-weight: 800;
}


/* =========================================================
   ADMIN
========================================================= */

.admin-shell {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        270px 1fr;
}

.sidebar {
    background: #123b35;
    color: #fff;

    padding: 24px 18px;

    position: sticky;

    top: 0;

    height: 100vh;
}

.sidebar .brand {
    color: #fff;
}

.sidebar small {
    color: #a9c2b9;
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;

    margin-top: 28px;
}

.side-nav a {
    color: #cfe0da;

    padding: 11px 12px;

    border-radius: 9px;

    font-weight: 700;
}

.side-nav a.active {
    background: #24534b;
    color: #fff;
}

.admin-main {
    padding: 38px;
    min-width: 0;
}

.admin-top h1 {
    font-family: Georgia, serif;
    font-size: 2.7rem;
    margin: .2em 0;
}

.admin-two-col {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(320px, .8fr);

    gap: 24px;

    align-items: start;
}

.admin-actions {
    display: flex;
    justify-content: flex-end;

    margin: -50px 0 20px;
}


/* =========================================================
   TABLES
========================================================= */

.table-wrap {
    overflow: auto;

    background: #fff;

    border: 1px solid #dce5df;
    border-radius: 14px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    text-align: left;

    padding: 13px;

    border-bottom:
        1px solid #e5ece8;
}

th {
    background: #f3f7f4;
}


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

.search {
    display: flex;
    gap: 10px;

    margin: 20px 0;
}

.search input {
    margin: 0;
}

.search button,
.link-btn {
    border: 0;

    background: none;

    color: #0f5d52;

    font-weight: 800;

    cursor: pointer;
}


/* =========================================================
   OWNER PORTAL
========================================================= */

.portal-body {
    background: #f4f7f4;
}

.owner-nav {
    width: min(1180px, calc(100% - 40px));

    margin: 14px auto 0;

    padding-bottom: 14px;
}

.lead {
    font-size: 1.08rem;

    color: #5f7770;

    max-width: 760px;
}

.property-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 18px;
}

.property-card {
    display: flex;

    flex-direction: column;

    justify-content: space-between;

    gap: 18px;

    background: #fff;

    border: 1px solid #dce5df;
    border-radius: 16px;

    padding: 22px;

    color: #16342f;

    box-shadow:
        0 10px 35px rgba(27, 65, 57, .05);

    transition: .18s ease;
}

.property-card:hover {
    transform: translateY(-2px);

    border-color: #b8cec5;

    box-shadow:
        0 14px 38px rgba(27, 65, 57, .09);
}

.property-card h2,
.property-card h3 {
    font-family: Georgia, serif;

    margin: 8px 0 4px;
}

.property-meta {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    color: #6d837c;

    font-size: .88rem;

    border-top:
        1px solid #e5ece8;

    padding-top: 14px;
}

.property-link {
    font-weight: 800;

    color: #0f5d52;
}

.mini-details {
    display: grid;

    grid-template-columns:
        95px 1fr;

    gap: 6px 10px;

    margin: 0;

    font-size: .9rem;
}

.mini-details dt {
    font-weight: 800;
}

.mini-details dd {
    margin: 0;
}

.portal-actions {
    margin-top: 30px;
}

.property-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        320px;

    gap: 24px;

    align-items: start;
}

.property-side {
    margin-top: 14px;
}

.request-mini {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 12px 0;

    border-bottom:
        1px solid #e5ece8;
}

.request-mini:last-child {
    border-bottom: 0;
}

.wide {
    width: 100%;
}

.muted {
    color: #71847d;
}

.block-eyebrow {
    display: block;

    margin-top: 22px;
}

.compact-head {
    margin-top: 32px;

    margin-bottom: 14px;
}

.compact-head h2 {
    margin: 0;
}


/* =========================================================
   PUBLIC HEADER / NAV
========================================================= */

.site-header {
    background: #123b35;

    border-bottom:
        1px solid rgba(255, 255, 255, .10);
}

.site-header .nav-wrap {
    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}


/* Public Brand */

.site-header .brand {
    flex: 0 0 auto;

    display: flex;

    align-items: center;

    gap: 12px;

    color: #fff;

    text-decoration: none;
}

.site-header .brand strong {
    color: #fff;
}

.site-header .brand small {
    color: rgba(255, 255, 255, .72);
}


/* Public Navigation */

.site-header .main-nav {
    flex: 1 1 auto;

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 4px;

    margin: 0;
}

.site-header .main-nav a {
    display: inline-flex;

    align-items: center;

    padding: 10px 11px;

    color: rgba(255, 255, 255, .82);

    font-size: .9rem;

    font-weight: 700;

    white-space: nowrap;

    border-radius: 8px;

    text-decoration: none;
}

.site-header .main-nav a:hover {
    color: #fff;

    background:

        rgba(255, 255, 255, .08);
}

.site-header .main-nav a.active {
    color: #fff;

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

.site-header .main-nav a.active::after {
    display: none;
}


/* Owner Portal Button */

.site-header .portal-btn {
    margin-left: 6px;

    border:
        1px solid rgba(255, 255, 255, .28);

    color: #fff;
}

.site-header .portal-btn:hover {
    background: #b66b36;

    border-color: #b66b36;

    color: #fff;
}


/* =========================================================
   AJAX SEARCH / LOOKUPS
========================================================= */

.ajax-search {
    position: relative;

    align-items: center;
}

.ajax-search-status {
    min-width: 95px;

    color: #6d837c;

    font-size: .85rem;

    font-weight: 700;
}

.ajax-search.is-loading input {
    background-image:
        linear-gradient(
            90deg,
            transparent,
            rgba(23, 77, 69, .05),
            transparent
        );

    background-size: 200% 100%;

    animation:
        ajaxPulse 1s linear infinite;
}

@keyframes ajaxPulse {

    to {
        background-position:
            -200% 0;
    }

}

.ajax-empty,
.lookup-message {
    color: #6d837c;

    text-align: center;

    padding: 22px;
}

.ajax-lookup {
    position: relative;

    margin-top: 6px;
}

.ajax-lookup input {
    margin-top: 0;
}

.ajax-lookup-results {
    position: absolute;

    z-index: 100;

    width: 100%;

    top: calc(100% + 5px);

    background: #fff;

    border: 1px solid #cddbd4;
    border-radius: 10px;

    box-shadow:
        0 14px 35px rgba(22, 52, 47, .14);

    max-height: 320px;

    overflow: auto;
}

.lookup-option {
    display: flex;

    width: 100%;

    flex-direction: column;

    align-items: flex-start;

    gap: 2px;

    padding: 11px 13px;

    border: 0;

    border-bottom:
        1px solid #e5ece8;

    background: #fff;

    color: #16342f;

    text-align: left;

    cursor: pointer;
}

.lookup-option:last-child {
    border-bottom: 0;
}

.lookup-option:hover,
.lookup-option:focus {
    background: #eef4ef;

    outline: 0;
}

.lookup-option small {
    color: #6d837c;

    font-weight: 500;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .site-header .nav-wrap {
        align-items: flex-start;

        flex-direction: column;

        padding-top: 14px;

        padding-bottom: 14px;
    }

    .site-header .main-nav {
        width: 100%;

        justify-content: flex-start;

        flex-wrap: wrap;
    }

}


@media (max-width: 900px) {

    .nav-wrap {
        align-items: flex-start;

        padding: 14px 0;

        flex-direction: column;
    }

    .main-nav {
        width: 100%;
    }

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

    .admin-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;

        height: auto;
    }

    .admin-main {
        padding: 24px;
    }

    .hero-inner {
        padding: 80px 0;
    }

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

    .doc-row {
        align-items: flex-start;

        flex-direction: column;
    }

    .property-layout,
    .admin-two-col {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        margin: 0 0 18px;

        justify-content: flex-start;
    }

}


/*
 * Sidebar should not fade in/out between admin pages.
 */

::view-transition-old(admin-sidebar),
::view-transition-new(admin-sidebar) {
    animation: none;
}


/*
 * Give the changing content a very quick transition
 * instead of a white/page flash.
 */

::view-transition-old(admin-content) {
    animation-duration: 100ms;
}

::view-transition-new(admin-content) {
    animation-duration: 100ms;
}

/* =========================================================
   BUTTON HOVER FIX
========================================================= */

.btn,
a.btn,
button.btn {
    background-color: #c47135;
    border: 1px solid #c47135;
    color: #ffffff;
    text-decoration: none;
}

.btn:hover,
.btn:focus,
.btn:active,
a.btn:hover,
a.btn:focus,
a.btn:active,
button.btn:hover,
button.btn:focus,
button.btn:active {
    background-color: #a95d28 !important;
    border-color: #a95d28 !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Keep Bootstrap's secondary/outline buttons from inheriting
   the site's primary button background */
.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #5c636a !important;
    border-color: #565e64 !important;
    color: #ffffff !important;
}