/* ---- Property Page Tabs & Enhancements ---- */

/* Tab bar */
.property-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 56px;
    background: var(--bg);
    z-index: 10;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.property-tab {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}

.property-tab:hover {
    color: var(--fg);
}

.property-tab.active {
    color: var(--fg);
    border-bottom-color: var(--fg);
    font-weight: 600;
}

/* Tab content panels */
.property-tab-content {
    display: none;
}

.property-tab-content.active {
    display: block;
}

/* Action buttons in header */
.property-actions {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.property-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: var(--font);
    color: var(--fg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
    white-space: nowrap;
    line-height: 1.4;
}

.property-action-btn:hover {
    border-color: var(--fg);
}

.property-action-btn--saved {
    color: var(--muted);
    cursor: default;
}

.property-action-btn--saved:hover {
    border-color: var(--border);
}

.property-action-btn--primary {
    background: var(--accent);
    color: var(--accent-fg);
    border-color: var(--accent);
}

.notes-editor-save:hover {
    opacity: 0.9;
}

.notes-editor-cancel:hover {
    background: var(--hover-overlay);
}

.property-action-btn--primary:hover {
    opacity: 0.85;
}

/* Financials CTA */
.property-financials-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1.25rem;
    margin-top: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.property-financials-cta p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.5;
}

/* Static map image */
.property-static-map {
    width: 100%;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    margin-bottom: 0;
    line-height: 0;
}

.property-static-map img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 200px;
}

/* Nearby properties section */
.nearby-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.nearby-section__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.nearby-card {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.nearby-card:hover {
    border-color: var(--muted);
    box-shadow: 0 2px 8px var(--shadow-sm);
}

.nearby-card__name {
    font-size: 0.8125rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-card__sub {
    font-size: 0.75rem;
    color: var(--muted);
}

.nearby-loading,
.nearby-empty {
    font-size: 0.8125rem;
    color: var(--muted);
    grid-column: 1 / -1;
}

