:root {
    --ink: #26343a;
    --muted: #66757f;
    --tan: #b99a6b;
    --line: #d6dadd;
    --bg: #f6f8f7;
    --card: #fff;
}
* {
    box-sizing: border-box;
}

a {
    color: inherit;
}
.wrap {
    max-width: 1180px;
    margin: auto;
    padding: 32px 22px;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 70px;
}
.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 0 0 14px;
}
.lead {
    font-size: 18px;
}
.profile-img {
    width: 100%;
    max-height: 430px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #222;
}
.content h2 {
    font-size: 38px;
    line-height: 1.1;
}
.content h3 {
    font-size: 27px;
    margin-bottom: 8px;
}
.sidebar {
    padding-top: 5px;
}
.side-card {
    position: sticky;
    top: 20px;
}
.info-row {
    display: flex;
    gap: 13px;
    margin: 22px 0;
    color: var(--muted);
}
.btn {
    display: inline-block;
    background: var(--tan);
    color: white;
    padding: 12px 21px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid var(--tan);
    font-weight: bold;
}
.btn.light {
    background: white;
    color: var(--tan);
}
.rule {
    border: 0;
    border-top: 1px solid #7e878b;
    margin: 28px 0;
}
.social a {
    margin-right: 16px;
    color: var(--tan);
    font-weight: bold;
}
.form {
    background: #fff;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 0px;
}
.form label {
    display: block;
    font-weight: bold;
    margin-top: 14px;
}
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 5px;
}
.error {
    background: #ffe9e9;
    padding: 12px;
    border-radius: 6px;
}
.success {
    background: #e7f6ec;
    padding: 12px;
    border-radius: 6px;
}
.topnav {
    background: #26343a;
    color: white;
}
.topnav .wrap {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    padding-bottom: 16px;
}
.topnav a {
    color: white;
    text-decoration: none;
    margin-left: 16px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.card {
    background: white;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
.metric {
    font-size: 34px;
    font-weight: bold;
}
.editor {
    min-height: 230px;
    background: white;
    border: 1px solid var(--line);
    padding: 12px;
    border-radius: 5px;
}
.toolbar button {
    margin: 4px 4px 4px 0;
}
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}
.table th,
.table td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 10px;
}
@media (max-width: 850px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero h1 {
        font-size: 40px;
    }
    .content h2 {
        font-size: 32px;
    }
}

/* Profile editor upgrades */
.muted {
    color: var(--muted);
}
.hidden {
    display: none !important;
}
.profile-upload-row {
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 8px 0 18px;
}
.profile-preview {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}
.dropzone {
    position: relative;
    flex: 1;
    min-height: 120px;
    border: 2px dashed var(--line);
    border-radius: 10px;
    background: #fbfcfc;
    text-align: center;
    padding: 32px 18px;
    cursor: pointer;
    color: var(--muted);
}
.dropzone.dragover {
    background: #f0f5f2;
    border-color: var(--tan);
}
.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}
.modal-card {
    background: white;
    border-radius: 12px;
    max-width: 560px;
    width: 100%;
    padding: 22px;
}
.google-place-search {
    display: flex;
    gap: 10px;
}
.google-place-search input {
    flex: 1;
}
.place-results {
    margin-top: 12px;
}
.place-result {
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin: 8px 0;
}
.place-result button {
    margin-top: 8px;
}
.trumbowyg-box {
    margin-top: 8px;
}
.sidebar-profile-img {
    width: 100%;
    aspect-ratio: 1/1;
    max-height: none;
    margin-bottom: 22px;
}
.reviews {
    margin-top: 34px;
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.review-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 16px;
}
.stars,
.rating {
    color: var(--tan);
}
@media (max-width: 650px) {
    .profile-upload-row,
    .google-place-search {
        display: block;
    }
    .profile-preview {
        margin-bottom: 10px;
    }
    .google-place-search .btn {
        margin-top: 10px;
    }
}
