.create-listing-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 140px 0 50px;
    /* Reduced padding */
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-header {
    margin-bottom: 24px;
}

.back-btn {
    display: inline-block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.back-btn:hover {
    color: #0a2351;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.subtitle {
    color: #64748b;
    font-size: 1rem;
}

.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.alert-error {
    background: #fef2f2;
    color: #dc2626;
}

.alert-link {
    color: #166534;
    font-weight: 600;
    text-decoration: none;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
}

.form-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.form-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0a2351;
    background: white;
}

.hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 6px;
    display: block;
}

/* Address Search Styles */
.address-search-container {
    position: relative;
}

.address-search-container input {
    padding-right: 40px;
}

.search-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #e2e8f0;
    border-top-color: #0a2351;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.address-suggestions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: white;
    border: 2px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden by default for JS handling */
}

.address-suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f5f9;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f8fafc;
}

.suggestion-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.suggestion-text {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.4;
}

.selected-address {
    margin-top: 16px;
    padding: 16px;
    background: #ecfdf5;
    border: 2px solid #6ee7b7;
    border-radius: 12px;
}

.selected-address-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.address-icon {
    font-size: 1rem;
}

.address-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.address-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.5;
    margin: 0;
}

.map-preview {
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
}

.price-input {
    position: relative;
}

.price-input input {
    padding-right: 80px;
}

.price-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

.image-preview {
    margin-top: 16px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
}

.preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94a3b8;
    padding: 40px;
}

.placeholder-icon {
    font-size: 2.5rem;
    opacity: 0.5;
}

.info-card {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    padding: 20px;
}

.info-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e40af;
    margin-bottom: 12px;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    position: relative;
    padding-left: 20px;
    font-size: 0.85rem;
    color: #1e40af;
    margin-bottom: 8px;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #3b82f6;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.btn-cancel {
    padding: 11px 20px;
    background: #f1f5f9;
    color: #64748b;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-cancel:hover {
    background: #e2e8f0;
    color: #475569;
}

.btn-submit {
    padding: 11px 24px;
    background: linear-gradient(135deg, #0a2351, #1e4ba1);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 140px;
    justify-content: center;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 35, 81, 0.3);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
    }
}