<section class="fantasy-settlement-view-shell fantasy-settlement-experience {{#if isCompact}}is-compact{{/if}}">
{{#if missing}}<div class="fantasy-settlement-view-missing">This settlement could not be found.</div>{{else}}
{{#if backgroundSrc}}<img class="fantasy-settlement-background" src="{{backgroundSrc}}" alt="">{{/if}}<div class="fantasy-settlement-view-shade"></div>
{{#unless isCompact}}
<main class="fantasy-settlement-stage">
    <section class="fantasy-settlement-command-row">
        {{#if overview.owner}}<button type="button" class="fantasy-settlement-command-card" data-action="openSettlementOwner" data-settlement-authority-drop="owner" data-settlement-authority-drag data-authority-entity-id="{{overview.owner.entityId}}" data-authority-entity-type="{{overview.owner.entityType}}" {{#if isGM}}draggable="true"{{/if}}><span class="nexus-entity-image is-emblem">{{#if overview.owner.imageSrc}}<img src="{{overview.owner.imageSrc}}" alt="">{{else}}<i class="fas fa-shield-halved"></i>{{/if}}</span><span><em><i class="fas fa-shield-halved"></i> Owned by</em><strong>{{overview.owner.name}}</strong><small>{{overview.owner.subtitle}}</small></span></button>{{else}}<div class="fantasy-settlement-command-card is-empty" data-settlement-authority-drop="owner"><i class="fas fa-shield-halved"></i><span><em>Owned by</em><strong>No faction controls this place</strong></span></div>{{/if}}
        {{#if overview.leader}}<button type="button" class="fantasy-settlement-command-card" data-action="openSettlementLeader" data-settlement-authority-drop="leader" data-settlement-authority-drag data-authority-entity-id="{{overview.leader.entityId}}" data-authority-entity-type="npc" {{#if isGM}}draggable="true"{{/if}}><span class="nexus-entity-image is-person">{{#if overview.leader.imageSrc}}<img src="{{overview.leader.imageSrc}}" alt="">{{else}}<i class="fas fa-user"></i>{{/if}}</span><span><em><i class="{{overview.authority.icon}}"></i> {{overview.authority.label}}</em><strong>{{overview.leader.name}}</strong><small>{{overview.leader.subtitle}}</small></span></button>{{else}}<div class="fantasy-settlement-command-card is-empty" data-settlement-authority-drop="leader"><i class="{{overview.authority.icon}}"></i><span><em>{{overview.authority.label}}</em><strong>{{overview.authority.emptyLabel}}</strong></span></div>{{/if}}
        {{#if overview.trade}}<button type="button" class="fantasy-settlement-command-card" data-action="openSettlementTrade" data-settlement-trade-drop><span class="nexus-entity-image is-place">{{#if overview.trade.imageSrc}}<img src="{{overview.trade.imageSrc}}" alt="">{{else}}<i class="{{overview.trade.icon}}"></i>{{/if}}</span><span><em>{{overview.trade.label}}</em><strong>{{overview.trade.name}}</strong><small>{{overview.trade.subtitle}}</small></span></button>{{else}}{{#if canManageTrade}}<button type="button" class="fantasy-settlement-command-card is-empty" data-action="openSettlementTrade" data-settlement-trade-drop><i class="fas fa-route"></i><span><em>Trade position</em><strong>Manage trade network</strong><small>Drop a Location here</small></span></button>{{else}}<div class="fantasy-settlement-command-card is-empty"><i class="fas fa-route"></i><span><em>Trade position</em><strong>No trade network recorded</strong><small>Available for future expansion</small></span></div>{{/if}}{{/if}}
    </section>
    <section class="fantasy-settlement-economy-row"><h3><i class="fas fa-coins"></i> Economy</h3>{{#if hasEconomy}}{{{economyHtml}}}{{else}}<div class="fantasy-settlement-empty-inline">No economy recorded.</div>{{/if}}</section>
    {{> "modules/augur-nexus/templates/campaign-entities/settlement-domain-panels.hbs"}}
</main>
{{/unless}}
<aside class="fantasy-settlement-dossier">{{{dossierHtml}}}<button type="button" class="fantasy-settlement-compact-toggle npc-dossier-compact-toggle" data-action="toggleSettlementCompact" title="{{#if isCompact}}Expand location dossier{{else}}Compact location dossier{{/if}}"><i class="fas {{#if isCompact}}fa-expand{{else}}fa-compress{{/if}}"></i></button></aside>
{{/if}}
</section>
