/**
 * Lot Planner Styles
 * Voice-powered lot plan generation interface
 */

/* ============================================================ */
/* Planner Layout */
/* ============================================================ */

.planner-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
}

@media (max-width: 1200px) {
    .planner-layout {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .planner-layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================ */
/* Voice Panel (Full Width) */
/* ============================================================ */

.voice-panel {
    max-height: 300px;
}

.voice-panel .transcript {
    min-height: 150px;
    max-height: 200px;
}

/* ============================================================ */
/* Listing Select */
/* ============================================================ */

/* Override overflow for select dropdown visibility */
.planner-layout .card-panel:first-child {
    overflow: visible;
}

.planner-layout .card-panel:first-child .card-body {
    overflow: visible;
}

.listing-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: white;
    color: var(--admin-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.listing-select:focus {
    outline: none;
    border-color: var(--la-accent);
    box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.1);
}

.listing-select:hover {
    border-color: var(--admin-primary-light);
}

/* ============================================================ */
/* Listing Preview */
/* ============================================================ */

.listing-preview {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--admin-bg);
    border-radius: 8px;
    border: 1px solid var(--admin-border);
}

.listing-preview-title {
    font-weight: 600;
    color: var(--admin-text);
    margin-bottom: 0.5rem;
}

.listing-preview-details {
    font-size: 0.85rem;
    color: var(--admin-text-muted);
}

.listing-preview-details span {
    display: inline-block;
    margin-right: 1rem;
}

.listing-preview-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 0.75rem;
}

/* ============================================================ */
/* Technical Description Input */
/* ============================================================ */

.tech-desc-input {
    width: 100%;
    min-height: 200px;
    padding: 0.75rem;
    border: 1px solid var(--admin-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: 'Inter', monospace;
    resize: vertical;
    background: var(--admin-bg);
    color: var(--admin-text);
    line-height: 1.6;
}

.tech-desc-input:focus {
    outline: none;
    border-color: var(--la-accent);
    box-shadow: 0 0 0 3px rgba(244, 121, 32, 0.1);
}

.tech-desc-input::placeholder {
    color: var(--admin-text-muted);
    font-size: 0.85rem;
}

/* ============================================================ */
/* Survey Data Display */
/* ============================================================ */

.survey-data-display {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.survey-data-display .empty-state {
    color: var(--admin-text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
}

.survey-sides-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.survey-side-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.survey-side-item:hover {
    border-color: var(--admin-primary-light);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.survey-side-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--admin-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
}

.survey-side-bearing {
    flex: 1;
    font-family: 'Inter', monospace;
    font-weight: 500;
    color: var(--admin-text);
}

.survey-side-distance {
    font-weight: 600;
    color: var(--admin-primary);
}

.survey-side-adjacent {
    font-size: 0.75rem;
    color: var(--admin-text-muted);
    margin-top: 0.25rem;
}

.survey-summary {
    margin-top: 1rem;
    padding: 0.75rem;
    background: var(--admin-success-light);
    border-radius: 6px;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.survey-summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--admin-text);
}

.survey-summary-item + .survey-summary-item {
    margin-top: 0.5rem;
}

.survey-summary-label {
    font-weight: 500;
}

.survey-summary-value {
    font-weight: 600;
    color: var(--admin-success);
}

/* ============================================================ */
/* Lot Plan Preview */
/* ============================================================ */

.lot-plan-preview {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--admin-bg);
    border-radius: 8px;
    border: 1px solid var(--admin-border);
    overflow: hidden;
}

.lot-plan-preview .empty-state {
    color: var(--admin-text-muted);
    font-style: italic;
    text-align: center;
    padding: 2rem 1rem;
}

.lot-plan-preview img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.lot-plan-preview.loading {
    position: relative;
}

.lot-plan-preview.loading::after {
    content: 'Generating...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    animation: pulse 1.5s infinite;
}

/* ============================================================ */
/* Lot Plan Info */
/* ============================================================ */

.lot-plan-info {
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--admin-border);
}

.lot-plan-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.lot-plan-info-row + .lot-plan-info-row {
    margin-top: 0.5rem;
}

.lot-plan-info-label {
    color: var(--admin-text-muted);
}

.lot-plan-info-value {
    font-weight: 600;
    color: var(--admin-text);
}
