.owner-portal-page {
    display: grid;
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.owner-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 8px 0 4px;
}

.owner-hero h1 {
    margin: 4px 0 8px;
    color: #203b33;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.08;
}

.owner-hero > div > p:last-child {
    max-width: 760px;
    margin: 0;
    color: #687872;
    font-size: 0.98rem;
    line-height: 1.6;
}

.owner-eyebrow {
    margin: 0;
    color: #3b655b;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.owner-refresh-button,
.owner-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    font-weight: 750;
    cursor: pointer;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        opacity 160ms ease;
}

.owner-refresh-button {
    background: #3b655b;
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 101, 91, 0.2);
}

.owner-secondary-button {
    background: #eef5f2;
    color: #31574d;
}

.owner-refresh-button:hover:not(:disabled),
.owner-secondary-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.owner-refresh-button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.owner-loading-card,
.owner-state-card,
.owner-profile-card,
.owner-section-card {
    border: 1px solid #dfe9e5;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(33, 62, 53, 0.055);
}

.owner-loading-card {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 260px;
    padding: 35px;
    text-align: center;
}

.owner-loading-card span {
    color: #71807b;
}

.owner-loading-spinner {
    width: 42px;
    height: 42px;
    margin-bottom: 7px;
    border: 4px solid #e4eeea;
    border-top-color: #3b655b;
    border-radius: 50%;
    animation: owner-spin 0.8s linear infinite;
}

@keyframes owner-spin {
    to {
        transform: rotate(360deg);
    }
}

.owner-state-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px;
}

.owner-state-card > i {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 1.35rem;
}

.owner-state-card h2 {
    margin: 0 0 5px;
    font-size: 1.15rem;
}

.owner-state-card p {
    margin: 0;
    color: #66756f;
}

.owner-state-card small {
    display: block;
    margin-top: 6px;
    color: #87938f;
}

.owner-state-card.error > i {
    background: #fff0f0;
    color: #c14444;
}

.owner-state-card.warning > i {
    background: #fff7df;
    color: #9d6d13;
}

.owner-profile-card {
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(280px, 0.8fr);
    align-items: center;
    gap: 20px;
    padding: 22px;
}

.owner-profile-avatar {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background:
        linear-gradient(145deg, #3b655b, #75978e);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(59, 101, 91, 0.22);
}

.owner-profile-main span {
    color: #9b552c;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.owner-profile-main h2 {
    margin: 3px 0 5px;
    color: #223b34;
    font-size: 1.35rem;
}

.owner-profile-main p {
    margin: 0;
    color: #6e7d78;
}

.owner-profile-contact {
    display: grid;
    gap: 8px;
    padding-left: 20px;
    border-left: 1px solid #e2ebe7;
}

.owner-profile-contact > div {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 8px;
    color: #61716b;
    font-size: 0.88rem;
}

.owner-profile-contact i {
    margin-top: 3px;
    color: #3b655b;
}

.owner-summary-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(170px, 1fr));
    gap: 14px;
}

.owner-summary-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 13px;
    min-height: 118px;
    padding: 17px;
    border: 1px solid #e1eae6;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(33, 62, 53, 0.045);
}

.owner-summary-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
}

.owner-summary-icon.green {
    background: #eaf4f0;
    color: #38695b;
}

.owner-summary-icon.brown {
    background: #f7eee8;
    color: #9b552c;
}

.owner-summary-icon.yellow {
    background: #fff6d9;
    color: #9a7310;
}

.owner-summary-icon.blue {
    background: #eaf1ff;
    color: #426fa8;
}

.owner-summary-icon.orange {
    background: #fff0e3;
    color: #b86725;
}

.owner-summary-card > div:last-child {
    display: grid;
    gap: 1px;
}

.owner-summary-card span {
    color: #65746f;
    font-size: 0.78rem;
    font-weight: 700;
}

.owner-summary-card strong {
    color: #203a32;
    font-size: 1.55rem;
    line-height: 1.1;
}

.owner-summary-card small {
    color: #8a9692;
    font-size: 0.69rem;
}

.owner-section-card {
    padding: 22px;
    scroll-margin-top: 85px;
}

.owner-section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.owner-section-title h2 {
    margin: 4px 0;
    color: #223b34;
    font-size: 1.35rem;
}

.owner-section-title > div > span {
    color: #72807b;
    font-size: 0.88rem;
}

.owner-count-pill,
.owner-map-counter {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-radius: 999px;
    padding: 0 13px;
    background: #edf5f2;
    color: #3b655b;
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.owner-terrain-grid {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(280px, 1fr));
    gap: 14px;
}

.owner-terrain-card {
    display: grid;
    gap: 12px;
    padding: 17px;
    border: 1px solid #e0e9e5;
    border-radius: 16px;
    background:
        linear-gradient(
            180deg,
            #fff 0%,
            #fbfcfc 100%);
}

.owner-terrain-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.owner-terrain-header span:first-child {
    color: #85918d;
    font-size: 0.67rem;
    font-weight: 750;
    text-transform: uppercase;
}

.owner-terrain-header h3 {
    margin: 2px 0 0;
    color: #2b463e;
    font-size: 1.08rem;
}

.owner-status-pill {
    display: inline-flex;
    align-items: center;
    height: 27px;
    border-radius: 999px;
    padding: 0 10px;
    background: #eaf6ef;
    color: #347052;
    font-size: 0.68rem;
    font-weight: 800;
}

.owner-terrain-address,
.owner-terrain-location {
    margin: 0;
    color: #5d6d67;
    font-size: 0.85rem;
}

.owner-terrain-address {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 7px;
}

.owner-terrain-address i {
    margin-top: 3px;
    color: #9b552c;
}

.owner-terrain-location {
    color: #82908b;
}

.owner-terrain-metrics {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.owner-terrain-metrics > div {
    display: grid;
    gap: 1px;
    padding: 10px;
    border-radius: 11px;
    background: #f4f7f6;
}

.owner-terrain-metrics span {
    color: #7a8883;
    font-size: 0.69rem;
}

.owner-terrain-metrics strong {
    color: #29443c;
    font-size: 0.88rem;
}

.owner-terrain-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e6ecea;
    color: #7d8985;
    font-size: 0.7rem;
}

.owner-empty-inline,
.owner-empty-map {
    display: grid;
    place-items: center;
    min-height: 190px;
    border: 1px dashed #cedbd6;
    border-radius: 15px;
    background: #fafcfb;
    text-align: center;
}

.owner-empty-inline i,
.owner-empty-map i {
    color: #7c9b92;
    font-size: 2rem;
}

.owner-empty-inline p,
.owner-empty-map p {
    max-width: 520px;
    margin: 8px auto 0;
    color: #75827e;
}

.owner-empty-map h3 {
    margin: 10px 0 0;
    color: #345248;
}

.owner-map-canvas {
    width: 100%;
    height: min(60vh, 570px);
    min-height: 390px;
    overflow: hidden;
    border: 1px solid #dce6e2;
    border-radius: 16px;
    background: #eef3f1;
}

.owner-map-popup {
    min-width: 210px;
    font-family:
        Inter,
        system-ui,
        sans-serif;
}

.owner-map-popup strong {
    display: block;
    margin-bottom: 4px;
    color: #27483e;
    font-size: 0.95rem;
}

.owner-map-popup span {
    display: block;
    margin-top: 3px;
    color: #66766f;
    font-size: 0.76rem;
}

.portal-access-pending,
.route-guard-loading {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 30px;
    background: #f4f7f6;
    text-align: center;
}

.portal-access-pending > div,
.route-guard-loading > div {
    max-width: 470px;
    padding: 34px;
    border: 1px solid #dde7e3;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(33, 62, 53, 0.08);
}

.portal-access-pending i,
.route-guard-loading i {
    margin-bottom: 12px;
    color: #3b655b;
    font-size: 2rem;
}

.portal-access-pending h2,
.route-guard-loading h2 {
    margin: 0 0 8px;
    color: #25443a;
}

.portal-access-pending p,
.route-guard-loading p {
    margin: 0;
    color: #71807b;
}

@media (max-width: 1250px) {
    .owner-summary-grid {
        grid-template-columns:
            repeat(3, minmax(170px, 1fr));
    }

    .owner-terrain-grid {
        grid-template-columns:
            repeat(2, minmax(260px, 1fr));
    }
}

@media (max-width: 900px) {
    .owner-profile-card {
        grid-template-columns: auto 1fr;
    }

    .owner-profile-contact {
        grid-column: 1 / -1;
        padding: 14px 0 0;
        border-top: 1px solid #e2ebe7;
        border-left: 0;
    }
}

@media (max-width: 720px) {
    .owner-hero {
        flex-direction: column;
    }

    .owner-refresh-button {
        width: 100%;
    }

    .owner-summary-grid,
    .owner-terrain-grid {
        grid-template-columns: 1fr;
    }

    .owner-section-title {
        flex-direction: column;
    }

    .owner-profile-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .owner-profile-avatar {
        margin: 0 auto;
    }

    .owner-profile-contact > div {
        text-align: left;
    }

    .owner-state-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .owner-state-card > i {
        margin: 0 auto;
    }

    .owner-terrain-footer {
        flex-direction: column;
    }

    .owner-map-canvas {
        height: 430px;
        min-height: 360px;
    }
}


.owner-geospatial-cta {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 10% 20%, rgba(242, 201, 76, 0.2), transparent 28%),
        linear-gradient(135deg, #f8fbfa 0%, #ffffff 48%, #eef6f2 100%);
}

.owner-geospatial-visual {
    position: relative;
    display: grid;
    place-items: center;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(145deg, #315a4f, #76978e);
    color: #fff;
    box-shadow: 0 18px 45px rgba(48, 89, 78, 0.24);
}

.owner-geospatial-visual > i {
    position: relative;
    z-index: 2;
    font-size: 3rem;
}

.owner-geospatial-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 50%;
}

.owner-geospatial-orbit.orbit-one {
    inset: 18px;
}

.owner-geospatial-orbit.orbit-two {
    inset: 36px 10px;
    transform: rotate(55deg);
}

.owner-geospatial-copy h2 {
    margin: 5px 0 8px;
    color: #203d34;
    font-size: 1.55rem;
}

.owner-geospatial-copy > p:last-of-type {
    max-width: 760px;
    margin: 0;
    color: #64746e;
    line-height: 1.6;
}

.owner-geospatial-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.owner-geospatial-features span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid #dce8e3;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(255, 255, 255, 0.78);
    color: #456159;
    font-size: 0.73rem;
    font-weight: 750;
}

.owner-geospatial-features i {
    color: #3b655b;
}

.owner-geospatial-action {
    display: grid;
    justify-items: end;
    gap: 3px;
    min-width: 210px;
}

.owner-geospatial-action > strong {
    color: #315b50;
    font-size: 2.25rem;
    line-height: 1;
}

.owner-geospatial-action > span {
    margin-bottom: 12px;
    color: #7d8b86;
    font-size: 0.75rem;
}

@media (max-width: 940px) {
    .owner-geospatial-cta {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .owner-geospatial-visual {
        width: 115px;
        height: 115px;
    }

    .owner-geospatial-action {
        grid-column: 1 / -1;
        justify-items: stretch;
        text-align: center;
    }
}

@media (max-width: 620px) {
    .owner-geospatial-cta {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .owner-geospatial-copy > p:last-of-type {
        text-align: left;
    }

    .owner-geospatial-features {
        justify-content: center;
    }
}
