:root {
    --bg: #f4f1eb;
    --surface: #ffffff;
    --surface-dark: #111111;

    --text: #161616;
    --muted: #77736c;

    --border: #ded9d0;
    --accent: #a5844f;
    --accent-hover: #8f703f;

    --danger: #a63d40;

    --radius: 10px;
}


/* BASE */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.5;
}


/* TITLES */

h1 {
    margin-top: 0;
    margin-bottom: 30px;

    font-size: 32px;
    font-weight: 500;

    letter-spacing: -1px;
}

h2,
h3 {
    font-weight: 500;
}


/* LINKS */

a {
    color: var(--text);
    text-decoration: none;
}

a:hover {
    color: var(--accent);
}


/* FORMS */

form {
    max-width: 900px;

    padding: 30px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    margin-top: 25px;
    margin-bottom: 30px;
}


label {
    display: inline-block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 600;
}


input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="file"],
select,
textarea {

    width: 100%;

    padding: 12px 14px;

    margin-bottom: 18px;

    border: 1px solid var(--border);
    border-radius: 6px;

    background: #fff;
    color: var(--text);

    font: inherit;
}


textarea {
    min-height: 120px;
    resize: vertical;
}


input:focus,
select:focus,
textarea:focus {

    outline: none;

    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(165, 132, 79, 0.12);
}


/* CHECKBOX */

input[type="checkbox"] {
    margin-right: 7px;
}


/* BUTTONS */

button,
.button {

    display: inline-block;

    padding: 11px 18px;

    border: 0;
    border-radius: 6px;

    background: var(--surface-dark);
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.2s;
}


button:hover,
.button:hover {

    background: var(--accent);
    color: #fff;

    transform: translateY(-1px);
}


.button-secondary {

    background: transparent;
    color: var(--text);

    border: 1px solid var(--border);
}


.button-danger {
    background: var(--danger);
}


/* TABLE */

table {

    width: 100%;

    border-collapse: collapse;

    background: var(--surface);

    border: 1px solid var(--border);

    margin-top: 25px;
}


th {

    padding: 14px 16px;

    text-align: left;

    background: #181818;
    color: #fff;

    font-size: 13px;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}


td {

    padding: 14px 16px;

    border-bottom: 1px solid var(--border);

    vertical-align: middle;
}


tbody tr:hover {
    background: #faf8f4;
}


/* IMAGES */

img {
    max-width: 100%;
    border-radius: 7px;
}


/* STATUS */

.status-active {
    color: #247244;
    font-weight: 600;
}

.status-inactive {
    color: var(--danger);
    font-weight: 600;
}


/* ADMIN NAVIGATION */

.admin-nav {

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 35px;

    padding-bottom: 20px;

    border-bottom: 1px solid var(--border);
}


.admin-nav a {

    padding: 9px 14px;

    border-radius: 6px;

    background: #fff;

    border: 1px solid var(--border);
}


.admin-nav a:hover {

    background: #111;
    border-color: #111;

    color: #fff;
}


/* DASHBOARD CARDS */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    max-width: 1000px;
}


.dashboard-card {

    display: block;

    padding: 28px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    transition:
        transform 0.2s,
        border-color 0.2s;
}


.dashboard-card:hover {

    transform: translateY(-3px);

    border-color: var(--accent);
}


.dashboard-card strong {

    display: block;

    margin-bottom: 8px;

    font-size: 18px;
}


.dashboard-card span {

    color: var(--muted);

    font-size: 14px;
}


/* MOBILE */

@media (max-width: 700px) {

    body {
        padding: 20px;
    }

    form {
        padding: 20px;
    }

    .admin-nav {
        flex-wrap: wrap;
    }

    table {
        font-size: 13px;
    }

    th,
    td {
        padding: 10px;
    }
}

/* ========================================
   PONTAL AWARDS ADMIN HEADER
======================================== */

.admin-header {
    min-height: 90px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 22px 40px;

    background: #111;
    color: #fff;
}

.admin-brand {
    display: block;
}

.admin-brand img {
    display: block;
    width: 145px;
    max-height: 48px;
    object-fit: contain;

    border-radius: 0;
}

.admin-header-user {
    display: flex;
    align-items: center;
    gap: 22px;

    font-size: 13px;
    letter-spacing: 0.5px;
}

.admin-header-user a {
    color: rgba(255, 255, 255, 0.65);
}

.admin-header-user a:hover {
    color: #fff;
}

.admin-header-user .logout-link {
    color: #bda271;
}

.admin-header-user .logout-link:hover {
    color: #fff;
}


/* ========================================
   ADMIN CONTENT
======================================== */

.admin-container {
    width: min(1180px, 100%);
    margin: 0 auto;

    padding: 70px 20px;
}

.admin-eyebrow {
    margin-bottom: 18px;

    color: #9b7d4c;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 2px;
}

.admin-title {
    margin: 0;

    font-size: clamp(42px, 7vw, 82px);
    font-weight: 400;

    line-height: 0.95;
    letter-spacing: -3px;
}

.admin-intro {
    max-width: 520px;

    margin: 25px 0 55px;

    color: #77736c;

    font-size: 16px;
}


/* ========================================
   DASHBOARD
======================================== */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1px;

    background: #d9d3c8;

    border: 1px solid #d9d3c8;

    max-width: none;
}

.dashboard-card {
    position: relative;

    min-height: 220px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 30px;

    background: #fff;

    border: 0;
    border-radius: 0;

    color: #111;
}

.dashboard-card:hover {
    transform: none;

    background: #111;
    color: #fff;

    border-color: transparent;
}

.dashboard-number {
    font-size: 11px;

    letter-spacing: 2px;

    color: #9b7d4c;
}

.dashboard-card strong {
    margin-bottom: 8px;

    font-size: 28px;
    font-weight: 400;

    letter-spacing: -1px;
}

.dashboard-card span:not(.dashboard-number):not(.dashboard-arrow) {
    color: #77736c;
}

.dashboard-card:hover span:not(.dashboard-number):not(.dashboard-arrow) {
    color: #bbb;
}

.dashboard-arrow {
    position: absolute;

    right: 30px;
    bottom: 28px;

    font-size: 25px;
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 700px) {

    .admin-header {
        padding: 18px 20px;
    }

    .admin-brand img {
        width: 115px;
    }

    .admin-header-user>span {
        display: none;
    }

    .admin-container {
        padding-top: 45px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 190px;
    }
}

/* ========================================
   EDIT PROPERTY
======================================== */

.form-error {
    padding: 14px 18px;
    margin-bottom: 25px;

    background: #f8e7e7;
    color: #8c2f32;

    border: 1px solid #e6c4c4;
    border-radius: 6px;
}


.form-section {
    margin-top: 45px;
    padding-top: 35px;

    border-top: 1px solid #d9d3c8;
}


.form-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 25px;
}


.form-section-heading h2 {
    margin: 0 0 5px;

    font-size: 28px;
    font-weight: 400;
}


.form-section-heading p {
    margin: 0;

    color: #77736c;
}


.main-image-preview {
    margin-bottom: 25px;
}


.main-image-preview img {
    width: min(600px, 100%);
    height: 320px;

    object-fit: cover;

    border-radius: 0;
}


/* GALLERY */

.gallery-admin-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}


.gallery-admin-card {
    padding: 16px;

    background: #f8f6f1;

    border: 1px solid #ded9d0;
}


.gallery-admin-image {
    width: 100%;
    height: 220px;

    object-fit: cover;

    margin-bottom: 15px;

    border-radius: 0;
}


.gallery-admin-card input {
    margin-bottom: 10px;
}


.button-danger {
    background: #8f3337;
}


.button-danger:hover {
    background: #6e2528;
}


@media (max-width: 700px) {

    .gallery-admin-grid {
        grid-template-columns: 1fr;
    }

    .main-image-preview img,
    .gallery-admin-image {
        height: auto;
    }
}

/* ========================================
   PAGE HEADER
======================================== */

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;
    margin-bottom: 45px;
}

.page-title {
    margin: 0;

    font-size: clamp(42px, 6vw, 72px);
    font-weight: 400;

    line-height: 1;
    letter-spacing: -2px;
}

.page-description {
    margin: 18px 0 0;
    color: var(--muted);
}


/* ========================================
   TABLES
======================================== */

.table-wrapper {
    width: 100%;
    overflow-x: auto;

    background: #fff;

    border: 1px solid var(--border);
}

.admin-table {
    margin: 0;
    border: 0;
}

.admin-table th {
    background: #111;

    font-size: 11px;
    letter-spacing: 1.2px;
}

.admin-table td {
    min-width: 110px;
}

.admin-table td:first-child {
    min-width: 190px;
}

.table-action {
    color: #9b7d4c;
    font-weight: 600;
    white-space: nowrap;
}

.table-action:hover {
    color: #111;
}


/* STATUS */

.status-badge,
.featured-badge {
    display: inline-block;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.status-badge.published {
    background: #e7f1e9;
    color: #326342;
}

.status-badge.draft {
    background: #eeeae3;
    color: #756e63;
}

.featured-badge {
    background: #eee4d2;
    color: #816735;
}

.muted {
    color: #999;
}


/* EMPTY STATE */

.empty-state {
    padding: 60px;

    background: #fff;

    border: 1px solid var(--border);

    text-align: center;
}

.empty-state h2 {
    margin-top: 0;

    font-size: 32px;
    font-weight: 400;
}

/* ========================================
   PUBLICATION
======================================== */

.feature-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 18px;
    margin-bottom: 25px;

    background: #f8f6f1;

    border: 1px solid var(--border);

    cursor: pointer;
}

.feature-toggle input {
    width: auto;
    margin-top: 4px;
}

.feature-toggle span {
    display: flex;
    flex-direction: column;
}

.feature-toggle strong {
    font-size: 14px;
}

.feature-toggle small {
    margin-top: 3px;

    color: var(--muted);
    font-weight: 400;
}

/* USER SUMMARY */

.user-summary {
    padding: 22px;
    margin-bottom: 30px;

    background: #f8f6f1;

    border: 1px solid var(--border);
}

.user-summary span {
    display: block;

    margin-bottom: 8px;

    color: #9b7d4c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.user-summary strong {
    display: block;

    font-size: 24px;
    font-weight: 400;
}

.user-summary p {
    margin: 4px 0 0;
    color: var(--muted);
}

/* ========================================
   LOGIN
======================================== */

.login-page {
    min-height: 100vh;
    background: #111;
}

.login-shell {
    min-height: 100vh;

    display: grid;
    grid-template-columns:
        minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.login-brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 55px;

    background: #111;
    color: #fff;
}

.login-logo {
    width: 170px;
    max-height: 60px;

    object-fit: contain;

    border-radius: 0;
}

.login-brand-panel .admin-eyebrow {
    color: #bda271;
}

.login-heading {
    max-width: 520px;

    margin: 0;

    font-size: clamp(52px, 7vw, 100px);
    font-weight: 400;

    line-height: 0.92;
    letter-spacing: -4px;
}

.login-description {
    max-width: 420px;

    margin-top: 25px;

    color: #aaa59d;

    font-size: 16px;
}


.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 50px;

    background: var(--bg);
}

.login-form-wrap {
    width: min(460px, 100%);
}

.login-kicker {
    display: block;

    margin-bottom: 15px;

    color: #9b7d4c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 2px;
}

.login-form-wrap h2 {
    margin: 0;

    font-size: 42px;
    font-weight: 400;

    letter-spacing: -1.5px;
}

.login-help {
    margin: 12px 0 30px;

    color: var(--muted);
}

.login-form {
    max-width: none;

    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
}

.login-form button {
    width: 100%;

    margin-top: 5px;

    padding: 14px 18px;
}


/* MOBILE */

@media (max-width: 850px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-brand-panel {
        min-height: 320px;

        padding: 35px 25px;
    }

    .login-heading {
        font-size: 54px;
        letter-spacing: -2px;
    }

    .login-form-panel {
        padding: 45px 25px;
    }
}

/* password-change */
.admin-message {
    padding: 14px 18px;
    margin-bottom: 25px;
    border: 1px solid var(--border);
    background: #fff;
}

.error-message {
    border-left: 4px solid #a33;
}

.success-message {
    border-left: 4px solid #5f7d61;
}

.button-secondary {
    display: inline-block;
    padding: 12px 18px;
    border: 1px solid #111;
    background: transparent;
    color: #111;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: 0.2s ease;
}

.button-secondary:hover {
    background: #111;
    color: #fff;
}

/* Delete*/
.table-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.delete-property-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.table-delete {
    padding: 0;
    border: 0;
    background: transparent;

    color: #a63d40;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transform: none;
}

.table-delete:hover {
    background: transparent;
    color: #7d272a;
    transform: none;
}